Skip to content

Commit

Permalink
Sync test case to MT with parsed steps
Browse files Browse the repository at this point in the history
  • Loading branch information
shinglyu committed Jan 22, 2016
1 parent d7dca8c commit 3295543
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ MozIlluminate allows you to write test cases in Google spreadsheet, and automati
8. 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
9. Go to https://moztrap-dev.allizom.org/manage/cases/ to see your new test cases.

# How it works
* When you run `commit.sh`, the script downloads the google spreadsheet and transform it into a local json file
* Then the `commit.sh` script does `git add`, `git commit` and `git push`
* Travis CI server detects the push, and run the `.travis.yml` file
* The `.travis.yml` file triggers the `tests/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

# Admins
* Shing Lyu ([email protected])

Expand Down
1 change: 1 addition & 0 deletions commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def main():
test_case_title = wks.find('Test Case') #TODO: case insensitive?
test_cases_col = wks.col_values(test_case_title.col)
test_steps_title = wks.find('Test Steps')
# TODO: parse the steps
test_steps_col = wks.col_values(test_steps_title.col)
test_descriptions_title = wks.find('Descriptions / Prerequisite')
test_descriptions_col = wks.col_values(test_descriptions_title.col)
Expand Down
2 changes: 1 addition & 1 deletion tests/mozilluminate/moztrap_integration/moztrapcli
1 change: 0 additions & 1 deletion tests/mozilluminate/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def main():
# diff = (add, modify, remove)
#print json.dumps(diff_out, indent=3)


#parsed_json_f = tempfile.NamedTemporaryFile()

mtapi.mtorigin = "https://moztrap-dev.allizom.org"
Expand Down

0 comments on commit 3295543

Please sign in to comment.