An Execute Web Service task allows you to interact with a Web Service during a test.
Create a new “Execute Web Service” task
- Right-click the name of the parent Action the new task will be created in.
- Select Add New Task –> Execute Web Service.
- New Task appears under the parent Action.
- Edit the task name as needed.
Configuring an “Execute Web Service” task
- Set timing: Specify the wait time before and after execution. Wait times give a sending or receiving system enough time to initiate. They also add a pause between action executions.
- Type: Specify the Web Service protocol to be used.
- HTTP GET – Encode the specified parameters directly in the URI.
- HTTP POST – Enclose the specified parameters in the message’s body.
- REST – Representational State Transfer is a software architecture style consisting of guidelines and best practices for creating scalable web services.
- SOAP – Simple Object Access Protocol, is a protocol specification for exchanging structured information in the implementation of web services in computer networks.
- Host: Specify where the Web Service is located (IP address and port).
- If “Use default connection” is checked, the Web Service request will be sent to the host and port defined in the default sending network connection.
- If “Use default connection” is unchecked, pick a destination for the Web Service request to be sent to from the list.
- URL: Specify the name of the Web Service request.
- Parameters: Using the HTTP GET/HTTP POST protocol, specify the parameters to be part of the request.
- Request: Using the REST protocol, specify the JSON request.
- SOAP Action: Using the SOAP protocol, select the action to be called. The related SOAP Envelope will be generated.
- SOAP Envelope: Using the SOAP protocol, specify the XML request.
Add validation rules
Validations rules can be added to confirm that the query result is as expected.