1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 09:49:17 +02:00
OpenSTF/TESTING.md
Lukasz.Zeglinski 7d593cdb51 Add test for issue #1076
Add tests for device icon view
2019-09-19 16:41:18 +02:00

980 B

Unit Frontend

  • brew install phantomjs
  • gulp karma

E2E Frontend

On first run

  • gulp webdriver-update

Protractor&Jasmine - Local STF tests


Preconditions

Test configuration point to Google Chrome browser. Test works on Google Chrome v.77.0.3865.75 together with chromedriver with ver. 77.0.3865.40.


  • Connect a device or start android emulator
  • Run RethinkDb
      rethinkdb
    
  • Run stf
      ./bin/stf local
    
    Wait till STF will be fully functional and devices will be discovered
  • Run tests
       gulp protractor
    

Info

Test results can be found in: test-results/reports-protractor/dashboardReport-protractor/index.html


Multiple Browsers Local STF with a specific suite

  • Connect a device
  • Run stf
  • gulp protractor --multi --suite devices

Chrome Remote STF

  • export STF_URL='http://stf-url/#!/'
  • export STF_USERNAME='user'
  • export STF_PASSWORD='pass'
  • gulp protractor