Debugging HTTP tests
If a test does not behave as expected
during playback, you can use the protocol data and test log to assist in debugging
the test.
- HTTP debugging overview
If a test is not behaving as expected, you can use the Protocol Data view to debug the test. This view can be useful after you record a test, after you make changes to an existing test by adding datapools or data correlation, or after you make changes to the system under test. - Watching a virtual user during a test run
The Browser page in the Protocol Data view displays browser results during an individual HTTP test run. The Browser page displays each page in real time. - Watching a virtual user during a schedule run
During a schedule run, you can select any virtual user and watch that user's real-time browser. Watching the real-time browser lets you investigate the status of individual virtual users while they are running. You can determine whether a run is valid despite the occurrence of individual virtual user failures. - Replaying a virtual user after a run completes
After you create a schedule, run it with a small number of users and watch their activity to verify that the schedule is behaving as expected. You can compare the visual data that is rendered as well as the events that are logged for each user. - Viewing the playback summary of a virtual user
The Event Log page in the Protocol Data view provides a summary of what happened during an HTTP test run. A complete summary is always available for a test. The information available for a schedule depends on its logging level. - Inspecting HTTP test logs in the Protocol Data view
To verify that a test is performing as you intend, use the Protocol Data view, which displays the HTML details that were generated during a schedule run. If problems occur in a test run, you can also compare the data retrieved during the run with the recorded data. - Managing HTTP information in the Protocol Data view
Several actions can be performed on the text displayed in the Protocol Data view. You can save the text from the Protocol Data view pages to a text file for use in other applications. You can search for text in the protocol data. You can compare the data retrieved during a run with the recorded data from an HTTP test. Typically, you compare a request or response from the test log to its corresponding data in the recorded test. You can also compare requests or responses from different virtual users in one test log.
Feedback