SAP Profile Settings

Recording Settings

Settings specific for recording can be changed on the recording tab of your profile settings:

  • Script logon as single function - If enabled, the logon procedure will be scripted as SapGuiLogon API call. If disabled, multiple API calls like setting username, password and pressing ENTER will be scripted.
  • Script low level functions - Instead of high level API functions, like for example SapGuiSetText, low level API functions will be scripted, such as SapGuiInvokeMethod, SapGuiSetProperty, …
  • Script timers - Most of the SAPGUI API functions take an optional timer parameter. If this parameter is defined, measures for this will be generated during replay. If this option is enabled, SAPGUI Recorder will automatically script appropriate timer names for each function.
  • Attach to existing SAP session - If enabled, SAPGUI Recorder will attach to an existing SAPGUI session without recording the SapGuiOpenConnection statement.
  • Record window title verification - If enabled, SAPGUI Recorder will script the SapGuiSetActiveWindow with the window title in order to be verified during replay.

Common Settings

The following settings are common settings for both recording and replaying:

  • Log level - Defines the level of logging. For troubleshooting, use Debug, otherwise use Normal. When running large load tests logging should be Disabled in order to reduce memory consumption.
  • Capture screenshots - If enabled, screenshots will be captured for every new window that is activated. This option is only available if Show SAPGUI during single runs is enabled when replaying the script.
  • Capture screenshots for every action - If enabled, screenshots will be captured for every user action that causes a roundtrip to the SAP server. This option is only available if Capture screenshots is enabled.
  • Log control information in TrueLog - If enabled, control information about every control on the active window will be logged to the TrueLog. This allows you to use the customization feature in TrueLog Explorer. This option should be disabled when running load tests as it implies additional resource consumption.
  • Log control information for single run in TrueLog - Same as Log control information in TrueLog, but only for try script and verification runs.
  • Log control information on error - If enabled, control information about every control on the active window will be logged to the TrueLog in case of an error during replay. This allows you to troubleshoot your replay problem by getting the current state of all controls on the screen where the error happened. It is recommended to use this option during a load test rather than Log control information in TrueLog.

Default Profile Settings

When recording an SAP application using the default profile settings (capture screenshots and log control information), the SAP client may appear slower than usual. This is due to the extra overhead required for taking screenshots and logging control information for all controls on each SAP window. This option should not be changed however as you will lose the many benefits that the TrueLog provides. However if you experience timing problems, switch off the options in this order:
  • Capture screenshots for every action
  • Capture screenshots
  • Log control information in TrueLog

Replay Settings

Settings specific for replaying can be changed on the replay tab of your profile settings:

  • Replay timeout - Defines the timeout during replay. If there is no response from the server within this timeout period an error will be thrown.
  • Show SAPGUI during single runs - If enabled, the SAPGUI client will be shown during replay. This option should only be used for a Try-Script run. During a load test it should be turned of.
  • Enable client-side scripting - SAPGUI scripting needs to be enabled on every client machine via the Options menu in the SAPGUI client application. When running a test on multiple agents it would imply that this setting need to be changed manually on every machine before starting the load test. By enabling this option, Silk Performer is changing the setting automatically on every agent before starting the load test.
  • Use new SAP Visual Design - SAPGUI can be run in two visual modes, the old or the new visual design mode. The setting normally needs to be changed with the SAP Configuration Tool. By enabling/disabling this option, Silk Performer does this change automatically before starting the load test. This option allows you to test the different behavior in terms of resource consumption when using either the old or new visual design.

Timers and Counters

The Measuring tab contains settings for replay measuring. You can either Enable all timers and counters for all controls, or select those that are of interest to you. Timers will only be created for method calls that have the optional timer parameter specified.

For a description about those timers, see SAP Results.