Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » AGR- Cannot Identify Widget in IViewPart
AGR- Cannot Identify Widget in IViewPart [message #109728] Tue, 21 August 2007 11:09 Go to next message
Eclipse UserFriend
Originally posted by: Swapna.Pawar.kpitcummins.com

Hi All,

I am writing AGR test cases for new project wizard wherein I want to check
the Configurations populated. I am getting the 'Configurations:' as a
label from the IViewPart in my hook but not Debug or Release check box. I
tried to find them as label, button, checkbox, list, and table but did not
get them in the IViewPart. Can anybody tell me how I have to search for
these components?

Eclipse – 3.2.1, TPTP – 4.3.0, AGR – 4.3.0

Regards,
Swapna
Re: AGR- Cannot Identify Widget in IViewPart [message #109845 is a reply to message #109728] Thu, 23 August 2007 10:30 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Swapna,
The Debug and Release check boxes are children of the IViewPart passed
into your verification hook method. However, you need to know the
organization of that particular IViewPart to navigate to the correct widget.
There is a helper class for resolving widgets in the TPTP test bucket
( http://dev.eclipse.org/viewcvs/index.cgi/test-results/?root= TPTP_Project):

/platform/org.eclipse.hyades.use.cases.auto.common.VerifyHoo kUtil.java

Paul
"Swapna Pawar" <Swapna.Pawar@kpitcummins.com> wrote in message
news:2934416280f74fa9d59656909d378e1a$1@www.eclipse.org...
> Hi All,
>
> I am writing AGR test cases for new project wizard wherein I want to check
> the Configurations populated. I am getting the 'Configurations:' as a
> label from the IViewPart in my hook but not Debug or Release check box. I
> tried to find them as label, button, checkbox, list, and table but did not
> get them in the IViewPart. Can anybody tell me how I have to search for
> these components?
>
> Eclipse
Re: AGR- Cannot Identify Widget in IViewPart [message #110176 is a reply to message #109845] Mon, 27 August 2007 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Swapna.Pawar.kpitcummins.com

Hi,

We were using the same helper file VerifyHookUtil.java, but I didn't know
that it was a part of a table. I am now able to get Debug and Release as
items of Table.


Thank you so much,
Swapna
Re: AGR- Cannot Identify Widget in IViewPart [message #110227 is a reply to message #110176] Mon, 27 August 2007 11:41 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Swapna,
Often you need to search a long lineage to find the widget you want to
verify. This can be especially troublesome when you do not know the
strcuture. I have opened an enhancing to have the helper APIs in
VerifyHookUtil.java (and others) integrated into the AGR (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201247). Another possibility
is to have more granular widgets passed in as parameters to the verification
hook method (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=201248).

Paul
"Swapna" <Swapna.Pawar@kpitcummins.com> wrote in message
news:c8a029fed3bc74adc13c8760aab3152c$1@www.eclipse.org...
> Hi,
>
> We were using the same helper file VerifyHookUtil.java, but I didn't know
> that it was a part of a table. I am now able to get Debug and Release as
> items of Table.
>
>
> Thank you so much,
> Swapna
>
Previous Topic:Problem with standard mode execution in different contexts
Next Topic:TPTP for Eclipse C/C++ Project
Goto Forum:
  


Current Time: Thu Dec 18 12:35:11 GMT 2014

Powered by FUDForum. Page generated in 0.02885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software