Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Wednesday 21 August 2024

What is the difference between CALC & MATH functions in Tosca?

CALC

The Calc function in Tosca is designed for basic arithmetic operations. It’s a straightforward tool that enables you to perform simple mathematical calculations directly within your test steps or templates. This function is primarily used when the operations required are basic and don't involve complex mathematical logic.


Features:
Simple Arithmetic Operations: Calc supports addition, subtraction, multiplication, and division.
Ease of Use: The syntax for Calc is intuitive and similar to how you would write a basic math expression on paper.
Integration with Variables: You can use Calc to perform operations on Tosca buffers, test data values, constants, or a combination of these.

Example:
Suppose you have a scenario where you need to calculate the total price of items in a shopping cart. The price of each item and the quantity are stored in buffers. You can use Calc as follows:

TotalPrice = {B[Item1_Price]} * {B[Item1_Quantity]} + {B[Item2_Price]} * {B[Item2_Quantity]}


MATH

The Math function in Tosca is a more advanced and versatile tool compared to Calc. It allows you to perform a wide range of mathematical operations beyond simple arithmetic, including trigonometry, logarithms, exponential functions, and more. Math is useful when your test case requires complex calculations that involve multiple steps or sophisticated mathematical functions.

Features:
Advanced Mathematical Operations: Includes trigonometric functions, powers, logarithms, square roots, and more.
Flexible and Powerful: Allows for more intricate calculations and can handle complex mathematical expressions that go beyond basic arithmetic.
Support for Multiple Functions: You can chain multiple mathematical operations within a single expression.

Example:
Imagine you are testing a scientific calculator application and need to verify that it correctly computes the square root of a number, then raises that result to the power of 3:

Result = Math.Pow(Math.Sqrt({B[Value]}), 3)

Monday 19 August 2024

Tosca Query Language

TQL is a powerful tool for performing complex searches, It uses of expressions to filter and retrieve specific data


Why use TQL?
  1. Efficiently locate specific test cases or data sets
  2. Keep your workspace organized by saving queries in virtual folders
  3. Generate comprehensive reports from virtual folders

How to navigate to the TQL search box:

Press "CTRL + F" twice or
Right-click on the folder and click on the search symbol

Here are a few helpful TQL queries to get you started:

1) Find test cases with a specific name:

=>SUBPARTS:TestCase[Name == "Login Test"]

2) Find test cases containing a specific keyword in their description:

=>SUBPARTS:TestCase[Name =? "keyword"]

3) Find test cases using the created date:

=>SUBPARTS:TestCase[CreatedAt =? "1-Aug-24"]

4) Find test cases with a test configuration parameter. Searching for test cases using Chrome browser:

=>SUBPARTS:TestCase[EVALCP("Browser") == "Chrome"]

5) Find all the failed test cases in the execution list:

=>SUBPARTS:ExecutionEntry[ActualResult == "Failed"]


Virtual Folders:

- You can store your frequently used query results in virtual folders.
- This makes it easier to review and manage your queries.



What are core Components of Tricentis Tosca ?

 1. Tosca Commander:   The primary user interface for Tosca where users design, manage, and execute their tests.

2. Tosca Repository:  The central storage system for all test-related artifacts

3. Test Data Service (TDS):  A service that manages test data independently of test cases.

4. Tosca Execution (Agents):  The engine that executes the test cases. Components - Agents+ExecutionLists

5. Tosca BI/Data Integrity:  Ensures data integrity and consistency across different systems and databases.

6. Tosca Continuous Integration:  Integrates Tosca with CI/CD tools to automate the testing process in a DevOps pipeline.

7. Tosca Orchestrated Service (OSV):  Simulates dependent systems and services that are not readily available during testing.

8. Tosca Analytics: A web-based reporting and analytics tool.