When you attempt to replay a vTest test automation script, vTest will execute the test and then finally display a report with the test results. In some cases, users are interested in viewing screenshots of the tested web pages. vTest enables you to automatically add screenshots to the resulting reports.
Screenshots can be automatically generated in several ways. One way is to automatically add the screenshot after each page is loaded. Alternatively, users can individually add a screenshot function at any point in the script. This will result in a screenshot of the last displayed web page. Users can also take screenshots of the full page. This includes portions of the page that are not visible since they are not scrolled into view.
To add automatic screenshots after each displayed page, select the menu item Options > Replay and check the “Automatically save screenshots” option. For full page screenshots, check the “Full Page screenshots” option. You can also add individual screenshots after any point in the script. For graphical scripts select the menu item, Edit > Insert Function. In the tree under “Web Functions” select “screenshot”. The screenshot function will be added. In text scripts simply add the line “WebScreenshot();” at any point in the script.