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!
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.
- HKosova8 years agoSmartBear Alumni (Retired)
nmrao wrote:
HKosova, is generation of request bodies possible only in ReadyAPI?nmrao, yes.
To be more precise, this feature was added in version 2.3 of the Swagger plugin. In Ready! API, the plugin can be updated through the Plugin Manager if needed. But SoapUI Open Source includes the plugin version 2.2, and later versions of the plugin are not yet available for SoapUI Open Source.
Related Content
- 11 months ago
- 3 years ago
Recent Discussions
- 12 days ago
- 31 days ago