fbpx

Method GetMemberResponse

Returns property of object by path

Usage

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

Parameters

Path

Type: String

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

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Object property value

Example

VBScript

Server("API Server").Method("GetBookById").Execute
' Execute method should be called before get member response
title = Server("API Server").Method("GetBookById").GetMemberResponse("Title", True)

' Try to get value from array response
Server("API Server").Method("GetBooks").Execute
title = Server("API Server").Method("GetBooks").GetMemberResponse("[1].Title", True)

JavaScript

Server("API Server").Method("GetBookById").Execute();
// Execute method should be called before get member response
var title = Server("API Server").Method("GetBookById").GetMemberResponse("Title", true);

// Try to get value from array response
Server("API Server").Method("GetBooks").Execute();
title = Server("API Server").Method("GetBooks").GetMemberResponse("[1].Title", true);

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo