Skip to main content

Robot Framework keyword library for SAP GUI automation (Java and Windows)

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 VeloSapguiLibrary client=auto or export VELO_SAP_CLIENT=java|windows|auto.

Architecture

.robot suite
    │
    └─► VeloSapguiLibrary (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    VeloSapguiLibrary    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 disabled
  • SapKeywordError — SAP action failed; message included in RF output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_velo_sapgui-0.2.4.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_velo_sapgui-0.2.4-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_velo_sapgui-0.2.4.tar.gz.

File metadata

File hashes

Hashes for robotframework_velo_sapgui-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c7a4bb7ef05e83b3515fe728d35ff6597c611305121ce4a9a06ab4ce17a7c5c9
MD5 9700dc1d23ee7c83148d36230b186c76
BLAKE2b-256 ed6b01daf4beca536ddcda0e2b4c3779ad6317cfcb64eda79506deda4bb68dbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_velo_sapgui-0.2.4.tar.gz:

Publisher: publish.yml on Hyper-Velo/robotframework-velo-sapgui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robotframework_velo_sapgui-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_velo_sapgui-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 682253e0cdcf5bda5ce3ff39836b7ed8f3bb64826fcffbb9d1f59d09d2c8d448
MD5 82fcadecbbe00f5490ff8a5933fc0f7b
BLAKE2b-256 671e38b028e7f45adef037a3601237869b209befa372678e56629f5da0331443

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_velo_sapgui-0.2.4-py3-none-any.whl:

Publisher: publish.yml on Hyper-Velo/robotframework-velo-sapgui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page