In this section:
REST Clients are tools that check the functionality of RESTful services. You can add REST Clients to your scenarios and configure them to suit your testing needs. You can also create and run a job for executing the related test scenarios with the appropriate environment provisioned. Use these tests to check the health of specific components and to automate testing during provisioning.
The REST Client interface in CTP is designed to quickly enable you to create new REST client tools. Use the SOAtest desktop to create more advanced REST Clients with more complex configurations, such as message payloads defined by custom scripts. See REST Client.
If you have a traffic file that captures traffic for RESTful services, you can generate a test scenario with REST Clients configured to test the recorded traffic. For details, see Creating New Test Scenarios and Test Suites. |
The new tool will be added at the end of the selected test suite.
Specify the URL, including queries, for accessing the resource.
If you’re familiar with SOAtest, you can use the standard ${var_name} notation to reference environment variables, test suite variables, and data source values that are defined for the test scenario. This applies to both URL and Payload. When you are working with JSON, a special notation is used for parameterizing a number or boolean field within a JSON message: ${number:<value>} or ${boolean:<value>}. For example, to parameterize a number field with the column Count, you would use ${number:Count}. |
(Optional) If the service requires authentication, enable the Enable HTTP authentication option and specify login credentials.
(Optional) Add HTTP headers if you want to override the default headers.See HTTP Headers for additional information. Choose Literal or Table mode from the HTTP headers drop-down menu to enter values in a text area or build the header using a table format.