Replies: 3 comments 1 reply
-
Hi, Lennart You make some very good points. Response validation is certainly a weak spot in Tcases for OpenAPI. To answer your questions... Can the current version of TFOA generate code that checks response schema conformance? No, it can't. Could this be added to a future version of TFOA? Yes, I believe that is technically possible, with certain limitations. One issue is that, in general, response data can be encoded according to many different media types. For response data that uses the |
Beta Was this translation helpful? Give feedback.
-
@LennSar Response validation is here! See release 3.8.0. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi there,
I wanted to touch on this quote from the documentation:
I'm pretty sure you know best yourself but I have to disagree on this. We took a lot of effort to write an OpenApi.yaml which covers a lot of information on how the reponse should look like. Of course you cannot tell the exact answer but you could check whether the returned values are in the specified range, according to the defined regex or part of the defined enum. All this could be added during the automatic test case generation based on the OpenApi documentation. SmartBear ReadyApi for example does exactly that.
So my question would be: Is tcases already capable of doing something like that and I just didn't figure out how to do that yet and if that's not the case: Is this something you think about adding in the future?
Oh and of course I need to say: Thank you so much to take the time and effort to write this tool and make it public. As a Java novice I had a real hard time to get it running (and I would have failed if it weren't for the help of a java experiences colleague) but now where it does I realised that this a crazy powerful tool that at the end is much better than many programs you have to pay for.
Thanks!
Lennart
Beta Was this translation helpful? Give feedback.
All reactions