Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.
Image Added
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. 

Image Added

Note: For Manual, Exploratory and Generic Precondition types some options are available in the edit mode:

Image AddedImage Removed

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:

Image RemovedImage Added

After this, an additional dialog will be shown.

Image RemovedImage Added

And after the issue is created, its page will be opened.

...

Change Precondition Type

When the Type of a Precondition is changed, both the previous Info details and the associated Tests will be lost.

...

Image Added

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.

Image Removed

Click Tests panel in the Preconditions Details section.

Step 3: Open Add Tests dropdown and click on New Test option.

Image Added

Step 4Step 3: Type a Summary for the Precondition and complete all appropriate fields — at least, the required ones marked by an asterisk.

Image Modified

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.

Image RemovedImage Added

Step 34: Select or search the Test issues to be associated with the Precondition:

...

- Write the desired JQL search
- Click on the Search button to perform 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.

Image Added

        

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)

Image AddedImage Removed