setMethods
Last updated
Last updated
This is pre-built Action located under the WebService List Element. It instructs the Avo Assure Client to set the method for the web service execution.
Using the "SetMethods" Action in API testing ensures that the correct HTTP method is used for web service execution.
Note: This step is part of the web service request process.
Input: <Method>
Note: “setMethods” sets one of the below methods to the immediately above End point URL. The methods supported are:
GET
POST
HEAD
PUT
DELETE
All method types should be in uppercase.
Output: N/A
In an online banking application, the system needs to fetch account details using a RESTful API. During the API testing process, it's important to set the correct HTTP method (GET, POST, PUT, DELETE) for each web service request to ensure the correct operation is performed.
The Avo Assure involves verifying that the application correctly retrieves user account information via the API by sending a GET request to the appropriate endpoint. The method used for the request must be set correctly to ensure that the API returns the correct data.
HTTP method: GET
The application should send a GET request to the https://api.onlinebanking.com/v1/account/details endpoint.
The setMethod Action is sets the method for web service.