Method GetRequestAttachmentType

Gets Request Attachment MIME Type value

Usage

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

CreateBook

ZAP Object step

GetReq...Type

book

True

type

String Name

Boolean Report [Optional]

Output Parameter

Parameters

Name

Type: String

The name of the Attachment

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Attachment MIME Type

Example

VBScript

msgbox Server("API Server").Method("CreateBook").GetRequestAttachmentType("book", True)

JavaScript

alert(Server("API Server").Method("CreateBook").GetRequestAttachmentType("book", true));

CreateBook

ZAP Object step

GetReq...Type

book

True

type

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Var...("type")