Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Drag operation from a UltraTree to a panel
posted

Is there a way to recognize in testadvantage/ quick test pro that the user is dragging a ultratreenode from an ultratree and the trying to drop that node on some separate panel?  I have tried several things, but the only type of drag operation I can seem to get qtp recording to recognize is draging one node to another node on the same tree.

thanks

Parents
  • 22852
    Offline posted

    Hello,

    For dragging from the tree to another control, you can use the generic Drag and Drop methods that are available on all .NET objects in QTP.  These method are based on mouse coordinates.  If you would like to record the drag operation, you can do so by disabling TestAdvantage while recording the drag operation.

    When you record without TestAdvantage the tree will be recognized as SwfObject rather than SwfTreeView.  I have tested recording in a single test with TestAdvantage disabled and then TestAdvantage enabled and this worked and I could play back the script. 

    This approach will cause the tree to be added to the object repository twice so I would recommend that you record the drag operations in a new script and then manually edit the recorded script replacing SwfObject with SwfTreeView and then adding these lines to your existing script that already works with the tree.

    To enable or disable TestAdvantage, you can use the version utility which can be found in the start menu under Infragistics -> TestAdvantage for Windows Forms [version] -> TestAdvantage for Windows Forms Tools

    Let me know if you have any questions with this matter.

    Sincerely,
    Alan
    Senior Developer Support Engineer

Reply Children