This page has not yet finished. Your feed back to email@example.com would be greatly appreciated.
Gaia UI tests will utilize marionette client to communicate with marionette server on device/emulator. We will elaborate about the different ways to install different components for gaia-ui-tests later.
There are two different ways to install gaia-ui-tests depending on your needs.
Route 1 - for test executor
If you only want to run the tests without developing anything, just the command below in command line. It should
Route 2 - for developers (suggested option)
If you anticipate in modifying gaiatest, you can do this instead:
git clone git://github.com/mozilla/gaia-ui-tests.git
If you do not want to install gaiatest and dependencies into system's site-packages, follow the Virtual Environment Setup section's steps below.
Or, you can just setup gaiatest by the following command:
cd gaia-ui-tests python setup.py develop
Virtual Environment Setup
The virtualenv can let you install gaiatest and all package dependencies into the virtual environment without affecting your system's site-packages. You could find the tutorial on virtualenv official website, or you can reference the tutorial down below:
First of all, get the virtualenv installed in Ubuntu:
sudo apt-get install python-virtualenv
Creating and Activating
Then create your virtual environment for Python and activate it:
virtualenv <ENV_NAME> source <ENV_NAME>/bin/activate
You can creating more than one virtual environment for your purpose.
Setup the gaiatest
Usually, you just only need to follow the steps to install dependencies for gaiatest into virtual environment.
cd gaia-ui-tests python setup.py developDeactivating
Testing on a device
Testing on emulator
Automatically launched emulator
Mannually launched emulator
Testing on desktop B2G
Test Data Prerequisites
How to Contribute
Get your github account
Fork it and clone it
Take issues and send pull requests
Test guidelines and examples
CSS Locators and XPath Locators Resources