How to Use Drag and Drop in Tosca for Automated Testing

Learn how to drag and drop objects in Tosca using the TBox Drag and Drop module for efficient automated test scenarios.

19 views

In Tosca, dragging is a part of its drag and drop functionality, used to automate test scenarios involving moving objects from one location to another on the screen. To drag in Tosca, use the TBox Drag and Drop module. First, identify the source and target objects in your scan repository. Then, in your TestCase, link the TBox Drag and Drop module with the correct parameters for the source and target. Ensure screen coordinates are accurately defined if required. This technique simplifies complex drag and drop actions in automated testing.

FAQs & Answers

  1. What is the TBox Drag and Drop module in Tosca? The TBox Drag and Drop module in Tosca is a feature that allows users to automate dragging and dropping objects between locations on the screen within test cases.
  2. How do I identify source and target objects for drag and drop in Tosca? Source and target objects are identified in Tosca's scan repository, which contains the UI components detected during scanning and used to define drag and drop parameters.
  3. Can Tosca handle complex drag and drop actions? Yes, Tosca simplifies complex drag and drop actions by allowing precise definition of screen coordinates and linking correct modules in test cases.