Method GetArrayResponse
Returns data array of entire or partial API response by the given pathUsage
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
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)