Organize and write tests
Documentation
The Repository tab holds your test library: a folder tree on the left and a table of tests on the right. Creating and editing tests needs the Administer projects permission.
Create a folder
- Open Repository.
- In the folder pane, select New folder and enter a name.
- Drag folders to re-parent them, or use the folder menu to rename, move, export as CSV or delete.
Create a test
- Open Repository and choose a folder.
- Select Create test, or press
C. Type a title and press Enter. - Press Shift+Enter instead to create the test and open it.
You can also type a title in the inline row at the bottom of the table.
Write the test
Open a test to edit it. A test has:
- Preconditions: what must be true before the test starts.
- Steps: an action, optional data and an expected result for each step.
- Rich text and images: format text and paste images into a step.
- Labels, priority and owner.
Each editing session is saved as a revision. Open the history to compare revisions and restore an earlier one.
States
A test is Draft, Ready or Deprecated. By default only project leads can change the content of a Ready test or move it out of Ready. Deprecated tests are hidden by default and are never added to new cycles.
Labels
Add labels from the editor or in bulk. A test holds up to 20 labels of at most 40 characters each, and 510 characters of labels in total (each label counts its characters plus one).
Link requirements
- Open the test and select the Links tab.
- Add one or more Jira issues. You can link issues from any project you can browse.
You can also link from a story with the Link tests… action. See Traceability and coverage.
Work on many tests at once
Select tests in the table, then use the bulk bar: Add to cycle, move, edit fields, link a requirement, or set a status. Use the search box (press /) to find tests by key or title, and the filters for status, priority, label and last result.
Import
To bring in an existing library, see Import and export.