Tosca Quality Thouht Syllabus
Tosca Quality Thouht Syllabus
Tosca Features:
Functional Test Automation Tool (Image comparision, Extract text image)
100% Scriptless (If you want there is facility use coding part as well)
TBox Start Program – path (Arguments)
175+ application we can automate, BI,Dashboards
We can integrate with Test Management (ALM, qTest, RQM, JIRA) – We run from TMT
We Test coverage (%?)
Tosca Components:
Testcases/Modules/Execution(Scratch Book)
Drag and Drop method in tosca
Module: Technical information Application
14/12/2024:
Registration and Set up for Tosca:
https://support-hub.tricentis.com/ and Register
SQLite – Training purpose and look and feel of Multi User Environment
Real Time: Oracle, Ms SQl Server, DB2
Sqlite : Training or learning
Single User WS: No DB. Tasks in saved in local machine and you can see your tasks in
Commander
Repository Name: None
Multi/Shared User WS: Multiple people can login with Same repository and they share the tasks in
between testcase.
CheckinAll → Save our test case development in Repo
→ Push code into Repo
→ Entire Project COnvert into Read Mode
UpdateAll
→ we are able recent updates in workspace(Project)
→ Entire Project COnvert into Read Mode
Checkout
Particular folder
→ apply each section and select the folder and do the checkout.
CHeckout Tree:
→ Along with Parent and Sub Folders are blocked for Usage .
18/12/2024:
Tosca Commander Tabs Section for Sample Process flow:
Modules
Test case
Scratch Book
Execution
Modules:
Technical information of the Application
Used for creating TestCases
Module contains technical information of the SUT
Modules collect information via XScan XScan Scans various applications, interfaces, visual
and non-visualtest objects
To steer an object, it must be uniquely identifiable Use technical properties to identify e.g
User ID, Name, InnerText, OuterText.
Acting as repository for the AUT in Tosca commander.
Folder Structure:
Module Hierarchy:
Module → Rescan
Module->Scan->Application:
Technical Properties:
Tag, InnerText, Class, InnerHTML, OuterText, OuterHTML, Id(Optionally)
Representation Properties:
Default Name, AssociatedLabel, Visible
19/12/2024:
Object Identification Controls:
These are going to used when object is not identified uniquely(After changing properties)
1. Identify by Properties
This is the Default method to identify the objects uniquely if still not identify uniquely
then we will go with Anchor
2. Identify by Parent
Parent and Child to be identified uniquely.
3. Identify by Anchor
We are giving another object associating to identify current object uniquely.
We are landmark to current object.
Not Uniquely Identified: After Anchor (Look for another Anchor Control)
4. Identify by Image
5. Identify by Index
Rescan :
Already scanned module
Module → Rescan → select control
1. Adding new control to the existing module
Unmapped:
→ existing Module Attributes is not there in rescanned page then those module
attributes goes to the unmapped section
→ existing Module Attributes are there in the rescanned page then those module
attributes are in the unmapped section, that Module attributes are not unique.
23/12/2024:
Standard Modules:
OpenURL Module = Launch application (Edge/Chrome/Mozilla)
Default Browser = Edge
Open URL Module:
TCP : Test Configuration Parameters
TCP will work as Global Variables and we will define these TCP’s in TestCase Root Folder,
Test Case Sub Root Folder, Testcase level
TCP is having Predefined Parameters and we create our own Parameters as well
1. Predefined TCP’s
a. Browser
b. Synchronization
c. TargetDateFormat
d. TargetTimeFormat
2. User Defined TCP’s
a. UserID
b. Password
c. URL’s
Syntax : {CP[ParameterName]}
{CP[Browser]}
{CP[Demo_UserID]}
{CP[Demo_Password]}
24/12/2024:
TBox Start Program:
Incognito Mode of Chrome:
Path: C:\Program Files\Google\Chrome\Application\chrome.exe
Argument : -Incognito
For Edge:
-InPrivate
For Notepad++:
Path: C:\Program Files\Notepad++\notepad++.exe
TBox Send Keys:
Pass the keyboard commands to the application.
→ input
→ Short keys
Sendkeys Function:
{SENDKEYS[Key]}
Ctrl → ^
Alt → %
Shift → +
Enter → {ENTER} (Double quotes)
{SENDKEYS["{ENTER}"]}
Tab → {TAB}
{SENDKEYS["{TAB}"]}
Backspace → {backspace}
F1,... F12 → {f1}, {f2}.....{F12}
{SENDKEYS["{F4}"]}
25/12/2024:
2. Partial Buffer
a. Partially store content from the Sentence. Start, End and Last
Sentence: Order Created1234
Start = Starting Index 14
End= Ending Index 17
Or
Last = 4
Start and End Combination:
Last:
3. Dynamic Buffer
a. We store the values in Runtime
Order Created 1234
{XB[BufferName]} – Store Value {XB[OrdNum]} - Action Mode as Verify
{B[BufferName]} – To Use {B[OrdNum]}
Synchronization:
Mapping application speed with automation tool (Tosca) speed.
Default synchronization timing : 10000 ms (Dynamic)
Project->Setting->TBox->Synchronization
Default Timeout = 10K ms
Default Timeout for WaitOn =20K ms
1. Static Wait
TBox Wait, Assgin some seconds manually. Irrespective of application functionality it waits
for the time limit which we defined.
Forcefully we are stopping tosca execution at a certain time.
Action Mode WaitOn – visible immediately perform action on the object but if it is
not found 50K wait if still not identify then it will fail. 40K if object found then it will
continue execution.
26/12/2024:
Cardinality:
If you want define the objects multiple times in the testcase we are going to use it
Cardinality.
Default value is 0-1
We can change it to 0-2 or N then object will be visible multiple times in the
testcase
ExplicitName:
It is one of the Configuration Parameter. If there multiple objects are there with same
properties then you want to click on the 3 object then we can declare the Explicit Name.
rd
ExplicitName = True
Or
DATE Operations:
dd.MM.yyyy, dd/MM/yyyy…………
{DATE}
{Date[BaseDate][Offset][Format]}
[] -> Today’s Date
[Offset]-> Validation + or – from date
Day->d
Month->M
Years->y
[Foramt]-> if this is blant then default format is dd.MM.yyyy or else you can define any
format MM/dd/yyyy or dd/MM/yyyy….etc.
27/12/2024:
Requirement : we have to add 1 day to the current date.
Syntax: {Date[][+1d][]}
Different Types of Date Formats:
—-------------------------------------------
{DATE[][][dddd]} ⇒ Friday
{DATE[][][ddddd]} ⇒ Friday
{DATE[][][M]} ⇒ 27 December
{DATE[][][MM]} ⇒ 12
{DATE[][][MMM]} ⇒ Dec
{DATE[][][MMMM]} ⇒ December
{DATE[][][MMMMM]} ⇒ December
Time:
—----
12 hrs, 24 hrs
—----------------------------------------
—-------------------
{DATETIME} ⇒ yyyyMMddHHmmss
⇒ 20240122210346'
TCP⇒ TargetDateAndTimeFormat ⇒
Day
===
{DAY} ⇒ 22
{ADAY} ⇒ Mon
{LDAY} ⇒ Monday
Month
=====
{MONTH} ⇒1
{AMONTH} ⇒ Jan
{LMONTH} ⇒ January
{MONTHFIRST} ⇒ 01.01.2024
{MONTHLAST} ⇒ 31.01.2024
Year:
====
{YEAR} ⇒ 24
Radom Numbers:
Generate Random numbers, this will generate only numeric values.
{RANDOMTEXT[No.of digits]}
{RandomText[4]}
Min = 1
Max = 1024
Maximum character accepting for this method is 1024 characters
Regular Expression:
Verify the target string is having a specific format.
{REGEX["Expressions"]}
Bike Number:
TS01AB9876
[A-Z] – Capital Letters and [a-z] – Small letters and [0-9] - digits
Example: {RANDOMREGEX["[A-Z]{2}[0-9]{2}[A-Z]{2}[0-9]{4}"]}
Business Parameters:
—---------------------------
{PL[Parameter Name]}
30/12/2024:
RTB TCP TCD Buffers
Libraries Testcase F or sub TestSheets Local with testcase
BP – {PL[PN]} {CP[PN]} {XL[AN]} {B[BN]}
RTB to Testcase:
Once we done with RTB Development
Drag/Drop to particular RTB into Testcase
{PL[PN]}
Conditional and Looping Statements:
Conditional Statement:
Compare the two things then we are going to use it this IF Condition. IF statement is an acting
test step. It will work based on True or False.
Syntax:
IF
{
Condition (True or False)
Then – True
Statement
Else – False
Statement
}
Test steps:
True Output:
False Output:
31/12/2024:
Looping Statements:
While Loop:
This is also acting like test steps
This Loop will continue until condition gets false
Maximum 30 (Default) -> Modify upto 100
Note: Only Condition will be verified first then Loop will be repeated.
Syntax:
While Statement
Condition (True or False)
Loop - True
Statement
If Condition False then Loop will be terminated.
Scenario:
Assign Some Value = 1
TBox Set Buffer
Start (BN) = 1(BV)
No.Iterations(BN) = 4(BV)
While Statement
Condition {B[Start]}>={B[No.Iterations]}
Loop - True
TBox Set Buffer
Increase Start +1
Assignment:
Select the Radio Buttons until it gets completed count.
DO Loop:
This is also acting like test steps
This Loop will continue until condition gets false
Maximum 30 (Default) -> Modify upto 100
Note: Loop will be executed first then Only Condition will be verified.
Syntax:
Do Statement
Loop - True
Statement
Condition (True or False)
Output:
Negative Scenario:
Output:
TCD for now, Only used to update the data from our end.
EmailID: xyz@gmail.com
Hierarchy:
TCD Folder
Test sheet
Test sheet Level Instances (No. of Testcases)
Attributes -> FieldName(UserName)
Attribute Level Instances Field Values(abc@gmail.com)
TCD Folder Structure:
Business Relevant - Yes/No/Result
For All Attribute Level folder are holding default value is Yes
=====Business Relevant - No
=====BR = Yes
======BR = Result
Position Property:
EmailID = 100 Characters
1. – 100 = Boudary Values
2 - 99 = Inner Values
Pairwise:
It do the pair of each attr level instances another attribute level instances
some time may you will get same count test sheet level instances for
AllCombinations and pairwise
A,b,c ⇒ 1,2
(a,1)(a,2) (b,1)(b,2) (c,1)(c,2)
Linear Expansion:
Create at least one straight through instance for each attribute.
It always take the combinations straight through with valid and Invalid
ERROR: The linear expansion can not be performed
A StraightThrough-Instance can not be generated because the following Business relevant
StructureElement(s) contain(s) no StraightThrough-Instances.
Combinations:
(a,3) → Straight through
(b,3) → Valid, Straight through
(c,3) → InValid, Straight through
(a,1) → Straight through, Invalid
(a,2) → Straight through, Valid
WorkFlow:
1. create Test Data (Manual And Automatic)
2. TCD
1. Manual
2. Automatic
Attributes
Instances
2. Test DATA
3. verify each attr is mapped with test step value col level as
Syntax {XL[AttrName]}.
-> If no Errors
Right click on template ⇒ click on 3 dots down arrow ⇒ Create Template instances.
TCD: Class:
Similar to the RTB. Keep the reusable attr and attr level instances into class.
There is no limit
1. Right click on TCD folder → Click on Class
2. Drag/drop Module into TCD Folder → Class