Professional Documents
Culture Documents
Tosca Definitions
Tosca Definitions
➢ Tosca is a software testing tool that is used to automate end-to-end testing of the software
applications.
➢ Tosca can Automate any kind of applications, like, Web Applications, Desktop Applications, SAP
Applications, API Applications.
Modules in Tosca?
➢ Modules are used to store the controls information in the form of list of Properties.
➢ Once we click on Run, Tosca reads the test step and immediately it will go to Modules section
and tries to find the relevant module for that test step.
➢ If relevant module is available in Modules section, then Tosca will execute that step successfully
otherwise it will through up an error and stops the execution.
➢ Standard Modules
Standard Modules:
User define modules are the modules which will be created by Automation test engineers according to
their need.
What are different Types of Control Identifications in Tosca?
Identify by properties:
If at all tosca is unable to identify any control uniquely then we can use Identify by properties and select
the required properties to identify the control uniquely so that Tosca can identify the control and
continues the execution.
Identify by Index:
If at all tosca is unable to identify any control uniquely then we can use Identify by Index and select the
Index of that Particular control to Identify the Control uniquely.
Identify by anchor:
If at all tosca is unable to identify any control uniquely then we can use Identify by Anchor and Drag and
drop the Parent control information to Anchor drop box to identify the Control uniquely.
Identify by image:
If at all tosca is unable to identify any control uniquely then by using Identify by Image we can select
particular region in the application to identify the Control uniquely.
➢ Test configuration parameters can be used to pass specific values to various Testcases.
➢ Test Configuration Parameters are nothing but variables, which we can pass to different test
cases.
➢ Cross-browser testing is a process of testing web applications across multiple browsers, and it
ensures to deliver a consistent user experience in all the browsers.
What is Rescan?
➢ By using Rescan one can add the new attributes to the existing User defined Modules.
➢ By using Rescan one can update the existing attributes of any User defined Module.
Verify Action Mode is used to perform the verification on any control in 4 ways.
➢ Exists
➢ Enabled
➢ Visible
➢ Inner text
➢ During the Execution if at all Tosca is unable to Identify the control due to Regular changes in its
properties value then the best solution to overcome this situation is Replacing the
corresponding constant value with a Suitable Regular expression (*).
Buffer refers to values that can be saved/stored temporarily in Tosca Commander and can be used
these buffer values wherever required.
➢ Static Buffer
➢ Dynamic Buffer
Static Buffer:
➢ Static Buffer is a user defined buffer and stores it in Tosca commander and can use them
wherever required.
➢ Dynamic Buffer can read the values of controls and stores it in Tosca commander and can use
them wherever required.
➢ The ActionMode Select allows you to select specified nodes. The required node must have a
unique name.
➢ The Action Mode Constraint limits the search until it renders a single element.
➢ You can use the Action Mode Constraint if you know which
➢ Set the Action Mode Constraint on specific list item elements to identify the respective list item.
In this case, the combination of selected values should uniquely identify the list item. elements
uniquely identify a list item.
➢ Synchronization is a process of making the tool to wait until the application is loaded
successfully.
During the execution Tosca may face some problematic situations wherein it continues the execution by
using below features.
➢ On Verification Failure
➢ On Dialog Failure
➢ During the execution Tosca may face some problematic situations wherein it needs to Recover
by itself by using Recovery scenarios.
➢ A Recovery Scenario is a collection of Test Steps that Tosca executes if particular test fail.
➢ Even If Recovery Scenarios also doesn’t work, then Tosca will move to Clean up Scenarios and
cleans the scenario.
If Condition in Tosca
IF condition is a decision-making statement that guides the tool to make decisions based on specified
condition.
➢ If the condition is fulfilled, Tosca moves to THEN statement and executes the Test steps under
Then statement.
➢ If the condition is not fulfilled, Tosca moves to Else Statement and executes the Test steps under
Else statement.
While Loop:
While loop tests the condition first and if the while condition is satisfied then execute the statements
under loop.
Do While loop:
Do-while loop executes the statements under loop first and then tests the condition.
To capture the Screenshot Tosca has provided a Standard Module- TBox Take Screenshot.
➢ Environment – (Desktop/Mobile)
To validate the execution reports, first we need to move the test cases to Execution section and then
Run the test cases from Execution Section.
Once the execution is done, one need to right click on Execution lists and click on Print report and
select the report Execution Entries with detailed logs.
Dynamic Expressions in Tosca
➢ One can use various dynamic expressions, and which can be combined according to a specific
syntax.
➢ TIME, DATE, DATETIME, ADAY, AMONTH, MONTHFIRST, MONTHLAST JUMPTO, CALC, MATH,
MOUSEOVER, RND, RNDDECIMAL, RANDOMTEXT.
➢ Math performs Calculations with Operators and Mathematical functions. Ex: Pow, Min, Max,
Sqrt, Round.
➢ Usually in any web application we will be having some set of actions which needs to be executed
in each and every test scenario, so in this case instead of creating the same test steps again and
again in each Test scenario we will create the Reusable Test step blocks under Library, and We
can call those reusable blocks wherever it is required.
➢ Libraries can’t be created under any Test cases, Libraries can be used only under folders.
Business Parameter
➢ Business Parameter are reusable parameters which can be created only under the reusable test
step blocks, under reusable test step blocks we can create Business parameter container, Under
Business Parameter under we need to create Business Parameters and we can link the test step
values with the Business parameters and we can call these Business parameters wherever
required and we can pass the values directly into testcases.
➢ Performing testing on the same functionality again and again with different sets of data is
known as Data Driven Testing.
Test sheet creation:
➢ If Business Relevance is selected as Yes, then Tosca generates the combinations automatically.
➢ If Business Relevance is selected as No (or) Result, then Tosca will not generate the
combinations automatically.
➢ Under the attributes one can create different Instances with following Characters. Valid,
Invalid, Straight Through.
Generate Instances:
➢ It will not Use duplicate data, It will use each instance only once while generating the
combinations.
➢ It will first take one pair and then generate the instances.
➢ In order to create the instances in Linear Expansion, every Instance should have at least one
straight through.
➢ In a multiuser workspace, several testers should be able to execute the same tests
simultaneously. They should also be able to execute these tests independently, to not overwrite
other testers' results. You can facilitate this by working with Test Mandates.
➢ Generally, Tosca won’t allow us to update test case attribute name in any test cases, In order to
do that we need to add one Technical ID parameter in associated module attribute i.e.,
ExplicitName = True, then Tosca allows you to update testcase attribute name.
Exploratory testing in Tosca?
➢ Exploratory testing is about learning the product, designing, and executing tests, and
interpreting the test results, all at the same time.
➢ We can use the standard module “Execute JavaScript” to perform browser back,
What is Cardinality?
➢ If we need any attribute more than one time in the test step, then we can specify the
Cardinality property value as “0-N” in the Module attribute.
➢ In the Module we need to add a Configuration parameter with the property name as
“ConstraintIndex” and with the value as tab number as below.
Ex: ConstraintIndex = 1 (For tab 1)