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.
©2023 GoTestPro. All Rights Reserved.