B2G/QA/Smoke Tests: Difference between revisions

→‎Test Automation: Adding Automation to run smokests locally
(→‎OTA: removed test cases that have moved to dogfood testing)
(→‎Test Automation: Adding Automation to run smokests locally)
Line 50: Line 50:
= Test Automation =
= Test Automation =
* Gaia UI Tests: https://github.com/mozilla-b2g/gaia/tree/master/tests/python/gaia-ui-tests
* Gaia UI Tests: https://github.com/mozilla-b2g/gaia/tree/master/tests/python/gaia-ui-tests
:
:
:1. clone the gaia repository or pull the latest changes
::git clone https://github.com/mozilla-b2g/gaia.git
:2. change the branch to the correct version that will be tested example:
::git checkout v2.0
:3. flash your phone with an engineering build (make sure that ADB is enabled on your device)
can be any engineering build from pvtbuilds
:4. Point at the correct ports.
::adb forward tcp:2828 tcp:2828
:5 (need to be done once). create a python virtualenv:
::virtualenv .env    //--system-site-packages -- shouldn’t need
:6. enter by
::source .env/bin/activate
:7. cd into
::[gaia repository]./tests/python/gaia-ui-tests
:8. install gaiatest, run:
::python setup.py develop
::OR
::./setup.py develop
:9a. (need to be done once per setup). copy the testvars_template.json to testvars.json in */gaiatest
::cp gaiatest/testvars_template.json gaiatest/testvars.json
:9b. (need to be done once per setup) Open the testvars.json file within your repository; bottom of the file, just before the last bracket, add (with the first comma): ,"acknowledged_risks": true, "skip_warning": true
:10. Run the Smoketest set:
::gaiatest --testvars=gaiatest/testvars.json --address=localhost:2828 --type=b2g+smoketest --timeout=300000 --html-output=results/results.html --restart gaiatest/tests/manifest.ini


= Smoke Tests by Functional Area =
= Smoke Tests by Functional Area =