If, in your test, you parameterize the requests that multiple virtual users simulate, you may want to know what data each virtual user sends to the server.
In LoadComplete, you can save and view the contents of simulated requests and received responses in the test log.
To store the contents of requests and responses:
-
Choose Tools | Options from LoadComplete’s main menu. This will invoke the Options dialog.
-
In the dialog, select the Simulating | General category on the left.
-
In the Store log data drop-down list, select All data (Report + Details).
-
In the Store request and response data drop-down list, select Complete data (start line, headers and body).
-
Click OK to save the changes.
Note: | LoadComplete ignores the logging options during scenario verification and saves the complete request and response data anyway. |
Now you can run your test. LoadComplete will save the contents of each simulated request and received response to the test log.
You can view the contents of simulated requests after the test run is over --
-
Switch to the Details panel of the test log.
-
In the left pane of the Details panel, find the virtual user that simulated the request.
-
In the right pane of the Details panel, find the needed request.
-
Examine the Request Body panel. It shows the contents of the request sent by the virtual user.
Note: You can see the contents of POST HTML requests only. The request body of GET requests does not contain any data. -
View the server’s response to that request in the Response Body panel.
To verify that the server responded correctly, you can create a validation rule for that response. See Creating Validation Rules.
See Also
Typical Use Cases
Viewing Actual Request and Response Bodies
Request Body Panel
Response Body Panel