Snapshots contain the data generated by the traffic between the client and the server, and are captured when a script is recorded and when the script is replayed. Typically, these snapshots are used to synchronize playback of the script.
There is a dedicated snapshot viewer pane for DevWeb. The snapshots display all HAR data associated with a specific web request step in the script.
Activate snapshots during replay
You can set DevWeb scripts to always create snapshots during replay, or to create snapshots only for errors that occurred during the replay of a script.
To activate snapshots during replay, in Runtime Settings > DevWeb Settings > Replay > Create snapshots during replay, select Always or On error. The default setting is Never.
View DevWeb snapshots
The DevWeb snapshots work somewhat differently from the standard VuGen snapshot feature:
- DevWeb snapshots are displayed in the DevWeb Snapshot pane, not in the VuGen Snapshot pane.
- There is no Step Navigator for DevWeb, so you cannot use it to access snapshots.
To view snapshots for DevWeb scripts:
- Open the DevWeb script in the Editor pane.
To open a snapshot for a WebRequest step, do one of the following:
- Select View>DevWeb Snapshot. Then click a WebRequest step (containing a step ID argument).
- Right-click within a WebRequest step. Select Show Snapshot.
The DevWeb Snapshot pane opens, displaying the snapshot information for the request. The WebRequest ID for the snapshot is displayed in the top-right corner.
To view snapshots for other requests, click on the relevant step in the Editor.
Working with DevWeb snapshots
The Snapshot pane includes the following functionality:
Use to toggle between Single and Split view. In Split view, you can compare the snapshots for the record and replay stages, or compare different replay iterations.
Use to toggle between the snapshots for the record and replay results.
Select the replay iteration to display.
Note: If you move to the snapshot for a different step, the selected iterations revert to 1.
|Use to search all tabs in the snapshot. When in Split view, there is a search option for each view.|
The body of the snapshots contains a standard HAR viewer format, and includes Headers and Response tabs. Additional tabs such as Params or Post are also displayed where relevant. Use the dropdown menu to filter the displayed information.
From the snapshot pane, you can generate correlation extractors directly into the web request step in the script. For details, see Actionable snapshots.