Tosca Level 1 Certification-with 100% verified solutions- 2023-2024
Intro
Goal: Create and Execute Automated Test cases. SUT: System Under
... [Show More] Test
Lesson 1
Creating modules (Books, Computers, Accessories) and uniquely identify them via the UL parent tab.
Lesson 2
Creating a Test Case (Precondition, order product, start checkout, checkout process, verification of prices, confirmation, verification of success, postcondition)
Lesson 3a
Adding Modules to Test Cases
Ctrl + T = Add a module to a test step
Lesson 3b
Created 3b test case folder. Moved more modules into the test case.
Lesson 4a and 4b
Steer the Test Case. Values need added (i.e. Credit card numbers)
{RND[10]} = Random 10 digit char
{RND[100][999]} = Random 3 digit # between 100 and 999 Dynamic Expressions Syntax: {Command[Parameter]}
F9: hides unused test steps
Lesson 5
Date Formats Month and Year
{Expression[BaseDate][Offset][Format]}
Lesson 6a Buffer
Lesson 6b Verify
Lesson 6C Verify Prices
Lesson 7a and 7b
Reusable Test Step Blocks are contained within a Test Step Library. Reusable Test Step Block – Test Step that is reusable
Lesson 8a
Wait On Action Mode - Delays the execution of the next Test Step value by waiting for a specific property or value; the wait duration is dynamic. Maximum duration of Wait On can be changed here: Settings>> TBox >> Synchronization >> Synchronization Timeout during Wait On
Module Merge - Allows you to combine 2 Modules
Lesson 8a Waiton How to use WaitOn
1. Enter a Property (i.e. Visible or InnerText) as the Value of a TestStep attribute.
2. Enter the value
3. ActionMode set to 'WaitOn'
Lesson 8b
Created another Testcase.
Modules => TestSteps
Lesson 8C
ActionMode Wait On (for discount to appear, then proceed)
Lesson 9
TestCase Configuration Parameter
Call parameter using {CP[]}
Lesson 10
Business Parameter: A means of allowing multiple users to use the same Reusable Test Step Blocks, with different parameters. Makes the code much cleaner.
F11 show/hide business parameters
Lesson 11 Dynamic Buffer:
{XB[]} allows the storing of dynamic/changing values to be identified later.
On the "Buffer Order Number" Test Case, a dynamic buffer was created via: InnerText == Order number: {XB[OrderNumber]} ActionMode = Verify
With {XB[]}, the module div outer text property is Order Number: {B[OrderNumber]}*, this allows the TestCase, "Previous Orders" to find the exact order.
Lesson 12
Calculate total cost of all orders:
Explicit Name: A configuration parameter added to a Module which allows a change in the TestStepValue name (i.e. Table drop down values come from ExplicitNames)
Module>Element>Right Click: Add Config Param. ExplicitName == True
Index: Numbers object that have the same properties, or are not uniquely identifiable, in the order they appear on the page, using #2, #3, etc.
ResultCount, RowCount, ColumnCount: Sum properties.
TBox Set Buffer: Module that allows you to set a buffer manually
Repetition: TCP set at the TestStep level, telling Tosca to repeat the steps within the folder.
How to while loop:
1. Set variables = 0.
2. Use ResultCount property and set buffer to store # of repetitions of element.
3. Set Module's ExplicitName == True to modify TestCase element
4. Set TestCase element to #{Repetition}
5. Use this repetition to store a value and add this value per iteration
Lesson 12: ResultCount
Property of a Test Step that counts the number it appears on the page. (i.e. # of Div containers)
Lesson 13
Requirements: [Show Less]