Inclusion of PeopleSoft API Functions

The recorded script contains a use statement for PeopleSoft8Api.bdh, a BDH file that contains PeopleSoft specific API functions. It also contains PeopleSoftInit(), the initialization function call in the TInit transaction (see the example below).

This initializes the PeopleSoft framework contained in several BDH files of the PeopleSoft SilkEssential package. It also enables global verification rules to catch PeopleSoft specific application-level errors. This is especially useful when used in conjunction with the TrueLog On Error option.

In addition, it enables global parsing rules for the parsing of dynamic form names. Parsed form names are available in the global variable gsFormMain.

Example: Initializing PeopleSoft API functions

benchmark SilkPerformerRecorder

use "WebAPI.bdh"
use "PeopleSoftApi.bdh"

dcluser
  user
    VUser
  transactions
    TInit : begin;
    TMain : 1;

var
  // ...

dclrand

dcltrans
  transaction TInit
  begin
    WebSetBrowser(WEB_BROWSER_MSIE6);
	WebModifyHttpHeader("Accept-Language", "en-us");
	WebSetStandardHost("crm.ps.my.company.com");
	PeopleSoftInit();
    //GetLoginInfoPS("LoginPS.csv", gsUserId, gsPassword);
    //WebSetUserBehavior(WEB_USERBEHAVIOR_FIRST_TIME);
    //WebSetDocumentCache(true, WEB_CACHE_CHECK_SESSION);
  end TInit;