Method GetExecutionTime

Returns method execution time in milliseconds

Usage

Function GetExecutionTime(
  Boolean Report [Optional]
)

GetBooks

ZAP API Method step

GetExec...Time

True

time

Boolean Report [Optional]

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")