Page History
Preconditions specify the conditions that need to be fulfilled in order to execute a test.
A Precondition is A Precondition is like defining the step "0" for your tests. This is very useful in many use cases where you have to start by doing exactly the same thing. For example, if you are going to do something on a system, you most probably have to authenticate first, right? But sometimes, you have to do several things (e.g., restore the DB, authenticate) before going through your Test steps. And each of those things may be done and used independently, i.e., some Tests may require just restoring the DB, another may require just to authenticate, and others may require both or more.
...
Each of the Test Types has a Kind, the Kind of the Type of a Precondition must be of the same Kind as the Type of the Test it is associated with.
...
Step 1: Click the Create Issue at the top of the screen to open the Create Issue dialog box / page.
And in the old UI, click the "+" button on the left:
Step 2: Select the Project. On Issue Type, select Precondition.
...
Step 2: To save the changes, just click outside of the field area of to click the save button located in the bottom right corner of the editing field.
Note: For Manual, Exploratory and Generic Precondition types some options are available in the edit mode:
Clone
Cloning a Precondition issue creates a new Precondition with all the information of the cloned Precondition, except its executions. Therefore, the cloned issue will not be associated with any Test issue.
To clone a Precondition issue, select the "Clone" action in the issue page:
After this, an additional dialog will be shown.
And after the issue is created, its page will be opened.
On some occasions the cloned issue page may open before the Xray information is actually cloned and as a result the new Precondition will appear empty.
When this happens the following information will be shown:
Change Precondition Type
When the Type of a Precondition is changed, both the previous Info details and the associated Tests will be lost.
...
Create Tests
To create a Test directly associated with the current Precondition from the Precondition issue view screen:
Step 1: Open the Precondition issue view screen you want to create a Test with.
Step 2: Click Create Test (under the Tests section on the view page) to open the Create Issue dialog box.
Click Tests panel in the Preconditions Details section.
Step 3: Open Add Tests dropdown and click on New Test option.
Step 4Step 3: Type a Summary for the Precondition and complete all appropriate fields — at least, the required ones marked by an asterisk.
Step 45: Click Create.
Associate Tests
...
Step 1: Open the Precondition you want to associate a Test with.
Step 2: Click Tests panel in the Preconditions Details section.
Step 3: Open Add Tests dropdown and click on Existing Tests option Add Tests (under the Tests tab on the view page) to open the Add Tests dialog box.
Step 34: Select or search the Test issues to be associated with the Precondition:
...
- Input the desired Test Issue Key on the Tests field
- Click on the Down Arrow on the Tests field and select the Test from its History Search list
- Click on the Search tab to use the Find Jira issues browser (more details here)
Search Test Issues:Under the Search tab:
- Browse for the desired Test Project, Type or terms it Contains
- Click on the More button to add more browse fields such as Select the desired Project and any other desired field such as Test Type, Contains, Label, Fix Version, Component, Covering, Covering Fix Version, Saved Filters and Workflow Status
- Click on the MagnifierSearch button after filling the browse fields to get a list of matching entries entries
Search Test Issues using JQL: Under the JQL tab:
- Write the desired JQL search
- Click on the AdvancedSearch button to perform a JQL search the JQL search and to get a list of the matching entries (more details about JQL here)
Step 45: Click Add Selected to add the tests you have selected or Add All to add all the tests that were filtered by the search parameters.
...
Step 2: On the Tests table, click on the ... in desired Test row and then click Delete in the drop down dropdown menu. You will be prompted with a confirmation dialog.
...
Xray provides the following bulk operations, with a limit of 100 rows, on the Tests table.
- Remove - Deletes all the selected Tests associations with a Precondition.
...
Step 3: Selected the desired Test issues (until 100 rows).
Step 4: Click the bulk actions button located in the Actions column and choose one of the available actions.
Xray History
Any changes made to the Precondition data are recorded on the Xray History section.
...
These include:
- Changing the Precondition Type
- Changing the Precondition Definition
- Linking the Precondition with other entities (Tests)