execution, time, api, request, response, send, soap, rest, get, post, put, delete

Method GetExecutionTime

API

Returns method execution time in milliseconds

Watch this video to learn how to use this method

Have a problem with playback?
GetExecutionTime method returns method execution time in milliseconds Prior to use this function you need to insert Execute method. The Output is request execution time in milliseconds. Lets make a request and show its execution time. We will use messagebox to demonstrate the output.

Usage

Function GetExecutionTime(
  Boolean Report [Optional]
)

GetBooks

ZAP API Method step

GetExec...Time

True

time

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Execution time in milliseconds

Example

VBScript

Server("API Server").Method("Method").Execute
' Get execution time
msgbox Server("API Server").Method("Method").GetExecutionTime(True)

JavaScript

Server("API Server").Method("Method").Execute();
// Get execution time
alert(Server("API Server").Method("Method").GetExecutionTime(true));

GetBooks

ZAP API Method step

Execute

True

Script-Less next step

Comment

Get execution time and display it in message box

Script-Less next step

GetBooks

ZAP API Method step

GetExec...Time

True

time

Script-Less next step

Method

ZAP Utility step

Zap.Comm...Box

Zap.Var...("time")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552