API Testing
API Testing
In GTP, the user(s) can implement API testing with/without interacting with the UI/AUT.
Login as Test Manager/ Engineer.
Create a Project for API testing & select the project type as an API test.
Clicks on Tests from Side Menu
Clicks on the API Tests tab & click the Add New Test button.
Enter the Test name and the description & click the Create Test button.
In the Manage test page, click the 'Create API Test' button & start creating the API Test.
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.
After entering all inputs, click on Send Request button.
Now the user(s) can get a response for their API requests.
From the response we can Create the Variables, and also make Assertions.
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
Login to GTP as Test Manager/ Engineer.
Select the Project from Project drop down Menu.
Go to Test Page, click on Add new Test Button.
Create a Test with appropriate Tag.
Click on Test Name.
Click on Record Button.
Click on + icon. Now select API request Button.
The API request window will be displayed.
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.
After entering all inputs, click on Send Request button.
Now the user(s) can get a response for their API requests.
From the response we can Create the Variables, and also make Assertions.
Click on Save Button.
User has added the API request.
Watch this video on how to call API in function testing:
Previous: Data Driven Testing
Next: Viewing Results
©2023 GoTestPro. All Rights Reserved.