How to Write Tests
1. To start working with API Hub for Test, click on the
tile on the API Hub main page.
2. Test Steps screen appears. Click on the plus icon to reveal the options available.

3. After you choose your Test Step type, fill in the details.


You can dynamically select values in an API response and assign them to a variable to use in another API request.

Go to Define an API request to learn more.
Tip
You can reorder test steps by dragging and dropping them. Move single or multiple steps up or down, even in and out of segments.
You can also duplicate selected steps in test cases. Duplicated steps appear right after the last selected step. If the last selected step is inside a segment, the steps are duplicated after the segment. Segments cannot be duplicated.
Once you complete all of the test steps, you can run a test for your test case.

Click
to find more details connected to your test run.

4. Go to the
tab, to see the list of all your Test Cases.
How to Add Test Steps from Endpoints Created in API Hub for Design
Click the
+
icon to add an API in your Test Definition view.Select Create APIs step from OpenAPI spec.
Choose the APIs and endpoints from the modal and click theAdd Test Steps button to proceed. You can choose the version of your endpoints.
Selected endpoints are added as test steps to your test.
If you add the step from API Hub for Design, a new parameter called baseURL is created and inserted before each endpoint path. You can update baseURL and add other variables and parameters from the test definition page above.
Click Execute Request to verify the response.
Enter a value and save the whole test by clicking the Save button.
How to Create Test From API Hub for Explore
If you decide to create a test from the entire set of API endpoints, navigate to Explore and click on Create Test Case.
Select the endpoints you want to add to your test. You can choose an existing test case from the drop-down menu.
Click the Add Steps button to proceed.
Test case is created. Click Save.
You can now run your test case or create more test steps.