BrowserReplayCompatibility Function

Action

Sets the replay compatibility by defining how locators are generated. During recording, Silk Performer automatically scripts this function to avoid compatibility issues. You can also manually add this function to your script to ensure flawless replay of older scripts with newer versions of Silk Performer. The replay compatibility can also be set in the Profile settings. If this function is omitted or removed from the script, the value configured in the Profile settings will be used.

Include file

BrowserAPI.bdh

Syntax

BrowserReplayCompatibility( in sCompatibility : string ): boolean;
Parameter Description
sCompatibility The replay compatibility option. Can be one of the following values:
  • SP_19_0: for Silk Performer 19.0 and newer
  • SP_15_5: for Silk Performer from version 15.5 to version 18.5
  • SP_10_0: for Silk Performer from version 10.0 to version 15.0
  • SP_9_5: for Silk Performer 9.5

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);
    BrowserReplayCompatibility(SP_19_0);
    BrowserNavigate("http://demo.borland.com ")
      
  end TMain;