This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
516 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,96 @@ | |||
.. _tutorial-create-tests: | |||
|
|||
MozTrap Tutorial, part 2 | |||
======================== | |||
|
|||
In this section, we discuss creating test cases and organizing them into | |||
suites. | |||
|
|||
Create test Suites | |||
------------------ | |||
|
|||
Test Suites are collections of test cases. A test case can belong to more | |||
than one suite, if need be. | |||
|
|||
Let's write some tests to cover two areas of the **SpeckDetector**. It should | |||
detect specks of sand and specks of pollen. And you should also be able to | |||
update your SpeckDetector's firmware. | |||
|
|||
Steps | |||
^^^^^ | |||
#. navigate to ``manage | suites`` | |||
#. click ``create a test suite`` | |||
#. set your product to ``SpeckDetector`` | |||
#. set name to ``Specks`` | |||
#. enter a description that includes Markdown_ syntax:: | |||
|
|||
PRECONDITIONS | |||
============= | |||
* Must have some specks | |||
|
|||
LINKS | |||
===== | |||
* [Specks of Life](http://example.com/) | |||
|
|||
#. you won't have any available cases yet, so skip that and just | |||
click ``save suite`` | |||
#. repeat these steps for a suite but name it ``Firmware`` | |||
|
|||
Create test Cases | |||
----------------- | |||
|
|||
Now we need to create some test cases for those suites. | |||
|
|||
Steps | |||
^^^^^ | |||
#. navigate to ``manage | cases`` | |||
#. click ``create a test case`` | |||
#. set your product to ``SpeckDetector`` | |||
#. set version to ``1.0`` | |||
#. set suite to ``Specks`` | |||
#. :ref:`ID Prefix<test-case-edit-fields>` is optional, skip it for now | |||
#. set name to ``Detect a pollen speck`` | |||
#. for ``instruction`` 1, enter:: | |||
|
|||
hold detector held away from pollen | |||
|
|||
#. for ``expected`` 1, enter:: | |||
|
|||
no detection lights | |||
|
|||
#. tab to ``instruction`` 2, enter:: | |||
|
|||
hold detector above a pollen speck | |||
|
|||
#. tab to ``expected`` 2, enter:: | |||
|
|||
detector lights up word "pollen" | |||
|
|||
#. click ``save test case`` | |||
|
|||
|
|||
That's one down. Whew! OK, now create another test case for the ``firmware`` | |||
suite with steps like this: | |||
|
|||
#. name: ``update firmware`` | |||
#. for ``instruction`` 1, enter:: | |||
|
|||
navigate to firmware update screen and select "update" | |||
|
|||
#. for ``expected`` 1, enter:: | |||
|
|||
see "a firmware update is available" | |||
|
|||
#. tab to ``instruction`` 2, enter:: | |||
|
|||
click "apply update" | |||
|
|||
#. tab to ``expected`` 2, enter:: | |||
|
|||
firmware value should say the new version | |||
|
|||
|
|||
Great! You're done with your cases! | |||
|
|||
.. _Markdown: http://daringfireball.net/projects/markdown/syntax | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,72 @@ | |||
.. _tutorial-create-runs: | |||
|
|||
Moztrap Tutorial, part 3 | |||
======================== | |||
|
|||
In this section, we use the pieces you've already built to create and activate | |||
a test run that users can execute. | |||
|
|||
|
|||
Create a Test Run | |||
----------------- | |||
|
|||
Test Runs are made up of test suites and are specific to a version of your | |||
product. You may want to have several test runs. One could be called | |||
``smoke`` and another ``feature complete`` and yet another | |||
``full functional tests``. Or you could break them up into larger functional | |||
areas like ``front-end`` and ``server``. | |||
|
|||
Let's create your first **SpeckDetector** test run. It will contain all the | |||
suites you have created so far. Let's call this ``feature complete``. | |||
|
|||
Steps | |||
^^^^^ | |||
#. navigate to ``manage | runs`` | |||
#. click ``create a test run`` | |||
#. set your product version to ``SpeckDetector 1.0`` | |||
#. set name to ``feature complete`` | |||
#. enter a description that includes Markdown_ syntax. This information | |||
will be displayed at the top of each page while running the tests:: | |||
|
|||
LINKS | |||
===== | |||
* [Specks of Life](http://example.com/) | |||
* [Bugzilla](http://bugzilla.mycompany.com) | |||
|
|||
#. :ref:`series<test-run-series>` defaults to true. We will want to run | |||
our tests against several ongoing builds of the **SpeckDetector**, so | |||
in our case we *will* create a series. Please take a moment to see | |||
what a :ref:`run series<test-run-series>` is. | |||
#. Leave the ``start`` date as today. If you want the run to expire, then | |||
set the ``end`` date, too. | |||
#. drag both suites from ``available`` to ``included`` | |||
#. click ``save run`` | |||
|
|||
|
|||
Activate your Run | |||
----------------- | |||
|
|||
Your run is just about ready. However, there's one more critical step you | |||
must take before it can be executed. You must make the run *active*. | |||
|
|||
Why not have test runs active all the time? Good question. | |||
:ref:`Look here<test-run-states>`, Curious George. | |||
|
|||
Steps | |||
^^^^^ | |||
#. navigate to ``manage | runs`` | |||
#. find your test run ``feature complete`` | |||
#. click the status icon | |||
* |run_activate| | |||
#. click "Activate" | |||
|
|||
.. |run_activate| image:: img/run_activate.png | |||
:height: 150px | |||
|
|||
|
|||
Isn't this exciting? You now have a test run series created and ready to go! | |||
Go tell your boss. | |||
|
|||
|
|||
.. _Markdown: http://daringfireball.net/projects/markdown/syntax | |||
|
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.