Tosca’s Test Configuration Parameters (TCPs)
Test Configuration Parameters (TCPs) in Tricentis Tosca are a powerful feature that allows testers to control and customize test execution without altering the actual test cases. TCPs help in maintaining flexibility and reusability in test automation projects.
✅ What are Test Configuration Parameters (TCPs)?
TCPs are user-defined key-value pairs that can be assigned at various levels of the Tosca workspace, such as:
- TestCase level
- TestCase Folder level
- TestSet level
- ExecutionList level
- Component level
These parameters act as global or local configuration variables, influencing the way tests behave or are executed.
🔧 Why Use TCPs?
Reusable Test Cases: Same test case can behave differently based on parameter values.
Centralized Management: Change test behavior from one place without editing each test step.
Data-Driven Testing: Easily switch test environments, browsers, languages, or users.
Scalability: Ideal for large test suites with multiple variations.
🧰 Examples of Common TCP Use Cases
Parameter Name Purpose Example Value
Browser Set browser for test execution Chrome, Firefox
Environment Define test environment QA, UAT, PROD
LoginUser Set test user credentials admin01
Timeout Control wait or sync duration 10 seconds
🗂️ Where to Define TCPs?
Right-click on a TestCase, Folder, or ExecutionList → Select Properties.
Find the Test Configuration Parameters section.
Click Add → Enter the name and value.
The most specific TCP overrides the others (e.g., a TestCase-level TCP overrides a folder-level one).
🧪 Accessing TCPs in Test Cases
Use TBox modules like TBox Set Buffer, or
Reference the TCP using #{TCPName} in test steps or expressions.
Example:
Login with username: #{LoginUser}
📝 Best Practices
Keep TCP names consistent and meaningful.
Use folder-level TCPs to control groups of related tests.
Document commonly used TCPs for your team.
Avoid hardcoding values; rely on TCPs for flexibility.
🎯 Conclusion
Tosca’s Test Configuration Parameters offer dynamic control over test execution, making your test cases more reusable, maintainable, and scalable. By strategically using TCPs, you can manage complex testing needs efficiently without duplicating or modifying your test assets.
Learn Tosca Training in Hyderabad
Read More:
Using Tosca ScratchBook for Test Execution
Tosca TestCase Versioning and Reuse
Automating SAP Applications with Tosca
How Tosca Handles TestData Parameterization
Visit our IHub Talent Training Institute
Comments
Post a Comment