Treeviewer identicfication.

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Treeviewer identicfication.

Postby soujanyarl » Fri Sep 25, 2009 1:37 am

I have a wizard in eclipse which consists 2 treeviewers .When i make a selection in the treeviewer,windowsTester could identify the selection in one treeviewer but not the other.I have attached the wizard image for refernce.

WindowsTester is able to identify the selection in the modelpositions treeviewer (i.e atm/atm_fm) but the not
selection under the MOClasses(i.e.Atm\Aal0TpVccTp\Aal0TpVccTp<moclass>.Does it involve anything with the no.of levels in the treeviewer selection?
Can you please look into this matter.


Thankyou.
soujanyarl
 
Posts: 2
Joined: Thu Sep 10, 2009 1:50 am

Re: Treeviewer identicfication.

Postby Phil Quitslund » Fri Sep 25, 2009 1:07 pm

Could you post the snippet of test code that is failing?
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Treeviewer identicfication.

Postby soujanyarl » Mon Oct 12, 2009 4:12 am

Hi,

Sorry for the delay.

I'm attaching the code.

it is failing at
ui.click(new TreeItemLocator("Atm <mO>/Aal0TpVccTp/Aal0TpVccTp <mOClass>",
new LabeledLocator(Tree.class, " MO Classes")));

for the second treeviewer called MOClasses in the wizard that i have attached earlier.

Can you please look into this.
Attachments
Code.java
(4.1 KiB) Downloaded 33 times
soujanyarl
 
Posts: 2
Joined: Thu Sep 10, 2009 1:50 am

Re: Treeviewer identicfication.

Postby Phil Quitslund » Mon Oct 12, 2009 6:46 am

It looks indexed matches are not working for View components and we will investigate (and follow-up on the support ticket you opened). In the meantime, do you have access to the application source? Would it be feasible to instrument the application a bit to make it more testable? If so, you could consider naming the tree as described here:

http://downloads.instantiations.com/Win ... dgets.html

Please let us know.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest