0% found this document useful (0 votes)
8 views1 page

Exercise 10

Uploaded by

Sunset Beach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Exercise 10

Uploaded by

Sunset Beach
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

testcase Section

Exercise 10 – Set ActionMode WaitOn


Objective
By the end of this exercise, you will be able to create a dynamic wait on a TestStepValue using the ActionMode WaitOn.

Why is this important?


WaitOn instructs Tosca to wait for an element or action to occur before moving on to the next TestStep. This benefits the
automation as it can stop possible TestCase failures in situations where the SUT does not react immediately e.g. waiting for a
credit card to authorize.

Instructions

Duplicate TestCaseFolder "Exercise 09 - Predefined Test Configuration Parameter" and name it "Exercise 10 -
1.
ActionMode WaitOn".

2. In the TestCase, navigate to the TestStep Postcondition >> Wait Until Logged Out.

Set the ActionMode WaitOn for the TestStepValue Log in, instructing Tosca to wait for the button to appear
before executing the next TestStep.
3.
*Remember: use the blue downward arrow to select: Visible == True

4. Set the Data Type to String.

5. Save your work.

Cheat Sheet

Term Description Example


ActionMode An ActionMode defines how the value
in the Value field should be applied for
TestStepValues in order to steer the control.
ActionMode: Verify To verify a control means to check whether For example, you can design your test
the control is as expected. to verify whether the label on a button is
"Confirm", or whether a table cell displays
the expected dollar amount.
ActionMode: Select Select is a passive ActionMode used for For example, you can user this ActionMode
navigating tables or dropdown menus, but to select which cells in a table should be
without engaging with the application. steered.
ActionMode: Input Activates a control, or inputs values. For example, you can use this ActionMode
to click a link, or button, or for inputting text
into a text field.
ActionMode: Constraint The ActionMode Constraint can used on a
specific list item to identify the respective list
item. A combination of selected values can be
used to identify the list item.
ActionMode: WaitOn With the ActionMode WaitOn, the For example, making sure that the TestCase
system waits to execute the appropriate waits for a page to fully load before
TestStepValue until the specified condition attempting to complete the next TestStep.
of the control to be steered is fulfilled. The
system waits until the control has the value
specified in the Value column or the defined
property.

24

You might also like