QA/Execution/Web Testing/Automation/Running Mobile Tests
From MozillaWiki
< QA | Execution | Web Testing | Automation
Running Mobile Tests
The Web QA team runs all of our mobile test suites on CI via Saucelabs, but sometimes it is quicker to just run a test, or tests locally, particularly when you are developing.
Android Driver Setup
In order to run the tests on a device or an emulator you must first set up Android Driver. Detailed instructions for this can be found at the official Android Driver docs.
Running Tests
To run tests directly (i.e., not via a local instance of Selenium Grid), use the following command line:
py.test --host=localhost --port=8080 --browsername=android --platform=Android path/to/test(s)