Common Tosca Errors and How to Fix Them
๐ ️ Common Tosca Errors and How to Fix Them
Tosca by Tricentis is a powerful test automation tool, but like any enterprise software, it comes with its own set of common errors. Whether you’re new to Tosca or a seasoned tester, here’s a list of frequently encountered issues — and how to resolve them.
✅ 1. “Object not found” / “Control not identified”
๐ Cause:
Application UI has changed (e.g., new XPath, ID)
Dynamic controls (e.g., changing IDs)
Incomplete or incorrect XScan mapping
๐ง Fix:
Re-scan the application with Tosca XScan
Use Dynamic IDs or buffered properties
Apply “Anchor” or “Automation Anchor” techniques
Use TBox Identify by Properties instead of fixed XPath
✅ 2. “Execution failed: Module not found”
๐ Cause:
Missing or deleted module
Module path has changed
๐ง Fix:
Right-click the test step → Choose Repair Links
Re-scan and re-link the correct module
Ensure no module reference is broken in the workspace
✅ 3. “Buffer not found”
๐ Cause:
Trying to use a buffer that was never set
Misspelled buffer name or improper case
๐ง Fix:
Check spelling and casing of buffer name (buffers are case-sensitive)
Make sure the buffer is defined before it's used
Use Set Buffer or Write to Buffer module before using the value
✅ 4. “No test cases found” in Execution List
๐ Cause:
TestCases are not linked to an ExecutionList
ExecutionList has no valid test cases in scope
๐ง Fix:
Drag TestCases manually into the ExecutionList
Check filters or dynamic folders that may be excluding TestCases
✅ 5. “Verification failed” for a field value
๐ Cause:
Incorrect verification value
Unexpected runtime value (timing issue or dynamic content)
๐ง Fix:
Add a WaitOn condition or synchronization (e.g., Wait for Control)
Use buffers or regular expressions for partial matching
Check actual value in Execution Log or Live View
✅ 6. “Cannot open workspace” or “Workspace is locked”
๐ Cause:
Another instance is already open
File lock wasn’t released correctly after a crash
๐ง Fix:
Close all Tosca sessions
Navigate to the workspace folder and delete .lock file manually
Restart Tosca Commander and reopen the workspace
✅ 7. “ActionMode is not valid”
๐ Cause:
Incorrect ActionMode value (e.g., typo in “Verify” or “Input”)
๐ง Fix:
Valid ActionModes: Input, Verify, Buffer, Constraint, WaitOn
Ensure correct spelling and casing
✅ 8. “Tosca not recognizing SAP / Web elements”
๐ Cause:
Missing browser or SAP engine support
Required plugins not installed or enabled
๐ง Fix:
Install and enable the appropriate Tosca engines (e.g., SAP, HTML)
For web apps:
Ensure Tosca Extensions are installed in Chrome/Edge
Launch browser via Tosca or AutomationHost
For SAP:
Enable scripting in SAP GUI
Set sapgui/user_scripting = TRUE in SAP
✅ 9. “TestStep has invalid configuration”
๐ Cause:
Required test data or module attribute missing
Invalid combination of ActionMode and value
๐ง Fix:
Validate that all required fields in the Module are filled
Use the Consistency Check feature (Ctrl + F6)
✅ 10. “Test Configuration Parameter (TCP) not found”
๐ Cause:
TCP not inherited or defined at the right level
๐ง Fix:
Define TCPs at Project, TestCase, or ExecutionList level
Check inheritance chain and override settings
Ensure correct usage via @{TCPName} in expressions
๐ก General Troubleshooting Tips
๐งช Use ExecutionLog and Log Viewer for detailed error messages.
๐ Use Search & Replace to find broken module or buffer references.
๐งน Run Consistency Checks on TestCases and ExecutionLists.
๐ Restart Tosca Commander if things behave oddly — it helps in many cases.
๐ Bonus: Tools Within Tosca That Help Debugging
Tool/Feature Purpose
XScan Identifies and maps application objects
Live Execution View View real-time execution steps
Execution Log Detailed logs of execution and errors
TestCase Design Organize test data and reuse values
Modules View Manage control mappings and settings
Learn ETL Testing Training in Hyderabad
Read More
Career & Learning-Focused Topics in ETL Testing
How ETL Testing Supports Business Intelligence
ETL Testing for GDPR and Data Compliance
ETL Testing in Big Data Environments
Visit Our IHUB Talent Training Institute in Hyderabad
Comments
Post a Comment