The Free-format Request Editor is used for parameterizing requests without preserving their name/value structure if it exists. This is the only parameterization control available for requests that do not have a name/value structure. Here are a few examples of such requests:
- GET request query string does not conform to the format ?<name>=<value>.
- GET requests with Restful URLs.
- POST request body that includes XML or JSON.
- POST request body that includes binary, such as WCF binary or AMF encoding.
Use the Free-format Request Editor similarly to the Parameterization Editor. To edit data, select a value (a) that should be replaced and right -click . Then select a source variable in the Variable Picker (b). The color-coded read-only variable control (c) will be inserted. it has the following format (c):
When you finish editing, click Save (d).
To concatenate two variables, after inserting the first variable, place the cursor at the end of the first variable control, right-click and select the second variable in the Variable Picker. The second variable control will be inserted.
Parameterizing WCF binary requests:
Parameterizing RESTful requests:
To parameterize a RESTful GET request (without a query string), replace any sub-string of the URL with a variable. For example, if you recorded the request
Right-clicking on a parameter will bring up a context menu with multiple options:
Changing requests with name/value structure
Note: After creating at least one free-format parameter in the response, you can no longer safely edit it. If you change the response in the session inspector and click Save, you will receive a warning.
If changes you made in the response are positioned after the Free-format parameter, then such changes will not break the parameter.
- No labels