Robot Framework keyword library for SAP GUI automation (Java and Windows)
Reason this release was yanked:
security
Project description
robotframework-velo-sapgui
Robot Framework keyword library for SAP GUI automation on Java (py4j) and Windows (COM Scripting).
Backends
| Backend | Platform | Prerequisites |
|---|---|---|
java |
Linux Docker / Mac via Docker | SAP GUI for Java + sapgui-engine gateway on port 8081 |
windows |
Native Windows laptop | Customer-installed SAP GUI for Windows + scripting enabled |
auto |
Default | windows on win32, java elsewhere |
Set Library SapLibrary client=auto or export VELO_SAP_CLIENT=java|windows|auto.
Architecture
.robot suite
│
└─► SapLibrary (Python)
│
├─► JavaGatewayBackend ── py4j ──► sapgui-engine ──► SAP GUI for Java
│
└─► WindowsScriptingBackend ── COM ──► SAP GUI for Windows
Connection is lazy — resources are opened on the first keyword.
Installation
pip install robotframework-velo-sapgui
# Windows COM backend
pip install "robotframework-velo-sapgui[windows]"
Usage
*** Settings ***
Library SapLibrary client=auto port=8081 recording=True
*** Test Cases ***
Create Sales Order
Connect /H/my-sap-host/S/3200
Type User MY_USER
Type Password ${PASSWORD}
Press Enter
Open Transaction VA01
[Teardown] Cleanup
Credentials and connection strings live in each suite so multi-role SAP flows can switch users within one test.
Scripting event capture
recording=True captures SAP scripting interaction events (not video) to events.jsonl under $RESULTS_DIR:
{"timestamp": "...", "action": "Type", "element_id": "...", "name": "User", "type": "", "value": "MY_USER", "screen_context": "...", "source": "automation"}
Optional keywords: Start Event Capture, Stop Event Capture, Get Captured Events.
Video MP4 for cloud runs is produced by the execution container (entrypoint.sh), not this library.
Library arguments
| Argument | Default | Description |
|---|---|---|
client |
auto |
SAP client backend: auto, java, or windows |
port |
8081 |
Java gateway port (java backend only) |
recording |
False |
Start scripting event capture on first connect |
Environment variables
| Variable | Description |
|---|---|
VELO_SAP_CLIENT |
Override client library argument |
RESULTS_DIR |
Output directory for screenshots and events.jsonl |
VELO_EVENTS_PATH |
Override path for event capture file |
SAP prerequisites
- Server:
sapgui/user_scripting = TRUE - Client: SAP GUI scripting enabled
- Optional:
sapgui/user_scripting_disable_recording = 0(avoid recorder dialog during event capture)
Error handling
SapConnectionError— backend not reachable or scripting disabledSapKeywordError— SAP action failed; message included in RF output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_velo_sapgui-0.2.2.tar.gz.
File metadata
- Download URL: robotframework_velo_sapgui-0.2.2.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e01267077096b22194706f5d67dcbc608a19a1e2c06555bef8a7287f8a7e15
|
|
| MD5 |
e36b9912ba58e85e2b5aee67d6a660bc
|
|
| BLAKE2b-256 |
134577026fabbae2f382d12733c8935b44f792927934fb0b7afbbb71446b3470
|
Provenance
The following attestation bundles were made for robotframework_velo_sapgui-0.2.2.tar.gz:
Publisher:
publish.yml on Hyper-Velo/robotframework-velo-sapgui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotframework_velo_sapgui-0.2.2.tar.gz -
Subject digest:
09e01267077096b22194706f5d67dcbc608a19a1e2c06555bef8a7287f8a7e15 - Sigstore transparency entry: 1647818586
- Sigstore integration time:
-
Permalink:
Hyper-Velo/robotframework-velo-sapgui@eec4b650760e5e42d7baf8b9fee60a23b16ce392 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Hyper-Velo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eec4b650760e5e42d7baf8b9fee60a23b16ce392 -
Trigger Event:
push
-
Statement type:
File details
Details for the file robotframework_velo_sapgui-0.2.2-py3-none-any.whl.
File metadata
- Download URL: robotframework_velo_sapgui-0.2.2-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afcae770d52e14841378bc139624dd2033fbbbedddf1c62b601f40773c0393a2
|
|
| MD5 |
5b0e0e083a62f330a5e39fa48a10d0ad
|
|
| BLAKE2b-256 |
a74b4737739e6b15b37d6cf0d951b58d68a6e00d501743cc650ec5313be1efab
|
Provenance
The following attestation bundles were made for robotframework_velo_sapgui-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on Hyper-Velo/robotframework-velo-sapgui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotframework_velo_sapgui-0.2.2-py3-none-any.whl -
Subject digest:
afcae770d52e14841378bc139624dd2033fbbbedddf1c62b601f40773c0393a2 - Sigstore transparency entry: 1647818699
- Sigstore integration time:
-
Permalink:
Hyper-Velo/robotframework-velo-sapgui@eec4b650760e5e42d7baf8b9fee60a23b16ce392 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Hyper-Velo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eec4b650760e5e42d7baf8b9fee60a23b16ce392 -
Trigger Event:
push
-
Statement type: