execute, api, request, response, send, soap, rest, get, post, put, delete

Method Execute

API

Executes API method

Watch this video to learn how to use this method

Have a problem with playback?
In the ZAPTEST API testing workflow we create requests to the API service and expecting some particular response from there For demonstration purposes we have test API server with pre-defined requests (API methods). These methods have special options that allows us to check success of the request. The very basic kind of option is Execute - it sends a request to API and should get a response It returns boolean output: True means method been executed and get correct response False means it was rejected or no response been received Let's try one. We output result with the messagebox. You can see that method been executed successfully.

Usage

Function Execute( 
    Boolean Report [Optional]
)

Method

Execute

True

Report

Parameters

Report (optional)

Type: Boolean

Default value: True

Report Result

Returns

True if execution completed without errors

Example

VBScript

Server("API Server").Method("Method").Execute
' Set Report parameter
Server("API Server").Method("Method").Execute True

JavaScript

Server("API Server").Method("Method").Execute();
// Set Report parameter
Server("API Server").Method("Method").Execute(true);

Method

Execute

Comment

Set Report parameter

Method

Execute

True

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227