API Testing

API Testing

In GTP, the user(s) can implement API testing with/without interacting with the UI/AUT.

  1. Login as Test Manager/ Engineer.

  2. Create a Project for API testing & select the project type as an API test.

  3. Clicks on Tests from Side Menu

  4. Clicks on the API Tests tab & click the Add New Test button.

  5. Enter the Test name and the description & click the Create Test button.

  6. In the Manage test page, click the 'Create API Test' button & start creating the API Test.

  7. Enter the Test name, Select the request method (GET, POST, PUT, PATCH, DELETE) from the Drop-down and enter desired endpoint URL against which the request is to be triggered. In addition, values for the Headers, Query Params & Body fields need to be entered.

  8. After entering all inputs, click on Send Request button.

  9. Now the user(s) can get a response for their API requests.

  10. From the response we can Create the Variables, and also make Assertions.

  11. Click on the Save button and view the created API Test on the Manage Test page.

Watch this video to learn about API based Testing:

 

Calling API in Function Testing

  1. Login to GTP as Test Manager/ Engineer.

  2. Select the Project from Project drop down Menu.

  3. Go to Test Page, click on Add new Test Button.

  4. Create a Test with appropriate Tag.

  5. Click on Test Name.

  6. Click on Record Button.

  7. Click on + icon. Now select API request Button.

  8. The API request window will be displayed.

  9. Enter the Test name, Select the request method (GET, POST, PUT, PATCH, DELETE) from the Drop-down and enter desired endpoint URL against which the request is to be triggered. In addition, values for the Headers, Query Params & Body fields need to be entered.

  10. After entering all inputs, click on Send Request button.

  11. Now the user(s) can get a response for their API requests.

  12. From the response we can Create the Variables, and also make Assertions.

  13. Click on Save Button.

  14. User has added the API request.

 

Watch this video on how to call API in function testing:

 

Previous:

©2023 GoTestPro. All Rights Reserved.