canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,747
edits
m (moved QA/Execution/Litmus to QA/Execution/MozTrap) |
No edit summary |
||
| Line 1: | Line 1: | ||
=Overview= | =Overview= | ||
[https:// | [https://moztrap.mozilla.org MozTrap] is Mozilla's Test Case Management tool. Use it to run and manage test suites of Mozilla products. | ||
=Running | =Running MozTrap Tests= | ||
TBD. | TBD. | ||
= Handling of | = Handling of Tests = | ||
== | == Creation of Tests== | ||
With the flip to the rapid release cycle for Firefox, changes have had to be made when | With the flip to the rapid release cycle for Firefox, changes have had to be made when MozTrap tests will be added. This process is important for QA to sign-off on new features and allow a continuous testing by our community. | ||
If you are already aware of the steps which have to be taken but don't know how to write a | If you are already aware of the steps which have to be taken but don't know how to write a MozTrap test in general, you should simply check our [http://quality.mozilla.org/docs/litmus/test-case-writing-primer/ Litmus Test Case Writing Primer on QMO] in how to get started. | ||
Please keep the following items in mind when you create new | Please keep the following items in mind when you create new MozTrap test: | ||
* Start with planning of new | * Start with planning of new tests while the feature is getting implemented on mozilla-central and are available in Nightly builds. Have that list available in a i.e. Google spreadsheet for manual testing until the tests are available in MozTrap. | ||
* Once the ''mozilla-central'' -> ''mozilla-aurora'' merge happened, add your already prepared | * Once the ''mozilla-central'' -> ''mozilla-aurora'' merge happened, add your already prepared manual tests and set the appropriate version tag for the Firefox version. Also enable them for the community. | ||
== Disabling of | == Disabling of Tests == | ||
If some of the | If some of the MozTrap tests aren't valid anymore, they will have to be disabled instead of deleted. The reason is simply to retain all the test results. By following the steps below you can make sure that disabled tests don't appear in active test-runs.<br> | ||
#If the test is covered by Mozmill, inform the Desktop Automation team so the automated test can be also removed. Further delete the additional content at the bottom of the list of steps. | #If the test is covered by Mozmill, inform the Desktop Automation team so the automated test can be also removed. Further delete the additional content at the bottom of the list of steps. | ||
#Update the summary to list the testgroup name (see [[QA/Execution/Fx3.7LitmusOverhaul|Litmus Overhaul]]) | #Update the summary to list the testgroup name (see [[QA/Execution/Fx3.7LitmusOverhaul|Litmus Overhaul]]) | ||
| Line 31: | Line 29: | ||
== Test Data Handling == | == Test Data Handling == | ||
A lot of our existing MozTrap tests have external content as test data. While it is relatively easy to add steps in a test which interact with a web page, it is also very likely that those tests will be broken over time, when the website owner decides to change its structure. That's why we should invest a bit of our time for the creation of minimized test data, wherever it is possible. | |||
When you start to create a new MozTrap test or update an older test, please make sure to check the following list if test data is involved in that test. If you can answer all the items with yes, make sure to create minimized test data. | |||
;Requirements: | |||
* The content you are referring to is located on an external website | |||
* The test itself doesn't require different websites (domains) | |||
The work which has to be done to create test data can be different. In the simplest case you only have to copy an existing image (make sure we obey the copyright permissions), but there can also be situations when you have to create your own or minimizing an existing HTML document. Put together all needed files before continuing. | |||
To be able to reference the test data from within a MozTrap test, the created files have to be uploaded to a place which is accessible by everyone. Therefore we are using our [http://hg.mozilla.org/qa/testcase-data/file/ testcase-data repository]. Whenever you want to upload test data step through the steps given below. | |||
To be able to reference the test data from within a | |||
;How to get data on the server | ;How to get data on the server | ||
* Open the [http://hg.mozilla.org/qa/testcase-data/file/ testcase-data repository] and check under which subgroup the files have to be added. | |||
* Check for existing files in that subgroup and name your own files accordingly. | |||
* File a bug in 'Mozilla QA / Infrastructure' to get the tests added and attach a patch to it. As example see bug 780286. Once the patch is up request review from Henrik (:whimboo). | |||
When the files are in the repository, you can update the MozTrap test and reference the test data via mozqa.com, which is the public mirror and shadows the test data here: http://mozqa.com/data/. | |||
To add the link to the MozTrap test please use the following syntax: [link name](url)<br> | |||
To add the link to the | |||
A real example you can find in [https://litmus.mozilla.org/show_test.cgi?id=10077 Litmus test 10077]. | A real example you can find in [https://litmus.mozilla.org/show_test.cgi?id=10077 Litmus test 10077]. | ||
= | =MozTrap ownerships= | ||
A list of people that are responsible for certain subgroups of tests can be found here: [https://wiki.mozilla.org/QA/Execution/Litmus/Ownership Desktop] and [https://wiki.mozilla.org/QA/Execution/Litmus/Fennec Mobile] | |||
A list of people that are responsible for certain subgroups of | |||