fbpx

Method GetLastError

Returns Last Error Message

Usage

Function GetLastError(
  Boolean Report [Optional]
)

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Error Message

Example

VBScript

Server("API Server").Method("Method").Execute
' Check last error
msgbox Server("API Server").Method("Method").GetLastError(True)

JavaScript

Server("API Server").Method("Method").Execute();
// Check last error
alert(Server("API Server").Method("Method").GetLastError(true));

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo