run_example.sh 459 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. trap "kill -- -$$" EXIT
  3. cd ..
  4. npm install
  5. # Start Selenium Server
  6. ./node_modules/.bin/webdriver-manager update
  7. ./node_modules/.bin/webdriver-manager start &> /dev/null &
  8. # Start Blocking Proxy
  9. node ./built/lib/bin.js \
  10. --seleniumAddress http://localhost:4444/wd/hub \
  11. --port 8001 \
  12. --highlightDelay 3000 \
  13. --logDir examples/ &> /dev/null &
  14. # Wait a bit for things to come up
  15. sleep 2
  16. # Run the test
  17. python examples/e2e_test.py