Manually create and edit steps

This topic describes how to manually create and fine tune test steps.

Manually add and edit steps

You can create test steps manually by adding an object and an action, using the AI Codeless Testing artificial intelligence.

Tip: Use the default shortcut key to redo or undo any changes made to a step in the Editor.

To manually add a test step:

  1. Make sure the browser or remote window is open.

  2. To add a new step, click the Add Step button at the bottom of the step list.

  3. In the EDIT STEP tab:

    1. Type a class in the Object Class drop down. Type the first letters to view a list of the available classes. Click the Highlight Object button to locate the selected object in the application.

    2. If applicable, type a name for the object.

    3. Select or accept the default action for the selected object. AI Codeless Testing adds your selections to the current step.

    4. For text steps, you can set the object class property to Partial Text. This capability finds your text anywhere and clicks it, even if it is part of a larger text block.

      If you select the Partial Text option, a PT indicator is added to the test step.

    5. If relevant, click Add Position. Specify a position and index for the object.

      If you specify a position, a P indicator is added to the test step.

    6. If relevant, customize automatic scrolling and OCR settings for this step. For details, see Configure settings for a specific test step.

  4. You can also type directly into the step box, using the syntax rules described in Test step syntax.

    • As you type, if AI Codeless Testing detects an error or incomplete syntax, it displays a red symbol in the step, underlines incorrect text, and shows an error message in the EDIT STEP tab.

    • As you type, if you enter an object class that cannot be recognized by AI, hover over the object and click the Identify pop-up to enter the spy mode.

    If you type your step directly, you may want to configure additional step details in the EDIT STEP tab, such as Position, Partial Text, and Verify step options such as timeout and Stop run upon failure.

  5. To omit a step temporarily from your test, select the Disable this step check box. You can re-enable it any time. For details, see Manage your test.

Back to top

Manage your test

This section explains how to edit, move, duplicate, and otherwise manage the steps in your test.

To manage regular steps

To... Do...
Edit a test step

Edit a test step using the syntax rules described in Test step syntax.

As you type, AI Codeless Testing indicates whether your syntax or object is valid. If it detects incomplete syntax, it displays a red symbol and underlines incorrect text.

Reorder a test step

Hover over the vertical drag bar in the left margin, and drag the step to the desired location in the step list.

Remove a test step

Right-click the step and select DELETE.

The last remaining step cannot be deleted, but you can manually remove its content.

Disable a test step temporarily

Do one of the following:

  • Right-click the step, and select DISABLE.
  • Select the step in the Editor, and then select Disable this step in the EDIT STEP tab.

To enable a disabled step, right-click the step, and select ENABLE or clear the Disable this step option.

Duplicate a test step

Do one of the following:

  • Right-click the step and select DUPLICATE. A same step is added in the row below the step.
  • Press CTRL, and drag the step to the location you want. A same step is added to the row you want.
Copy and paste one or multiple test steps or step text
  • To copy and paste one or multiple test steps, select these steps and press CTRL+C and V to paste them to empty rows. The rows will have the same metadata.

    If you paste them to existing steps, new steps with same metdadata are created in the next rows.

    You can also paste them from AI Codeless Testing to any other editors as plain text.

  • To copy and paste a text in a test step, select the text, and press CTRL+C and V.
  • You can copy and paste a plain text step or multiple plain text steps from other sources to AI Codeless Testing.

Note: Once you successfully copied a step in AI Codeless Testing, the step is automatically copied to the clipboard as plain text.

Disable, duplicate, or remove multiple test steps

Press CTRL, select these steps, right-click them, and select DISABLE ALL, DUPLICATE ALL, or DELETE ALL.

Note:  

  • You can right-click disabled steps and select ENABLE ALL to enable them again.
  • You cannot delete all steps. An empty step still remains in the left step editor.

To manage conditions

To... Do...
Remove a condition block

Do one of the following:

  • Right-click the If step and select DELETE BLOCK.
  • To remove the Else parts from an If/Else block, right-click the Else step and select DELETE.

Disable a condition block temporarily

Do one of the following:

  • Right-click the If step and select DISABLE.

    If you right-click on the Else step and select DISABLE, only the Else parts are disabled.

    To enable the disabled block, right-click the block, and select ENABLE.

  • Select the If or Else step in the Editor, and then select Disable condition or Disable else block in the EDIT STEP tab.

    To enable the disabled block, clear the Disable condition or Disable else block option.

Duplicate a condition block

Right-click the If step, and then select DUPLICATE BLOCK. The whole If or If/Else block (including Else parts) is duplicated.

Note: The duplicate function is not supported for Else parts.

Exit a condition block

Select the last step of the condition block and press Enter twice to exit it.

Manage test steps inside a condition block

See To manage regular steps to manage test steps inside a condition block.

If you right-click the If step and select DELETE, the If step is deleted and the rest part in the If or If/Else block becomes regular test steps without indentation.

Note: An Else step becomes invalid if it exists independently.

Manage test steps inside different condition blocks

See To manage regular steps to manage test steps inside different condition blocks.

If you duplicate multiple steps inside different condition blocks, all selected steps are copied to rows outside of the blocks in original execution order.

Back to top

See also: