projecte_ionic/node_modules/blocking-proxy/examples/run_example.sh
2022-02-09 18:30:03 +01:00

22 lines
459 B
Bash
Executable file

#!/bin/bash
trap "kill -- -$$" EXIT
cd ..
npm install
# Start Selenium Server
./node_modules/.bin/webdriver-manager update
./node_modules/.bin/webdriver-manager start &> /dev/null &
# Start Blocking Proxy
node ./built/lib/bin.js \
--seleniumAddress http://localhost:4444/wd/hub \
--port 8001 \
--highlightDelay 3000 \
--logDir examples/ &> /dev/null &
# Wait a bit for things to come up
sleep 2
# Run the test
python examples/e2e_test.py