test-runner
Skill14 starsChanged 21 months agoMITView on GitHub
Execute STAF tests using sap_automation_qa.sh. Supports direct Ansible execution and API mode. Use when asked to run tests, execute configuration checks, or start HA tests on SAP systems. Triggered by "run test", "execute ha test", "start test", "run configuration check", "test my system", or "trigger test job".
8 other projects use a version of this.
Adopted by
Most recently taken up by
- mekiki-io/mekiki-open-skillstheir own version, first seen Sep 30, 2026
- caseyng/Claude-skillstheir own version, first seen May 22, 2026
- eugeniosegala/claude-connoisseurtheir own version, first seen Apr 9, 2026
- shivae372/claude-bootstraptheir own version, first seen Apr 8, 2026
- AskExe/exe-build-skillstheir own version, first seen Mar 17, 2026
- claude-world/director-mode-litetheir own version, first seen Mar 13, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- claude-world/director-mode-lite★ 80same name
- zircote/subcog★ 29same name
- eugeniosegala/claude-connoisseur★ 9same name
- AskExe/exe-build-skills★ 4same name
- caseyng/Claude-skills★ 1same name
- shivae372/claude-bootstrap★ 1same name
- EffortlessMetrics/demo-swarm★ 0same name
- mekiki-io/mekiki-open-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- setup-guideSkill
- test-result-analyzerSkill
- workspace-creatorSkill
- workspace-validatorSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Run tests directly via Ansible (no API server required).
- Distinctive: line 113
Create a directory for ad-hoc log captures:
- Very specific: line 154
When running configuration checks, use --test-type=ConfigurationChecks CLI flag or set TEST_TYPE=ConfigurationChecks in vars.yaml.
- Distinctive: line 260
Before reporting test execution complete:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Runner
Executes STAF tests via the framework's sap_automation_qa.sh CLI. Supports two modes: direct
Ansible execution and API-driven job management.
Locate Framework
This skill requires a trusted STAF checkout — a working tree the
operator has verified out-of-band as either the official upstream
(https://github.com/Azure/sap-automation-qa.git) or a fork of it, at a
specific revision, with the framework marker ./scripts/sap_automation_qa.sh
present. The operator must have verified both the source (upstream URL or
fork URL) and the revision through a trusted out-of-band channel before
running this skill, and must have cd-ed into that directory. If that
state is not confirmed, stop and use the setup-guide skill first; it owns
the setup workflow. Do not resume this skill until setup-guide (or the
operator directly) confirms the checkout is trusted.
⚠️ This skill is guidance only. Do NOT modify any source code, scripts, or framework files. Only help the user by running test commands and interpreting output.
When to Use
| Trigger | Action |
run test / execute ha test | Run specific HA test cases |
run configuration check | Run config validation |
start test / test my system | Determine and run appropriate tests |
trigger test job | Create API job |
list running tests | Check job status via API |
schedule test | Create cron schedule |
Direct Execution Mode
Run tests directly via Ansible (no API server required).
Syntax
./scripts/sap_automation_qa.sh --test-groups=<GROUP> [--test-cases=[case1,case2]] [FLAGS]Test Groups
| Group | Description |
HA_DB_HANA | HANA Database HA tests (15 cases) |
HA_SCS | SAP Central Services HA tests (13 cases) |
BACKUP_DB_HANA | Azure Backup for HANA (5 cases) |
Flags
| Flag | Description |
-v / -vv / -vvv | Verbosity level |
--offline | Run offline validation (no live cluster) |
--extra-vars='{...}' | Pass extra variables as JSON |
Parameter Overrides (override vars.yaml at runtime)
| Flag | Description |
--test-type=TYPE | SAPFunctionalTests or ConfigurationChecks |
--system-config=NAME | System configuration name |
--functional-test-type=TYPE | e.g., DatabaseHighAvailability |
--auth-type=TYPE | SSHKEY or VMPASSWORD |
--workspaces-dir=DIR | Workspaces directory (default: WORKSPACES) |
--telemetry-destination=DEST | azureloganalytics or azuredataexplorer |
--identity-client-id=ID | User-assigned managed identity client ID |
Examples
# Run all HANA HA tests
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA
# Run specific test cases
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA --test-cases=[ha-config,primary-node-crash]
# Run SCS tests
./scripts/sap_automation_qa.sh --test-groups=HA_SCS
# Run Azure Backup tests
./scripts/sap_automation_qa.sh --test-groups=BACKUP_DB_HANA
# Run configuration checks (via CLI flag, no vars.yaml change needed)
./scripts/sap_automation_qa.sh --test-type=ConfigurationChecks --system-config=DEV-WEEU-SAP01-X00 --auth-type=SSHKEY
# Run specific config check type
./scripts/sap_automation_qa.sh --test-type=ConfigurationChecks --system-config=DEV-WEEU-SAP01-X00 --extra-vars='{"configuration_test_type":"Database"}'
# Offline HA validation (no cluster interaction)
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA --test-cases=[ha-config-offline] --offline
# Verbose output
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA --test-cases=[ha-config] -vvCapturing Execution Logs
CLI Output Capture
Create a directory for ad-hoc log captures:
mkdir -p logs/Capture stdout and stderr to a timestamped file while still printing to the terminal:
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA --test-cases=[ha-config] 2>&1 | tee logs/run_$(date +%Y%m%d_%H%M%S).logRedirect all output silently to a file:
./scripts/sap_automation_qa.sh --test-groups=HA_DB_HANA 2>&1 > logs/run_$(date +%Y%m%d_%H%M%S).logAutomatic Framework Logs
The framework writes logs automatically during every execution:
| Log Type | Path |
| Structured results (JSON lines) | WORKSPACES/SYSTEM/{name}/logs/{invocation_id}.log |
| Raw Ansible output | WORKSPACES/SYSTEM/{name}/logs/execution_{timestamp}.log |
API Mode Logs
For API-driven runs, stream logs and events in real time:
# Tail the job log
./scripts/sap_automation_qa.sh job log --id <JOB_ID>
# Stream SSE events
./scripts/sap_automation_qa.sh job events --id <JOB_ID>Configuration Check Types
When running configuration checks, use --test-type=ConfigurationChecks CLI flag or set TEST_TYPE=ConfigurationChecks in vars.yaml. Use --extra-vars to select a specific check type:
| Type | Description |
all | Run all configuration checks |
Database | Database instance checks |
CentralServiceInstances | SCS/ERS checks |
ApplicationInstances | PAS/APP checks |
WebDispatcherInstances | Web Dispatcher checks |
ObserverInstances | Observer checks |
API Mode
Requires the FastAPI server running (Docker or local uvicorn).
Health Check
./scripts/sap_automation_qa.sh healthWorkspace Management
# List all workspaces
./scripts/sap_automation_qa.sh workspace
# Get specific workspace
./scripts/sap_automation_qa.sh workspace --id <WORKSPACE_ID>Job Management
# Create a job
./scripts/sap_automation_qa.sh job create --workspace <WS> --test-group <GROUP> [--test-ids id1,id2]
# List jobs
./scripts/sap_automation_qa.sh job list [--workspace <WS>] [--status running] [--active]
# Get job details
./scripts/sap_automation_qa.sh job get --id <JOB_ID>
# Get job log
./scripts/sap_automation_qa.sh job log --id <JOB_ID> [--tail N]
# Stream job events (SSE)
./scripts/sap_automation_qa.sh job events --id <JOB_ID>
# Cancel a job
./scripts/sap_automation_qa.sh job cancel --id <JOB_ID> [--reason "text"]API test group names:
DatabaseHighAvailability(maps to HA_DB_HANA)CentralServicesHighAvailability(maps to HA_SCS)AzureBackupDatabase(maps to BACKUP_DB_HANA)
Schedule Management
# Create schedule
./scripts/sap_automation_qa.sh schedule create --name "Nightly HA" --cron "0 2 * * *" --workspaces WS1[,WS2]
# List schedules
./scripts/sap_automation_qa.sh schedule list
# Get schedule details
./scripts/sap_automation_qa.sh schedule get --id <SCHEDULE_ID>
# Update schedule
./scripts/sap_automation_qa.sh schedule update --id <SCHEDULE_ID> [--cron "..."] [--enabled true]
# Delete schedule
./scripts/sap_automation_qa.sh schedule delete --id <SCHEDULE_ID>
# Trigger immediately
./scripts/sap_automation_qa.sh schedule trigger --id <SCHEDULE_ID>
# View schedule job history
./scripts/sap_automation_qa.sh schedule jobs --id <SCHEDULE_ID> [--limit N]Test Catalog
Full test case reference: references/test-catalog.md
Output Locations
Result file paths (JSON lines log, Ansible execution log, HTML report) are
canonical in the test-result-analyzer skill; see its ## Result File
Locations section.
Error Handling
| Error | Cause | Fix |
Workspace not found | Invalid SYSTEM_CONFIG_NAME in vars.yaml | Check workspace exists |
SSH connection failed | Auth or network issue | Validate SSH key, check connectivity |
vars.yaml not found | Missing config | Create vars.yaml at project root or use CLI flags |
API not reachable | Server not running | Stop this skill and invoke setup-guide to start or restore the API/container. setup-guide owns the setup workflow; do not run setup.sh, docker compose, or any container-start command from this skill. Resume this skill only after setup-guide (or the operator directly) confirms the API is reachable. |
Job already running | Workspace locked | Wait for completion or cancel existing job |
Test case not found | Invalid test-case name | Check test-catalog.md for valid names |
Pre-Completion Checklist
Before reporting test execution complete:
- Correct test group and cases selected for the scenario
- vars.yaml configured with correct SYSTEM_CONFIG_NAME
- Workspace validated (sap-parameters.yaml + hosts.yaml + SSH)
- Test completed (check exit code or job status)
- Results available in logs directory
Related Skills
| Need to... | Use skill |
| Set up environment first | setup-guide |
| Create a workspace | workspace-creator |
| Validate workspace before running | workspace-validator |
| Analyze test results | test-result-analyzer |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

