Tosca Steering Parameters: Use Cases and Tips

 πŸ”§ What Are Steering Parameters?

Steering Parameters are key-value pairs used to fine-tune the interaction between Tosca and various UI technologies. You can set them:


At the TestStep or Module level


Globally, via the Settings or TBox framework


Through ExecutionLists


For specific controls or elements


✅ Use Cases

1. Improve Stability of Test Execution

Example: Slow-loading applications can cause Tosca to fail due to timeouts.


Steering Parameter: WaitOn = True


Tells Tosca to wait for an element to become available before interacting.


2. Control Click Behavior on Web Applications

Example: A button requires a JavaScript event to trigger on mouse down instead of click.


Steering Parameter: ClickType = MouseDown


3. Handle Custom or Complex Controls

Example: A custom dropdown component that isn't recognized.


Steering Parameter: ControlRecognition = DeepScan


4. Modify Execution for Specific Browsers

Example: Internet Explorer behaves differently from Chrome.


Steering Parameter: BrowserType = Chrome / IE


Ensures compatibility and better element recognition.


5. Avoid Unexpected Popups or Overlays

Example: Hover overlays block elements.


Steering Parameter: SuppressHover = True


πŸ’‘ Tips for Using Steering Parameters

Use Sparingly: Only use them when needed — overuse can make maintenance harder.


Set at the Right Level:


Module = affects all instances.


TestStep = for one-time adjustments.


Use Descriptive Comments: Document why a parameter was added.


Check Logs: Tosca logs can show if parameters are applied and help debug issues.


Leverage Tosca XScan: To discover supported properties and parameters for elements.


Centralize Common Parameters: Using custom modules or templates makes it easier to manage.


🧰 Common Steering Parameters

Parameter Value Example Description

WaitOn True Wait for control to be ready.

ClickType MouseDown Simulate specific click type.

UseCache False Forces Tosca to re-scan element.

Timeout 30000 (ms) Adjust wait time for control interaction.

MatchIndex 2 Use when multiple elements match.

ControlType Button Override control recognition.

Learn Tosca Training in Hyderabad

Read More

Working with Tosca Parameters (Buffer, Dynamic Expressions)

Tosca Templates and TestStep Design Patterns

Dynamic Test Cases with Tosca’s TestCase Design

Test Case Optimization Using Tosca’s Test Data Service

Visit Our IHUB Talent Training Institute in Hyderabad

Get Directions

Comments

Popular posts from this blog

How to Install and Set Up Selenium in Python (Step-by-Step)

Feeling Stuck in Manual Testing? Here’s Why You Should Learn Automation Testing

A Beginner's Guide to ETL Testing: What You Need to Know