Tosca Modules: What They Are and How to Use Them
✅ Tosca Modules: What They Are and How to Use Them
๐น What are Tosca Modules?
In Tosca (by Tricentis), Modules are the building blocks of automation. A module represents a UI element (like a button, input field, or table) or a non-UI control (like a database or API call) that you want to interact with in your test cases.
Modules store technical information about application controls, such as:
Control name (e.g., “Username field”)
Type (e.g., text box, button)
Properties (e.g., ID, name, class, XPath)
๐น Types of Modules in Tosca
Type Description
Standard Modules Prebuilt modules provided by Tosca (e.g., file operations, Excel operations)
Custom Modules Created by scanning the Application Under Test (AUT)
XModules Technical representation of scanned UI elements
Business Modules Abstracted reusable logic, often created by combining multiple modules
๐น How to Create Tosca Modules
✅ 1. Scan the Application
Open Tosca’s Tosca XScan tool.
Choose the window or browser screen to scan.
Hover over and select UI elements (e.g., username input, login button).
Save the scanned elements — these become XModules.
✅ 2. Use Standard Modules
Tosca provides built-in modules for:
File operations
Excel reading/writing
Web service/API testing
DB queries
These are found in the Standard Module folder.
๐น How to Use Modules in Test Cases
Open your TestCase section.
Drag a module from the Modules folder into a TestStep.
Fill in the Input values or Verification conditions.
For example:
Field Action Value
Username Input admin
Password Input password123
Login Btn Click
๐น Best Practices for Using Modules
Use naming conventions for easy identification.
Keep technical modules (XModules) separate from business modules.
Re-use modules across multiple test cases.
Update modules regularly if the application UI changes.
✅ Summary
Feature Description
Modules Represent UI or backend components
Created by Scanning applications or using Standard Modules
Used in TestSteps for execution
Benefits Reusability, maintainability, abstraction of controls
Learn Tosca Training in Hyderabad
Read More
How to Create Your First Test Case in Tosca
Introduction to Tosca Commander and Its UI
Visit Our IHUB Talent Training Institute in Hyderabad
Comments
Post a Comment