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: There might be instances where you want to pause for a certain element/event to occur before taking the next step.
- Static pause : Sometimes you want to wait a few seconds between the steps.
- Wait till Java Script returns true : Unlike static waits, this will retry/wait until the script returns a true value (or) until the timeout(120sec) is reached
Take Screenshot: Takes 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
Clear: To clear the content of a text field, you can use this step-type
Password: Used when a text field has to be masked, like password control etc..,
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
4. Conditional Execution
Sometimes you need to run some steps based on a condition. For example, you may want to fill a form only when the form is shown.
Add a condition to a step
o If condition passes- step is executed o If condition does not pass- the execution skips the step o If condition throws error- the execution fails at that step