BrowserScreenshot Function

Action

Takes a screenshot during replay and stores it in the TrueLog.

Include file

BrowserAPI.bdh

Syntax

BrowserScreenshot();

Return value

  • true if successful

  • false otherwise

Example

benchmark SilkPerformerRecorder

use "BrowserAPI.bdh"

dcluser
  user
    VUser
  transactions
    TMain : 1;

dcltrans

  transaction TMain
  begin
    BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
    if not BrowserNavigate("http://demo.borland.com/invalidtarget.html") then
      BrowserScreenshot();
    end;
      
  end TMain;