Versions Compared

Key

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

...

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

Search steps

Steps can easily be searched using autocomplete, further restricted by some given labels. 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-selectionWrite part of the step content (you may click on the search icon to enforce a search if needed).

Step 2: Edit the merged step content on the right side.Step 3: Click on Save.Select the labels to filter out the steps just containing the identified labels; this can be done before or after writting the step content to search for.
If more than one label is specified, then onl steps containing all those labels are shown.



Merge / Refactor multiple steps


Info
titlePlease note

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

Only non-readonly Tests/Preconditions that the user is allowed to edit are updated; the other ones will remain as-is, leading to the simultaneous existence of original steps along with the merged one in the library, in this case.

A merge operation may require some manual reviewing on the destination affected Tests/Preconditions.


Example: two steps are merged to one having the content: => "Given I have a turned on calculator"


Original Test/Precondition contentUpdated Test/Precondition content
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


As you can see from this example, in which the original Test/Precondition contains the original steps, the merge operation does not remove duplicated steps in the destination Cucumber Scenario/Background.

Thus, a manual process should be done on the affected issues in order to review the specification and remove the steps where desired.


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.

Find Tests and Preconditions using a step

To find all the Tests or Preconditions using a given step:

Step 1: Click on the step.

Step 2: Click on the number shown below the step content box.

Step 3: The issues search will show all related issues.

Update / Refactor a step

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

...