Previous Topic: Base64 EncoderNext Topic: SAML Assertion Query


Multipart MIME Step

The Multipart MIME (Multipurpose Internet Mail Extensions) step lets DevTest load data from a file, encode it, and store it in a property for use as a post parameter on an HTTP request. The encoded document is stored in the property that has been defined previously in an HTTP/HTML Request step.

When a multipart MIME form submit request is recorded, the contents of the file that was uploaded are recorded. Subsequent playback results in the same content being submitted with "file upload" portion of the form again. The multipart MIME step can be used to change what file is uploaded when the test case is played back.

Prerequisite: The HTTP/HTML Request step containing the HTTP parameter must exist, and it must be before the Multipart MIME step.

Complete the following fields:

Step

Select the name of the HTTP/HTML Request step, or select from the pull-down menu, the step that receives the property containing the encoded document.

Parameter

Select the name of the property listed in the step named in the Step field from the pull-down menu.

File

Enter the pathname or browse to the document to be encoded.

MIME Type

Enter the MIME type that the server expects.

Click Load to encode the file.

Multipart MIME step encoded

To save the contents of the editor to a file, click Save Icon - disc.

In the example in the previous graphic, the Account Activity step has a post-parameter user ID that contains the encoded version of the file DataSet1.Ids.