Runs prerecorded actions in an SAP system to complete exercises for the SAP-Fallstudien course. Designed as a reference/archive of executed solutions; not intended for general-purpose use.
- TypeScript 100%
| .vscode | ||
| src | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.json | ||
sap-exercise-solver
Runs prerecorded actions in an SAP system to complete the "SAP‑Fallstudien HWR‑Berlin" exercise.
Configuration (env variables)
- URL: full SAP URL (valid URL)
- CLIENT: numeric client ID (integer ≤ 999)
- BROWSER: one of supported browsers (defaults to
chromium) - HEADLESS: "true" or "false" (case-insensitive)
- UNumber: exactly 3 characters
- USERNAME: SAP username
- PASSWORD: SAP password
Usage
Using Terminal
- Set env vars or use .env
- Install dependencies
npm install
- Run the app (node / npm script). Validation errors are printed to console.
npm start
Using VSCode extension
- Set env vars or use .env (browser and headless configuration can be omitted as they're set by the extension)
- Install dependencies
npm install
- Open the project in vscode and install recommended extensions (playwright)
- Go to the left menu bar and select the "Erlenmeyer flask"
- In the test explorer select tests -> index.spec.ts -> SAP FALLSTUDIE
- In the lower menu "Playwright" you can select your settings (like browser or headless)
- Click on the play-icon to start the run
License
MIT