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:
25
loop-test.sh
Normal file
25
loop-test.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
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 [ $# -eq 0 ]; then
|
||||
echo "Usage: ./loop-test.sh <test-file> [profile] [options]"
|
||||
echo ""
|
||||
echo "Examples:"
|
||||
echo " ./loop-test.sh step1.test Chrome"
|
||||
echo " ./loop-test.sh step1.test Chrome --delay 1000"
|
||||
echo " ./loop-test.sh step1.test Chrome --log my-test.log"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting test loop for: $1 with profile: $2"
|
||||
echo "Log will be saved to a timestamped file"
|
||||
echo ""
|
||||
|
||||
node loop-test.js "$@"
|
||||
Reference in New Issue
Block a user