Tosca Data-Driven Testing with Excel and TDS
Tosca Data-Driven Testing with Excel and TDS (Test Data Service)
Data-Driven Testing (DDT) in Tricentis Tosca allows testers to execute the same test case multiple times with different sets of input data. This helps increase test coverage and reduces duplication of test cases. You can perform DDT using sources like Excel files or Tosca Test Data Service (TDS).
π What is Data-Driven Testing in Tosca?
A testing approach where test logic is separated from test data.
The same test case is executed multiple times using different data rows.
Ideal for regression, form validation, and boundary value testing.
π Method 1: Data-Driven Testing with Excel
✅ Steps to Use Excel in Tosca
1. Prepare Your Excel File
Create an Excel sheet with columns as variable names and rows as data values.
Example:
Username Password
user1 pass1
user2 pass2
2. Import Excel as TestSheet
Go to Modules in Tosca.
Right-click → Scan Excel (or use Tosca Excel Engine).
Import the Excel file as a TestSheet module.
3. Create a Test Case Template
Right-click your test case → Convert to Template.
Use {=ExcelColumnName} to reference Excel values in the test steps.
4. Link Excel Data to Template
Create a TestCase → Right-click → Create TestCase from Template.
Select the Excel TestSheet as the data source.
5. Run the Tests
Each row in the Excel file will run as a separate iteration.
☁️ Method 2: Data-Driven Testing with Tosca TDS (Test Data Service)
TDS is Tosca's built-in test data management service for storing and managing dynamic test data centrally.
✅ Steps to Use TDS in Tosca
1. Enable TDS
Make sure TDS is installed and configured on your system.
2. Create TDS Data Sheet
Go to TCM → Test Data Management → Test Data Sheets.
Create a new sheet and define columns and data records.
3. Create a TestCase Template
Just like with Excel, use {=ColumnName} to map the test data variables.
4. Link TDS Sheet to Template
Create a TestCase from Template.
Choose the TDS data sheet as the data source.
5. Execute Tests
Each TDS row generates a separate test case instance.
π Excel vs TDS: Which Should You Use?
Feature Excel Tosca TDS
Ease of use Very easy, familiar format Centralized, scalable
Version control Manual Integrated
Scalability Limited Enterprise-grade
Team collaboration Manual sharing Central access via Tosca
Automation Requires Excel Engine Native integration
π§ Summary
Tosca supports DDT through both Excel and TDS.
Use Excel for simple, quick scenarios.
Use TDS for centralized, scalable, and maintainable test data management.
Templates and dynamic values allow for efficient reuse and scalability of tests.
Learn Tosca Training in Hyderabad
Read More
Tosca Steering Parameters: Use Cases and Tips
Working with Tosca Parameters (Buffer, Dynamic Expressions)
Tosca Templates and TestStep Design Patterns
Dynamic Test Cases with Tosca’s TestCase Design
Visit Our IHUB Talent Training Institute in Hyderabad
Comments
Post a Comment