Using API Fortress's HTTP Client, you can generate tests from external endpoints or files such as an OpenAPI spec.
Supported Spec Formats
- Currently supported:
There are two ways to build a test from a specification file:
- Upload the specification file itself.
- Reference the URL that points to the specification file.
Both methods involve using the HTTP Client.
From the project home page:
Choose the HTTP Client button in the toolbar.
In the Snapshots section select the arrow icon:
Select the desired file and finish by selecting Open:
A prompt appears asking how the files should be imported, select the appropriate option:
Select the desired path in your project tree in which you wish to save the file/collection:
When you're finished select Save. Now you can view the test endpoints, as well as their respective components, by using the dropdown icons:
Select the sample request, it populates in the HTTP Client with all the necessary details:
Select the Send button and the response body appears:
Select the Generate Test button. API Fortress then generates test component data based on the request and response data from the spec file. Below is the same example in both Visual and Code view:
Code View Visual View
This feature is available in the previous releases of API Fortress, stay tuned for more information