Method SetRequestAttachment

Sets Request Attachment

Usage

Function SetRequestAttachment(
    String Name,
    String Path,
    String Type
)

CreateBook

ZAP Object step

SetReque...ment

book

C:book.txt

text/plain

String Name

String Path

String Type

Parameters

Name

Type: String

The name of the Attachment

Path

Type: String

The new path to set

Type

Type: String

The new MIME Type to set

Returns

No return value

Example

VBScript

Server("API Server").Method("CreateBook").SetRequestAttachment "book", "C:book.txt", "text/plain"

JavaScript

Server("API Server").Method("CreateBook").SetRequestAttachment("book", "C:book.txt", "text/plain");

CreateBook

ZAP Object step

SetReque...ment

book

C:book.txt

text/plain