Preparing SAP GUI for Testing

Applies to TestLeft 15.40, last modified on March 17, 2022

SAP ERP is a resource-planning 3-layer solution by SAP SE for managing business processes. Three layers of the solution include the database, application server, and client (SAP GUI or SAP Front-End). SAP GUI allows accessing SAP solution features. There are versions for Windows, Linux, and Apple. With TestLeft, you can create and run automated tests for the SAP GUI for Windows.

Supported SAP GUI versions

SAP GUI 7.40 - 7.60 for Windows.

Requirements and prerequisites

  • TestLeft version 4.74

  • SAP GUI Scripting API must be enabled (see below).

Preparing SAP GUI for testing

Before you can test SAP GUI, prepare it for testing.

On client side
  1. Launch SAP Logon and click Options.

  2. In the tree on the left, select Accessibility and Scripting > Scripting.

  3. Make sure that Installation is set to Scripting is installed.

  4. In the User Settings section, select the Enable scripting check box.

  5. Disable the rest of the check boxes.

    Enabling scripting in SAP GUI

    Click the image to enlarge it.

  6. Apply and save the changes.

On server side
  1. Launch SAP Logon and connect to your SAP server.

  2. In the Transaction text box, enter RZ11.

  3. In the resulting Profile parameter maintenance dialog, enter sapgui/user_scripting and click Display.

  4. In the Display Profile Parameter Attributes dialog, click Change Value.

  5. In the Change Parameter Value dialog, in the New Value text box, enter True and click Save.

  6. You may need to re-log on for the changes to take effect.

You may also need to enable scripting for a user profile:

  1. In the Transaction text box, enter RZ11.

  2. In the resulting dialog, locate the sapgui/user_scripting_per_user parameter and click Display.

  3. In the resulting dialog, click Change Value.

  4. Set the parameter value to True and then click Save.

See Also

Preparing Desktop Applications for Testing

Highlight search results