fbpx

Method CheckMemberResponse

Checks property of object with a given value

Usage

Function CheckMemberResponse(
    String Path,
    String Value,
    Boolean Report [Optional]
)

Parameters

Path

Type: String

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

Value

Type: String

Value

Report (optional)

Type: Boolean

Default value: True

Report Result

Returns

True if response property value equals to value parameter, otherwise - false

Example

VBScript

Server("API Server").Method("GetBookById").Execute
Server("API Server").Method("GetBookById").CheckMemberResponse "Title", "Best Test Automation Software", True

JavaScript

Server("API Server").Method("GetBookById").Execute();
Server("API Server").Method("GetBookById").CheckMemberResponse("Title", "Best Test Automation Software", true);

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo