Organize Tests

Tests can be created, imported or modified. Once created, there are many ways to organize them.

Organize tests

By project

At a Jira level, tests are organized under projects, i.e. a test belongs to a Jira project (this happens by virtue of you creating a new test in a project or importing existing ones into a project).

By version

Once a test has been created for a project, it can be further organized by versions. If one or more Versions have been created for a project, they appear in the Fix Version/s field, allowing you to add one or more versions that this test belongs to. The Test Summary screen displays a summary of all these tests organized by version. If no version has been selected, the tests appear under Unscheduled.

Important

The Affects Version/s is not used by tests.

Searching in the Issue Navigator by that Fixed Version gives you a list of tests that belong to that version. Using the Bulk Change feature of the Issue Navigator, a large number of tests can be made a part of another Fixed Version very easily (e.g. bringing over the entire regression suite from one version to another).

Test Distribution metrics then give you a good idea about how your tests are distributed when you pick that version.

By component

Tests can also be related to components. If one or more components have been created for a project by a Jira or project administrator, then they can be added to a test. The Test Summary screen displays a summary of all these tests organized by component. If no component is chosen, tests appear under No Component.

Test Distribution metrics then give you a good idea about how your tests are distributed by the component when you pick that option.

Practical example

Suppose you have 3 versions - Version 1.0, Version 2.0 and Version 3.0 in a particular project, with components C1, C2 and C3 (typically system or module names).

You can begin by creating tests for Version 1.0 (use Fixed Version) and ensuring they belong to the right components. Then you can add user-generated labels such as "functionality" or "regression" or "unit_test" to those tests so that you can then search by those labels.

Once done with Version 1.0, as you are getting ready for Version 2.0, search for all tests marked Version 1.0 (Fixed Version) in the Issue Navigator, and then perform a Bulk Change operation on them to add Version 2.0 (Fixed Version). Now all of your tests are ready for Version 2.0

See Also

Writing Tests

Search Tests

Publication date: