Share this page

# Snapshots for scripts

This topic describes how to work with snapshots for TruClient 2.0 - Web scripts.

In this topic:

## About snapshots

TruClient can capture snapshots of the browser window during script replay. Each snapshot is taken before the step's action is implemented.

Snapshots can help when debugging your scripts. For details, see Debug scripts using snapshots.

Snapshots are saved as saved as .png files in subfolders under the results folder for the script.

Automatic snapshot generation depends on the defined settings:

- You can configure snapshot generation for interactive replay in the Development window General settings > Interactive options tab. For details, see Interactive options.
- A script can also generate snapshots when replayed in VuGen (load mode replay), and when it is run in performance and load tests. The snapshot level is according to the specifications in the runtime settings (Runtime Settings > Other > General).

Back to top

## Create snapshots on demand

You can add a Take snapshot step to your script wherever you want to create snapshots.

To create snapshots on demand:

1. Prerequisite: Make sure you select On error and on demand for the Replay snapshot generation setting.

   For details, see Interactive options.

2. Open the Development window Steps box.
3. Open the Functions tab and drag the Take snapshot step to the required location in the script.
4. In the added step, set whether or not the snapshot should be full page.

Back to top

## View snapshots in the Snapshot viewer

The snapshots from script replay are displayed in the TruClient Snapshot viewer.

You can also view snapshots in VuGen. For details, see Work with snapshots.

To view snapshots:

1. Click the Snapshot view button on the Development window Toolbar. The Snapshot viewer opens in the right panel.

2. Select the relevant options in the Snapshot viewer to view the snapshots you want, in the way you want:

   UI Element | Description
   --- | ---
   Snapshot type | Displays snapshots for the selected replay mode: Interactive replay. Displays snapshots that were generated while replaying the script in the Development window. Load mode replay. Displays snapshots that were generated while replaying the script in VuGen.
   | Use to start and stop a slide show of all snapshots for the current view.
   <Browser> | Displays snapshots for the selected browser, if the script was replayed in more than one browser.
   <Iteration> | Displays snapshots for the selected iteration. Relevant for interactive replay mode only.

3. Select a step in the Development window to view the corresponding snapshot, or browse through the snapshots using the navigation bar at the bottom of the Snapshot viewer.

Back to top

See also:

- Debug scripts
- Object identification
- Replay scripts

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1 All View Local Help Center View Online Help Center Version: