Configuring replacement of part content is performed from the Fields View. If an HTTP request contains the content-type multipart/related, it is displayed in the Fields View with type part. For other styles of HTTP requests, such as those that post a single raw content block, that block will be displayed in the Fields View with type Message body.
The replacement configurations allowed are:
If only some sections of the field require replacement, double-click the field or choose Edit... from the pop-up menu in the Fields view.
When replacing the entire content during a load test, the files to be used for data replacement can be specified in a dataset. The files must be imported into Load Tester through the File Uploads preference page. See the section on uploading files for a detailed explanation on using the preference page and creating a dataset.
Once your dataset is created, use the Fields View to open the dialog to edit the field. Select the File Upload datasource. |
|
|
|
Select the Dataset value button, and select the Dataset and field which contain the replacement information for this part. If the new values for each part are each in their own file, and configured through the File Uploads Preferences, then the option "Dataset or User Variable indicates name of file to upload" should be checked. Otherwise, if the Dataset contains exactly the values to be used during playback, this option may be left unchecked. |
|
|
|
After pressing OK, the new field configuration is shown in the Fields View: |
|
To revert the configuration of the field to the recorded value, re-open the dialog from the FieldsView, select the Recorded datasource and press OK.