Edit Test Steps
CloudQA test case editing provides you with the ability to manage all the steps in your test case, Learn how to edit an existing test - Add new steps, delete steps and modify steps.
1. Add Step
- Go to Edit steps of a test cases and click Add on any step. A new step will get added just below.
When a step involves interacting with an element on the page, for instance clicking a button, CloudQA interacts with that element using a CSS selector. The selector for the target element is entered into the "CSS path" input at the top of the step
- CloudQA has special feature in extension, Pick CSS to capture the CSS of targeted element
2. Usage of Actions
Click and Hover: When a step involves interacting with an element on the page, for instance click a button use step Click in the dropdown or to hover over an element use Hover
Type: When a step involves entering value into text field you can use Type
Assert: Click here to see how to add different kinds of assertions in a test case
Keypress: A "Keypress" step will allow you to choose from keystrokes like "Enter" and "escape".
Pause: Pause is used to add wait after/before the step
Take Screenshot: akes a screenshot on demand when this step is used. This is useful when you switch off the default screenshot at every step.
RightClick: Few applications might have custom right click menu, Test recorder doesn't record right click, but the menu options are recorded. In this case you can use RightClick
DoubleClick: CloudQA supports DoubleClick operations in the browser. This is done using the DoubleClick action in the test editor.
SwitchToWindow: Used to switch to a window in a execution session by index of the window
CloseWindow: Used to close an active window
ImportStepsFrom: Every Test case created can be reused using import steps
3. How to use Optional Step
Each step can be made optional, if you choose. This means that the test will continue execution, even if the step fails.
This can be useful in situations when dealing with behavior that only occurs a portion of time, like a modal dialog popping up.
Click to toggle ON/OFF to make a step optional