Forum Discussion
Hello LennSar
I am no expert at importing OpenAPI specifications so I can only point you to the usage I am familiar with...
Once the testcases are defined in a suite, you can take advantage of the environments feature of ReadyAPI (accessed via the Project|Endpoints & Environments main menu item). This is where you would define what end point you would like to test against. You might have to add a variable in your REST test request, but you only do that once and then can use as many environments (end points) as you want. Refer to: https://support.smartbear.com/readyapi/docs/testing/environments/index.html
You mentioned a few tools ("schemathesis, tcases, insomnia or postman all take the correct endpoint address") that do what you want. Do you really use all of those? I occasionally use insomnia just because a vendor we use supplies execution data with it for an API product we purchase from them. It can only execute the API and is not really a viable testing tool (other than seeing if the API responds or not) that ReadyAPI is. I feel that comparison (along with the other tools you mention) is unreasonable since the tools are designed and used differently.
Regards,
Todd
Hi Todd,
thanks for your suggestion. Sure there is some way to solve this issue using environment variables but I still don't understand why ReadyApi ist not simply doing it right to begin with.
We are currently taking a very detailed look at many testing tools to test our Rest APIs. Yes Insomnia isn't comparable with ReadyApi from a testing capability persepective but they both are reading an OpenApi and are able to generate the according requests which can be send by a push of a button. After that the magic of ReadyApi starts but up to that point I think they are very comparable.
I just took another look and had to realize that postman and insomnia don't understand my OpenApi in regards of the base URL as well. But other than ReadyApi they correclty understand the description of the "global" server address and don't use the first request specific URL for all requests, which is quite a headscratcher.
I'll have a closer look at environment variables defined in the OpenApi spec but to my understanding we are already doing it correctly from an OpenApi perspective.
Related Content
- 5 years ago
Recent Discussions
- 5 hours ago
- 17 days ago