get, property, api, request, response, send, soap, rest, get, post, put, delete

Method GetProperty API

Retrieves object property value

Watch this video to learn how to use this method

Have a problem with playback?
GetProperty retrieves API method property The input is the property name, the output is the property value Let's output to messagebox value of the property Service Type Run the method and see the output is SOAP, the same value we can see in the properties table.

Usage

Function GetProperty(
    String Name,
    Boolean Report [Optional]
)

Method

ZAP API Method step

GetProperty

Name

True

name

Name

Report

Output Parameter

Parameters

Name

Type: String

Property Name (i.e. "Name")

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Property value

Example

VBScript

msgbox Server("API Server").Method("Method").GetProperty("Name", True);

JavaScript

alert(Server("API Server").Method("Method").GetProperty("Name", true));

Comment

Get text property from API Server Method and save it to variable

Script-Less next step

Step

ZAP API Method step

GetProperty

Name

True

name

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552