Prerequisite: Make sure that SAP GUI Scripting is installed
When installing SAP GUI for Windows application, it must be selected with the SAP GUI Scripting installation option. If not selected when installing the SAP GUI for Windows application, it is essential that this option should be reinstalled and select this option before setting the other configuration options described in this section.
Note: SAP provides a range of security mechanisms that enable the administrator to limit the use of SAP GUI Scripting by system, by group, by user, and by scripting functionality. To test SAP GUI for Windows applications, it must be ensured that these security mechanisms are not activated.
Enable scripting on the SAP application (server-side)
a. Confirm that having the proper support package and kernel patch levels installed.
b. Enable scripting on the SAP application. (By default, scripting is disabled.) Doing this by entering the Maintain Profile Parameters window with administrative permissions and setting the sapgui/user_scripting profile parameter to TRUE on the application server.
§ To enable scripting for all users, set this parameter on all application servers.
§ To enable scripting for a specific group of users, set the parameter only on application servers with the appropriate access restriction settings.
Note: If connecting to a server on which scripting is disabled, an error message displays when trying to record on the SAP GUI for Windows application.
Enable scripting on the SAP application (client-side)
This can be done on the SAP client only if the SAP GUI Scripting option is installed. If this option is not installed, reinstall the SAP GUI for Windows application and be sure to select the SAP GUI Scripting check box.
Eliminate warning messages
By default, two warning messages will regularly receive when using UFT with an SAP GUI for Windows application:
o When UFT connects to the Scripting API, the following warning message is displayed: A script is trying to attach to the GUI.
o When UFT opens a new connection using the Scripting API, the following warning message is displayed: A script is opening a connection to system <system_name>.
It is recommended to disable these warning messages in the SAP GUI for Windows application when working with UFT.
Check the connection speed on the SAP server
Confirm that the Low speed connection option is NOT selected for the server to which are connecting before recording and running GUI tests.
This is because when logging on to SAP using the Low speed connection option to communicate with the server, the SAP server does not send sufficient information for UFT to properly record and run tests. (UFT displays an error message if the Low speed connection option is selected.)
Set F1 Help to use the modal dialog box mode
Confirm that the modal dialog box option is selected. This enables UFT to record the display of F1 Help in the tests. (The F1 Help in the SAP GUI for Windows application can be displayed using either the Performance Assistant or as a modal dialog box.)
Set F4 Help to use the dialog display mode
Confirm that client is set to load F4 Help screens in Dialog mode. (The SAP GUI for Windows application cannot load F4 Help screens in Control mode when using the SAP GUI Scripting API (Enable Scripting option.)
Note: This is a per-user setting. It must be set this option on each client that would be tested using the UFT Add-in for SAP Solutions. Alternatively, the SAP system administrator can change the system default.