SAP testing guidelines
Before you test the SAP applications, you must set up your test environment and incorporate these guidelines to produce reliable SAP tests.
SAP configuration
The SAP GUI client software must be installed on the same computer as HCL DevOps Test UI (Test UI). The SAP GUI client is required for recording and running tests. For information about support of SAP GUI versions, refer to the SAP Note 1412821 - SAP GUI for Windows: Support on Windows for SAP.
The product is optimized by default for SAP GUI version 7.10 or later. To improve performance with older SAP GUI 6.20 and 6.40 versions, when running long tests, you must change the bridge2java.dll file located in the C:\Program Files\HCL\DevOpsTest\plugins\com.ibm.rational.test.lt.runtime.sap\<build_identifier> directory by renaming bridge2java.dll to bridge2javaV7.dll, and then renaming bridge2javaV6.dll to bridge2java.dll.
- The SAP GUI client software, configured with the same logon properties as the client on which the tests were recorded
- The HCL DevOps Test UI (Test UI) software that is provided with the product
Testing relies on the SAP Scripting API and ActiveX. Make sure that these options are selected when installing the SAP GUI client.
Test recording and running also require that scripting be enabled on the SAP application server and on all SAP GUI clients that are installed on remote computers. See the topic on configuring SAP for testing for more information.
Limitations
During playback of the tests, each virtual user runs SAP GUI in silent mode by default (the user interface is not displayed on the screen). However, some modal dialogs from the SAP GUI might briefly flash on the screen.
Avoid recording SAP tests with the SAP GUI low speed connection setting. You cannot run with a normal speed connection tests that you recorded with this setting.
You can have a maximum of only 50 virtual users on an agent for a SAP GUI test.
Batch input tests
You can use batch input tests to simulate a large number of virtual users while minimizing the load on the virtual user computers.
Batch input tests access the SAP server at a low level, bypassing the SAP GUI interface, and therefore cannot contain any verification points or SAP GUI elements. Their main purpose is to simulate a load on the server when added to a test that already contains SAP tests. Only the SAP tests will provide accurate SAP application performance measurement.
Batch input transactions are recorded in the SAP GUI and exported to the file system. You can then generate batch input tests that are based on those recorded transactions.
Long duration test runs
When running long duration test schedules that exceed many hours, use the long run mode process to reduce resource consumption with the SAP GUI client. This mode increases the reliability of long duration test runs because a new process starts every time the specified number of SAP sessions completes. Hence, Windows resource consumption is bare minimum. You must enable this option for each user group in the schedule.
In the long run mode, a new process is created each time the number of SAP test instances reaches the specified number.
Cleaning the SAP work directory
-DrptCleanSapWorkDir=C:\Documents and Settings\UserName\SapWorkDir
RPT_CLEAN_SAPWORKDIR="C:\Users\UserName\AppData\Local\SAP\SAP GUI\Traces"
If you set the variable to the SapWorkDir folder location, the
contents (*.trc files) of the folder are removed when a schedule starts. If the
variable is set to true
or on
, the product
automatically searches for the SapWorkDir folder before
removing its contents. If the variable is set to false
or
off
, no action is taken.