Navigate to edit steps of a page and find the Code View option. Now edit steps can also be viewed in YAML code format. O If condition throws error- the execution fails at that step O If condition does not pass- the execution skips the step You can specify your condition logic using JavaScript code. For example, you may want to fill a form only when the form is shown. Sometimes you need to run some steps based on a condition. This can be useful in situations when dealing with behavior that only occurs a portion of time, like a modal dialog popping up.Ĭlick to toggle ON/OFF to make a step optional This means that the test will continue execution, even if the step fails. If the same link text is present at multiple places in the page, then add text "~~ operator followed by index to the link text.Įxample: "Read more~~2" -> this will click second element in the page.Įach step can be made optional, if you choose.Enter the element text mentioned in your application.Password: Used when a text field has to be masked, like password control etc.,Ĭlick by text: This give user an option to click element by its text without using CSS path. ImportStepsFrom: Every Test case created can be reused using import stepsĬlear: To clear the content of a text field, you can use this step-type SwitchToWindow: Used to switch to a window in a execution session by index of the windowĬloseWindow: Used to close an active window.This is done using the DoubleClick action in the test editor. In this case you can use RightClickĭoubleClick: CloudQA supports DoubleClick operations in the browser. RightClick: Few applications might have custom right click menu, Test recorder doesn't record right click, but the menu options are recorded. This is useful when you switch off the default screenshot at every step. Take Screenshot: Takes a screenshot on demand when this step is used. Till element in not visible: Use "Till element not visible" to wait until an element disappears from the page.Till element is visible: CloudQA will wait till the element is visible(based on the CSS path given in the test case) on the page.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.Static pause : Sometimes you want to wait a few seconds between the steps.Pause: There might be instances where you want to pause for a certain element/event to occur before taking the next step. ![]() ![]() ![]() Keypress: A "Keypress" step will allow you to choose from keystrokes like "Enter" and "escape". You can also use this functionality, along with JavaScript Date functions to create and use custom date strings in your test case. Script: CloudQA gives you the ability to execute custom JavaScript within the test case. During recording these JavaScript alerts might not be captured, where CloudQA provides option to add an alert step, and gives two options to accept and deny the alert in the application. Type: When a step involves entering value into text field you can use TypeĪssert: Click here to see how to add different kinds of assertions in a test caseĪlert: CloudQA offers the users with a very efficient way to handle JavaScript alerts (Simple and Confirmation alerts). CloudQA has special feature in extension, Pick CSS to capture the CSS of targeted elementĬlick 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.The selector for the target element is entered into the "CSS path" input at the top of the step 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. This signifies the action to be performed such as click an element, make an assertion, add a custom script, accept or reject JavaScript alert and so on The dropdown menu contains the list of actions. Go to Edit steps of a test cases and click Add on any step.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.
0 Comments
Leave a Reply. |