Forum Discussion
Hi NisHera,
TestComplete is for GUI testing. API testing is done using SoapUI (free, open-source) or Ready! API (commercial version). They both include the Swagger plugin that lets you create a test project from a Swagger definition. Once you imported your Swagger definition, you can generate a test suite.
Quick steps:
- Create an empty project in SoapUI (use version 5.3.0) or Ready! API.
- Right-click the project and select Import Swagger. You can import both local files and URLs.
- Right-click your API name and select Generate TestSuite. Select the endpoints to add to the test.
- You'll get a test suite like this:
- Review the generated test steps: change the request bodies, add assertions for response contents, etc.
Hope this helps!
- NisHera8 years agoValued Contributor
Thanks for reply HKosova
I try it but when generating test suit if dose not created parameters (eg in post methods you need to put parameters ) which are already defined in swagger.
I think this questing also same..
is there any solution for that?
- HKosova8 years agoSmartBear Alumni (Retired)
Hi NisHera,
The plugin version included in the open-source SoapUI does not generate request bodies, you need to enter them manually. If you use Swagger UI, you can copy body examples from there.
Related Content
- 11 months ago
- 5 years ago
Recent Discussions
- 4 days ago
- 21 days ago