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

Method GetRequestGetParameter

API

Gets Request Get Parameter value

Watch this video to learn how to use this method

Have a problem with playback?
GetRequestGetParameter returns Get Parameters of the API method The input is string Name the output is Get Parameters value string. If given Name not presented in list this method returns empty string. Let's output value of GET Parameter from Sum API method. The name of the parameter is "Parameter 1" We output result to the messagebox Run and we can see the output is 555 as expected.

Usage

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

GetBookById

ZAP Object step

GetReq...meter

id

True

id

Name

Report

Output Parameter

Parameters

Name

Type: String

The name of the Get Parameter

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Get Parameter value or Empty string

Example

VBScript

msgbox Server("API Server").Method("GetBookById").GetRequestGetParameter("id", True)

JavaScript

alert(Server("API Server").Method("GetBookById").GetRequestGetParameter("id", true));

GetBookById

ZAP Object step

GetReq...meter

id

True

id

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Var...id")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552