Set Methods
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.
Syntax
Input: <Method>
Output: N/A

Usecase/Example

Scenario
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.
Input
HTTP method: GET
Expected Result
The application should send a GET request to the https://api.onlinebanking.com/v1/account/details endpoint.
Output
The setMethod Action is sets the method for web service.
Last updated
Was this helpful?