Snapshots
TruClient generates snapshots of interactive steps during recording and replay of a script. This topic describes how to work with snapshots.
In this topic:
About snapshots
TruClient generates snapshots during recording (on IE browsers only) and replay (all browsers) according to the snapshot generation settings.
You can configure snapshot generation during recording and replay by clicking the General Settings button and selecting the Interactive Options tab. For details, see Configure TruClient general settings.
TruClient can also generate snapshots during load mode according to your specifications in the Runtime Settings.
The following table summarizes snapshot behaviors:
Mode | Snapshot generation | Snapshot location | Snapshots folder structure |
---|---|---|---|
During Record |
Snapshots are created in memory. |
N/A | N/A |
Stop Record | N/A |
(IE only) Snapshots are saved under the snapshots folder. |
N/A |
Save script in Interactive Mode | N/A |
Snapshots are saved under the snapshots folder. |
Record folder |
During Interactive Replay |
Snapshots are created for Play From This Step and Play Until This Step. Snapshots are not created for Play this step and Play selected step. |
Note: This is performed in Interactive replay even though it has no use in the Interactive snapshot viewer. |
Replay folder
|

Configure snapshot generation
You can configure snapshot generation for both interactive replay mode and load replay mode.
To configure snapshot generation for interactive replay mode: In TruClient development window, select the
button to open the General Setting dialog box, select the Interactive Options tab, and then select Snapshot generation.
To configure snapshot generation for load replay mode: In Vugen, select Runtime Settings > Other > General.
Note: If you use TruClient Standalone, select the
button to open the General Setting dialog box. Select the Interactive Options tab to configure snapshot generation for interactive replay mode. Select the Runtime Setting tab for load replay mode.
Select the options.
Setting Options Description Replay snapshot generation - Never: Never generate snapshots during replay.
- On error: Generate snapshots when an error occurs during replay.
On error and on demand: Generate snapshots on steps with errors or on "Take Snapshot" steps during replay. This is the default value for load replay mode.
- Always: Always generate snapshots for every step during replay. This is the default value for interactive replay mode.
Include browser name on snapshot Whether or not to include browser name in the snapshots. Browser name can be IE, TruClient Browser, or Chromium. Full page snapshot Generate relay snapshots in full size.
This option is enabled only when:
Replay snapshot generation is set to On error or On error and on demand.
You use Chromium or TruClient Browser.

Create snapshots on demand
Wherever you want to create snapshots, add the "Take Snapshot" steps to your script.
- Prerequisite: Make sure you select On error and on demand for the Replay snapshot generation setting. See Configure snapshot generation.
- Click the
Step button in the TruClient menu toolbar to open the Steps box.
- In the Functions tab, select the Generic Browser Action step, and drag it to the desired location in the script.
- Click the open or close icon to the right-side of the step to open the Step Editor.
- Open the Step details. In the Action field, select Take Snapshot.
View a snapshot
Double-click a snapshot in the TruClient Development window to display it in a new browser tab.
You can view snapshots in the TruClient snapshot viewer.
Click the
button in the Development window. The snapshot viewer displays the snapshot in the right pane and adds the following elements:
Previous/Next. Navigates to the snapshot for the previous or next step. The corresponding step is highlighted in the script.
UI Element Description Recording Displays snapshots that were taken for a specific step during recording. Interactive Replay Displays snapshots that were taken for a specific step during interactive replay. Iteration Displays snapshots for a specific iteration during interactive replay mode.
Load Mode Replay Displays snapshots that were taken for a specific step during load mode replay.
Play Slide Show Displays snapshots as a slide show. Stop Slide Show Stops the slide show. View
UI Element Description Single Displays the snapshot for a single step.
Compare Splits the screen so you can compare snapshots from different modes. Use the Snapshot View buttons in each pane to select which snapshots to view. Click the Synch button to synchronize scrolling between the panes. The snapshot error icon indicates that the snapshot is not current for the step.
Thumbnail Displays the snapshots in thumbnails view.
See also: