Add 'jumpIf' and 'jumpIfNot' commands to README and executor; implement parsing, execution, and linter support for conditional command jumps in test scripts.

This commit is contained in:
seb
2025-07-17 14:06:41 +02:00
parent 41e4424650
commit 85f7f81236
9 changed files with 454 additions and 11 deletions

26
loop-test.bat Normal file
View File

@@ -0,0 +1,26 @@
@echo off
echo PlayWrong Test Loop Script
echo ========================
echo.
echo This script will run the PlayWrong test in a loop until it fails.
echo Press Ctrl+C to stop the loop manually.
echo.
if "%~1"=="" (
echo Usage: loop-test.bat ^<test-file^> [profile] [options]
echo.
echo Examples:
echo loop-test.bat step1.test Chrome
echo loop-test.bat step1.test Chrome --delay 1000
echo loop-test.bat step1.test Chrome --log my-test.log
echo.
echo Press any key to exit...
pause >nul
exit /b 1
)
echo Starting test loop for: %1 with profile: %2
echo Log will be saved to a timestamped file
echo.
node loop-test.js %*