fbpx

Method GetArrayResponse

Returns data array of entire or partial API response by the given path

Usage

Function GetArrayResponse(
    String Path [Optional],
    Boolean Report [Optional]
)

Parameters

Path (optional)

Type: String

Default Value: Empty String

Path to the object: User[5].Information.Awards

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Array

Example

VBScript

Server("API Server").Method("GetUsers").Execute
msgbox Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards", True)

JavaScript

Server("API Server").Method("GetUsers").Execute();
alert(Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards", true));

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo