07-02-2008, 07:10 PM
Version: QTP 9.5 + java add-in
Application tested: Eclipse RCP app
Hi,
I am evaluating QTP for our UI automated testing needs and I am blocked on the following scenario:
I am trying to drag and drop an element from a tree into an editor pane, which is a typical gesture in a graphical editor. There are several problems:
- The recording doesn't record the drag and drop, but merely a click on the destination pane
- I can't access the selected object in the tree programmatically in order to drag it. Absolute coordinates are not an option, since the tree contents may vary, and I need to identify the item by name. I can select the node through the JavaTree("Tree").Select, but it doesn't give me any coordinates or handle that I could drag.
Is this feature supported? How to do it? I have skimmed the documentation and forums without finding any example or answer.
Thanks!
Application tested: Eclipse RCP app
Hi,
I am evaluating QTP for our UI automated testing needs and I am blocked on the following scenario:
I am trying to drag and drop an element from a tree into an editor pane, which is a typical gesture in a graphical editor. There are several problems:
- The recording doesn't record the drag and drop, but merely a click on the destination pane
- I can't access the selected object in the tree programmatically in order to drag it. Absolute coordinates are not an option, since the tree contents may vary, and I need to identify the item by name. I can select the node through the JavaTree("Tree").Select, but it doesn't give me any coordinates or handle that I could drag.
Is this feature supported? How to do it? I have skimmed the documentation and forums without finding any example or answer.
Thanks!