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:
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.
Select the name of the property listed in the step named in the Step field from the pull-down menu.
Enter the pathname or browse to the document to be encoded.
Enter the MIME type that the server expects.
Click Load to encode the file.
To save the contents of the editor to a file, click Save .
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.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|