https://github.com/testdriverai/demo-v5-exec
https://github.com/testdriverai/demo-v5-exec
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/testdriverai/demo-v5-exec
- Owner: testdriverai
- Created: 2025-04-16T20:05:15.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T11:27:08.000Z (8 months ago)
- Last Synced: 2026-01-29T21:26:11.100Z (2 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-v5-exec
New (undocumented) changes in v5:
# Lifecycle Scripts
Opening any instance of testdriver will automatically run script found in `testdriver/lifecycle/prerun.yaml`.
# Exec Updates
Exec now takes a `lang` argument and has support for different OSs thought (`linux`, `mac`, and `windows`).
- `lang` values are `js` or `shell`
- `js` code is executed in a NodeJS VM on the `host` machine (your computer)
- `shell` code is executed in shell on the `runner`.
- code found in `linux`, `mac`, and `windows` is run based on the platform of the `runner` machine
```yaml
- command: exec
lang: shell
linux: |
jumpapp google-chrome --disable-fre --no-default-browser-check --no-first-run "${TD_WEBSITE}" &
exit
mac: |
open -na "Google Chrome" --args --disable-fre --no-default-browser-check --no-first-run --disable-features=PasswordManagerEnabled "${TD_WEBSITE}" &
exit
windows:
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "${TD_WEBSITE}"
exit
- command: wait-for-text
text: "Google Chrome"
timeout: 30000
```
# VM Updates
VMs are now customized with:
- `jumpapp`
- `nodejs`
- Google Chrome
- TestDriver wallpaper