This section allows you to configure the settings of the HTTP request of the REST resource, including the request method and URL of the target REST web service.
The fields available in this section are similar to those for a REST resource asset.
Request data is available as JSON data using the pre-defined variable _REST. For example, print(_REST.response.body); will print the body of the first REST web server response.
The fields available in this section are as follows:
- Session var name
For example, if you enter
print(_REST.response.body), the value of the
_REST.response.bodywill be stored in the session variable, which can then be accessed using a custom session keyword of
This field is only available on the call REST resource form submission action and the call REST resource trigger action.
- Pre-process matrix global keywords
Enable this option to allow global keyword replacements (
- JS engine
Read the PECL v8js package documentation for more information. Alternatively, you can select to use SpiderMonkey, as configured on the External tools configuration screen.
Read the External tools configuration documentation for more information.
- Include files
Files added through the 'included files' field can be individually selected for keyword processing in this section.
var s = _REST.response.body; print(s.length); print(_REST.response.body);
You can also access and use response error messages and codes returned by the response, for example:
Whenever an outbound request is made, HTTP logs are created and made available through the Log manager.