Automation Tips and Tricks Exercise Workbook
Automation Tips and Tricks Exercise Workbook
1. Assignment Prerequisites
• Access to Tosca Commander version 13.0 or above with valid Tosca DI license
• Automation Specialist Level 1 and 2
• Login access to http://demowebshop.tricentis.com/
2. Disclaimer
Information in this document is subject to change without notice. No part of this document
may be reproduced or transmitted in any form or by any means, electronic or mechanical,
for any purpose without the express written permission of Tricentis GmbH.
© 2021 by Tricentis GmbH
Objective Implement the hands-on use cases to learn various tips and tricks of Tosca
automation.
To do - Test Table:
Steps
Difference between # and $:
1. Login to Demo Webshop Application -
http://demowebshop.tricentis.com/
2. Perform the following steps manually
3. Navigate to the Accessories page
COMPUTERS→Accessories
4. Add all the listed products to the shopping cart except TCP Coaching
Day product
5. Navigate to Digital Download Page
6. Add products titled Music 2 to the shopping cart
7. Navigate to Shopping cart Page
8. Ensure that your Shopping cart table has all the products as shown in
the image below
Baseline comparison:
1. Create a new test case “Date Manipulation” and add a new test step using
the standard module, “Tbox set buffer”
2. Create a buffer SourceDate and in the value section add 03/21/2021
3. Create a new buffer in the same test step with buffer name TargetDate
and value {DATE[{B[SourceDate]}][+1d+1M+1y][dd-MM-yyyy]}
4. Create a new Test Configuration Parameter on this test case –
ToscaDateFormat and keep its value MM/dd/yyyy
1. Open
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_te
st
2. Scan the Click Me button and save the module as Click Me button.
3. Navigate to the test case folder and create a new test case named Click
operations
4. Drag and drop the scanned “Click me button” module on this test case
thrice
5. In the test step value enter below values
a. {MOUSE[RIGHTCLICK][HorizontalFirst][10%][10%]}
b. {LONGCLICK}
c. {MOUSEOVER}
Data manipulation:
1. Open - https://obstaclecourse.tricentis.com/Obstacles/45618
2. Scan the Click me to reveal button and the three text boxes
3. Update the Cardinality of Click me to reveal! To 0-N
4. Drag and drop the module in a test case and enter the test step values as
below:
Click me to reveal! – {Click}
Click me to reveal! – {REGEX["^.*?(?<firstNo>[0-
9]+).*?(?<secondNo>[0-9]+).*?(?<thirdNo>[0-9]+).*?$"]} | Action
mode - Verify