Skip to main content

SapGui Library

This library is created to automate testing the SAP GUI desktop client using the Robot Framework. It uses the native Sap Gui Scripting engine to interact with the SAP GUI interface.

Installation

SapGuiLibrary can be found on PyPI: https://pypi.org/project/robotframework-sapguilibrary.

To install, simply use pip:

pip install robotframework-sapguilibrary

Dependencies are automatically installed.

Importing in Robot Framework

As soon as installation has succeeded, you can import the library in Robot Framework:

*** Settings ***
Library  SapGuiLibrary

Usage

First of all be sure you've enabled the user_scripting option on the server. I haven't done this myself so I can't give you a proven example on how to do this. I've checked it on Google and it looks like you can change this using the RZ11 transaction.

When de Scripting Engine is enabled, you have to start de Sap Logon Pad. Unfortunately the scripting engine doesn't enable you to start this so you have to use something like the Process or the AutoIT library. When the Sap Logon Pad is available, you use the 'Connect to session' keyword to attach to the session.

Finding locators

Finding the locators for the elements requires you to use an extra tool to identify these locators. To best tool for that is the SAP Scripting Tracker. More information about this tool can be found at this blogpost on the SAP website

If you just want to download the tool follow this link. To tool Tracker.exe is the one you want to use.

Tip: Finding an element within a Shell type component requires an extra step, because the Tracker will only show you the Shell identifier. You can find the identifier by using de recorder function and than perform the actions you want to automate. After saving the recording you can find the identifiers within the recorded script.

Keyword documentation

For the keyword documentation go here.

Metadata

Release files for robotframework-sapguilibrary 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotframework-sapguilibrary 1.1
File Size Uploaded
robotframework-sapguilibrary-1.1.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-sapguilibrary 1.1
File Interpreter ABI Platform
robotframework_sapguilibrary-1.1-py2-none-any.whl Python 2 none any Details

Total release size: 23.7 kB

Release files / robotframework-sapguilibrary-1.1.tar.gz

Download URL robotframework-sapguilibrary-1.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b07f209f5e8bb9588b8993ad601c4bd9150635e914a0edb0c2496ca3d66373a
BLAKE2b-256 checksum
How to use checksums
f035235cee6cac6daf6d757df999b8f96b3e65a41d480077a6bd2cf8e533899f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

Release files / robotframework_sapguilibrary-1.1-py2-none-any.whl

Download URL robotframework_sapguilibrary-1.1-py2-none-any.whl
Size 14.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c422e23623911b2c70630f9e01fcec754bb8ae16d9f8dbab29d1ee588800daf6
BLAKE2b-256 checksum
How to use checksums
76b020545fa8b64b5a2e79d655935aec06723ca6a473a6b66035f2330a12958b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0.5

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page