This repo is an example of MozIlluminate, our next-generation test case management system for Firefox OS QA
#What is MozIlluminate? MozIlluminate allows you to write test cases in Google spreadsheet, and automatically check-in to GitHub, then automatically sync to MozTrap. So you get the best of both worlds, namely:
- Easy to read/edit/search with Google spreadsheet
- Version control with GitHub
- Test execution and reporting from MozTrap
#Prerequisite
- Use Linux or Mac OSX
- Install python and pip
sudo pip install oauth2client gspread openpyxl
- If the installation failed on OSX due to the
six
package deprecation, run the command with flag--ignore-installed six
- If the installation failed on OSX due to the
#Usage
- Write your test cases in Google Spreadsheet (example)
- Clone this repository
- Ask the admin to give you commit permission to this repository
- Ask the admin to give you a credential JSON file, put it in the root directory of this repository
- Add the link of the spreadsheet to
testcases_locations.txt
- Share the spreadsheet with this robot user:
[email protected]
- Edit the spreadsheet as you like
- When you are done editing, run the
commit.sh
script, you'll be prompted to type a commit message, your github username and password - Once the script finished without error, Go to https://travis-ci.org/MozIlluminate/mozilluminate-demo/builds to see the test cases being synced to MozTrap-dev
- Go to https://moztrap-dev.allizom.org/manage/cases/ to see your new test cases.
- When you run
commit.sh
, the script downloads the google spreadsheet and transform it into a local json file - Then the
commit.sh
script doesgit add
,git commit
andgit push
- Travis CI server detects the push, and run the
.travis.yml
file - The
.travis.yml
file triggers thetests/MozIlluminate/sync.py
tests/MozIlluminate/sync.py
checks for the diff between HEAD and HEAD~1 and push the difference to MozTrap throught its REST API
- Shing Lyu ([email protected])
- Tags don't work write now, blocked by mozilla/moztrap#101
- Product Version is hard-coded to v2.5.
- Only supports one suite per test case (the spreadsheet name).
- Environments are not handled
- All test case steps goes into the first step on MozTrap, need to define a test step format.