Usage
Function GetExecutionTime(
Boolean Report [Optional]
)
GetBooks
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
Execute
True
GetBooks
GetExec...Time
True
time
Method
Zap.Comm...Box
Zap.Var...("time")

Comment
Get execution time and display it in message box