get, raw, string, response, request, send, soap, rest, get, post, put, delete

Method GetStringResponse

API

Gets string response of the executed method

Watch this video to learn how to use this method

Have a problem with playback?
GetStringResponse method gets string response of the executed method. Prior to use this function you need to insert Execute method. The Output of GetStringResponse is a raw tring response. We will use messagebox to demonstrate the output. Here you can see response string.

Usage

Function GetStringResponse(
  Boolean Report [Optional]
)

GetBookById

ZAP API Method step

GetStr...Response

True

response

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Raw string response

Example

VBScript

Server("API Server").Method("GetBookById").Execute
msgbox Server("API Server").Method("GetBookById").GetStringResponse(True)

JavaScript

Server("API Server").Method("GetBookById").Execute();
alert(Server("API Server").Method("GetBookById").GetStringResponse(true));

GetBookById

ZAP API Method step

Execute

Script-Less next step

GetBookById

ZAP API Method step

GetStr...Response

True

response

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Var...ponse")

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552