Sahi Documentation

SAP GUI Automation - Getting Started

abstract This section details how to test SAP GUI Applications. If you are not familiar with Sahi Pro, see Quick Tutorial on Sahi Pro

Start SAP GUI Automation

Using the Controller and Element Identification

info
  1. If SAP automation is not enabled,Enable SAP Automation link must be clicked from Sahi Dashboard before starting identification or recording.
  2. Refer Identify Elements for a better understanding.

Evaluate Expression

Evaluating SAP GUI Application expression through Controller. It helps while identifying elements or while debugging.
infoNote: If SAP automation is not enabled, Enable SAP Automation link must be clicked from Sahi Dashboard and 'Sahi-SAP' must be selected as the 'Select mode for evaluate' during evaluating.
infoRefer Evaluate Expression for a better understanding.

Recording a script

This is similar to recording a Sahi script for normal browser testing.
info
  1. If SAP automation is not enabled, Enable SAP Automation link must be clicked from Sahi Dashboard before starting identification or recording.
  2. Note : A user's interaction with SAP GUI involves communication with SAP server. A communication with SAP server is initiated by SAP GUI at multiple occasions. The most common actions by user that initiate SAP server communication are as follows:
    • Enter key pressed from keyboard
    • Click on Enter button in the toolbar
    • Click on Save button in the toolbar
    While recording with Sahi Pro SAP Add-on, the actions performed in SAP GUI are captured for every such SAP GUI to SAP server communication. Thus the steps get recorded after every Enter key press, Click on Enter button in the toolbar, Click on Save button in the toolbar, etc.

    For example : When recording login operation, we would enter user name, enter password and press enter key from keyboard. In this case, all these three actions will be recorded after enter key is pressed.
  3. Refer Record a script for a better understanding.

Playback

From Controller

Once a script is recorded, it can be played back from the Controller Playback tab itself.
infoNote: A script cannot be played back if SAP automation is not enabled. Enable SAP Automation link must be clicked from Sahi Dashboard.
infoRefer Playback Tab for a better understanding.

From the Editor

You can playback the script from the Editor as well. Refer Editor Playback for a better understanding.
infoNote: A script cannot be played back if SAP automation is not enabled. Enable SAP Automation link must be clicked from Sahi Dashboard.