- Install PhantomJS:
brew install phantomjs
- Run Karma tests:
gulp karma
- Update WebDriver:
gulp webdriver-update
The test configuration points to the Google Chrome browser. The test works with Google Chrome version 77.0.3865.75 together with chromedriver version 77.0.3865.40.
- Connect a device or start an Android emulator.
- Run MongoDB:
docker run --rm -d -p 27017:27017 -h 127.0.0.1 --name mongo mongo:6.0.10 --replSet=test && sleep 4 && docker exec mongo mongosh --eval "rs.initiate();"
- Run STF:
Wait until STF is fully functional and devices are discovered.
./bin/stf local
- Run tests:
gulp protractor
Test results can be found at: test-results/reports-protractor/dashboardReport-protractor/index.html
- Connect a device.
- Run STF.
- Run Protractor with multiple browsers and a specific suite:
gulp protractor --multi --suite devices
- Set environment variables:
export STF_URL='http://stf-url/#!/' export STF_USERNAME='user' export STF_PASSWORD='pass'
- Run Protractor tests:
gulp protractor