Skip to main content

How do I edit the steps of a Test Case?

Written by Ines

You edit the steps of a Test Case in two ways. Describe the change to Thunders AI in natural language, or change the steps yourself in the steps list: edit, add, move, delete, skip, copy and paste them. Thunders saves each change to the Test Case at once.

Prerequisites

  • A Test Project

  • A Test Case

To create the first steps of a Test Case, see How to generate test steps.

Edit steps with Thunders AI

  1. Open the Test Case.

  2. Click Thunders AI at the top right of the page. The Thunders AI panel opens on the right.

  3. In the message field, describe the change. For example:

    • "Update step 2 to type [email protected] in the 'Email' field"

    • "Add a verification step after step 1"

  4. (Optional) To give Thunders AI more context, click Add files, variables and connectors (+). You can attach a file, insert a Variable, or use a connector. You can also paste steps that you copied from a Test Case.

  5. (Optional) Choose the effort level in Effort. A higher effort gives a more thorough answer and uses more credits.

  6. Click Update (the arrow button).

Thunders AI changes the steps of the Test Case directly, and it summarizes the change in the conversation. Each change adds a version card to the conversation. The card of the version in use shows Current. To go back to an earlier version, click Set on its card.

After the change, Thunders AI asks Execute the test now?. Click Execute to run the test, or Not now.

If a run is in progress, Thunders AI applies the update when the run ends.

Edit steps in the steps list

Edit a step

  1. Hover over the step. The Edit (pencil) and More actions (⋮) buttons appear on the right of the step.

  2. Click Edit.

  3. In the Edit step dialog, change the fields that you need:

    • Step type: the kind of step (see the list below).

    • App: the App that the step runs on, when the Test Case uses more than one App. When the run changes App, the change costs 0.10 credits.

    • The step description. To insert a Variable or a Test Asset, click Add variables or assets, or type /. To attach a file, click Attach a file.

  4. (Optional, AI Step and Conditional Step (If) only) Click Advanced settings, then turn on Find the element using only visual processing. Thunders then finds the element from what it sees on the screen. Use this for lookalike buttons, canvas, charts and games. The step runs more slowly.

  5. Click Save.

Step types

The Step type list depends on the App of the step.

For a web App:

  • AI Step: an action in natural language, which Thunders carries out.

  • API Call: an HTTP request, with parameters for each Environment and a response Variable.

  • Web Step: one exact browser action, such as a click or a text entry.

  • Conditional Step (If): a condition, and the action to take when the condition is true: go to a later step, or stop the run. See How to add and use a Conditional Step.

  • JavaScript Step: a script that runs in the current page.

  • Existing Test Case: another Test Case, reused as one step. See Reusable Tests.

  • Visual Compare Step: compares the page with a reference image.

  • File Compare Step (Beta): compares the contents of two files.

  • Capture Profile: saves the signed-in session of the run as a Profile.

  • Inject Profile: starts from a saved Profile, so that the run is already signed in.

For a mobile App, the list has AI Step, API Call, Mobile Step, Conditional Step (If), Existing Test Case, Visual Compare Step and File Compare Step.

Inside a Discovery step, Conditional Step (If), Capture Profile and Inject Profile are not available.

Add a step

  1. Choose where to add the step:

    • At the end of the list: click Add a new step....

    • Between two steps: hover over the border between the two steps. A line with Insert step appears. Click Insert step.

  2. In the Add new step dialog, choose the Step type and fill in the fields.

  3. Click Add.

To add a clean-up step, click Add a new clean-up step... at the bottom of the list.

Move a step

  1. Make sure that no run is in progress.

  2. Drag the step to its new position, and drop it.

Thunders saves the new order. You cannot move a step while a run is in progress or while Thunders AI changes the steps.

Delete a step

  1. Hover over the step, then click More actions (⋮).

  2. Click Delete.

  3. In the Delete this step? dialog, click Delete. You cannot undo this action.

More step actions

The More actions (⋮) menu of a step also has these actions:

  • Skip Step / Enable Step: exclude the step from the runs, or include it again.

  • Add breakpoint / Remove breakpoint: pause the run at this step, so that you can examine the page. Breakpoints need Chrome or Chromium as the browser of the run, and you cannot set one on a skipped step.

  • Regenerate step (Discovery steps only): changes the step back into one AI Step and deletes its sub-steps. The next run finds the sub-steps again.

  • Open original Test Case (Existing Test Case steps only): opens the reused Test Case in a new tab. Edit the reused steps there.

The More actions menu of a step, with the actions Skip Step, Add breakpoint, Edit and Delete

On a failed step, click Why did this step fail? to open Thunders AI with the failed step as context.

Select several steps

  1. Select the checkbox at the left of a step. To select a range of steps, hold Shift and select the checkbox of another step.

  2. A bar shows the number of selected steps and these actions:

    • Delete: deletes the selected steps, after a confirmation. You can also press Delete or Backspace.

    • Copy: copies the selected steps. You can also press Ctrl+C (Cmd+C on macOS).

    • More actions (⋮) > Skip Steps or Enable Steps.

    • More actions (⋮) > Create a test case: creates a new Test Case from the selected steps. You can set its Owner, its Labels and its Test Sets.

  3. To clear the selection, click × in the bar.

Three selected steps and the selection bar with Delete, Copy and More actions

Copy and paste steps

  1. Select the steps, then click Copy in the bar, or press Ctrl+C (Cmd+C on macOS).

  2. Open the Test Case where you want the steps.

  3. Press Ctrl+V (Cmd+V on macOS).

Thunders adds the pasted steps at the end of the list. A pasted clean-up step goes to the end of the clean-up steps. To remove the pasted steps, click Undo in the message that confirms the paste.

You can paste 200 steps at most at one time. Thunders refuses the paste, and pastes no step, when a step uses an App that the project does not have, or reuses a Test Case that the project does not have.

You can also paste copied steps into the Thunders AI message field, to give Thunders AI the steps as context.

FAQ

How do I undo a change that Thunders AI made?
Each change from Thunders AI adds a version card to the conversation. Click Set on the card of an earlier version to go back to that version.

How do I undo a paste?
Click Undo in the message that confirms the paste. After the message closes, select the pasted steps and delete them.

How do I edit the steps of a reused Test Case?
Open the reused Test Case with Open original Test Case in the More actions (⋮) menu of the step, and edit its steps there. The change applies to every Test Case that reuses it.

How do I edit steps while a test runs?
Wait for the run to end. During a run, the steps list is locked. A change that you ask Thunders AI for during a run is applied when the run ends.

What happens when another user edits the same Test Case?
If another user saved a change first, Thunders shows Test case modified and does not save your change. Click Refresh to load the latest version, then make your change again.

Related articles on this topic that you might find helpful

Did this answer your question?