You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Automated Steps Library is a project-level steps library organization for Cucumber Tests/Preconditions, containing all the Gherkin steps referred by all those Tests/Preconditions belonging to that project.

Thus, it provides an overview of all the automated (Gherkin) steps used in the context of each project, allowing users to easily refactor the steps.

The library is automatically populated with all the steps upon the creation/update of Cucumber Tests/Preconditions.


Learn more

Please refer to Overview of the Automated Steps Library for a more detailed information of this feature.


Settings


Please note

To edit the Test Repository of a given project, you must be able to, at least, access the project (i.e., browse permission) and have one of the project roles configured in Xray settings for that project.



Overview of the Automated Steps UI

The Test Repository screen can be accessed from the project left sidebar by choosing the Test Repository icon.

The image below depicts the several key areas of the Test Repository screen, which includes the Test Repository itself, along with some auxiliary folders.



<TODO>


A: Folders section

    • A1: "All" and "Orphans" metafolders
    • A2the Test Repository itself, composed of folders and sub-folders with Tests organized within them
    • A3: CRUD actions for the current selected folder (e.g., create, rename, delete)
    • A4: information about the number of Tests within the current folder and the total Tests, including sub-folders

B: Tests section

    • B1: path of the folder
    • B2: filter for Tests 
    • B3: additional information about the shown Tests versus the actual total number of Tests within the current folder 
    • B4: ranked list of Tests within the current folder (only direct children)

Actions

A step can be selected by clicking on it. Once selected, you may update it, for example.

Multiple selection is possible by using the "Ctrl" key (on Windows) or the "Cmd" key (on OS X). If you want to select more than one step  and the steps are listed consecutively, use the "Shift" key to quickly select an entire group. Click the first step in the list you want to select, hold down the "Shift" key, scroll down to the last step you want and click it. This selects the first item, the last item and all items in between.

Merge / Refactor multiple steps

To merge similar redundant steps, select t the content of an existing step (i.e. refactor it):

Step 1: Select the steps (see Actions above for information on multi-selection).

Step 2: Edit the merged step content on the right side.

Step 3: Click on Save.


Please note

Upon a steps merge operation, all the Tests and Preconditions using it are updated accordingly.


=> "Given I have a turned on calculator"


Original Test/PreconditionUpdated Test/Precondition
Given I have a calculator

Given I have a turned on calculator

Given I have a turned on calculator

And the calculator is turned on



Update / Refactor a step

To update the content of an existing step (i.e. refactor it):

Step 1: Click on the step.

Step 2: Edit the step content on the right side.

Step 3: Click on Save.

Add Label

To add a label to an existing step:

Step 1: Click on the step.

Step 2: Click on labels input box to enter a new label or use the arrow dropdown to pick an existing one.

Step 3: Click on Save.

Remove Label

To remove a label from an existing step:

Step 1: Click on the step.

Step 2: Click on the cross of the label in the labels input box or use the backspace after positioning the cursor after the desired label.

Step 3: Click on Save.




  • No labels