fbpx

Method GetResponseStatusCode

Returns HTTP Status Code

Usage

Function GetResponseStatusCode(
  Boolean Report [Optional]
)

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Status Code

Example

VBScript

Server("API Server").Method("Method").Execute
' Check status code
msgbox Server("API Server").Method("Method").GetResponseStatusCode(True)

JavaScript

Server("API Server").Method("Method").Execute();
// Check status code
alert(Server("API Server").Method("Method").GetResponseStatusCode(true));

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo