[ 
https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628116#action_12628116
 ] 

B.J. Reed commented on GERONIMODEVTOOLS-485:
--------------------------------------------

I see a few problems....the second line is still looking at the workbench and 
not the dialog

Went ahead and stepped through the Abbot code a little more.  Those things on 
the About dialog are not ToolItems, but are Buttons so we still want to use the 
WidgetToolTipMatcher inner class, but you'll also need to add to the getText 
method to handle instances of Button.  The fact that you found 6 ToolItems was 
just a coincidence.

So for the second call, you may want to copy the clickToolItem (...) method 
(since this one is ToolItem specific) and create one for clicking the Button by 
finding its tool tip text.  (I just named it clickButtonFromToolTipText below, 
but I'm sure there's a better name for it).

The code should look something like this:

Shell dialogShell = aHelper.clickMenuItem(workbenchShell, new String[] 
{"&Help", "&About Eclipse Platform"}, "About Eclipse Platform");
aHelper.clickButtonFromToolTipText(dialogShell,"Eclipse.org - Mylyn"); 


When stepping through the code, I went ahead and copied the tool tip texts that 
were available to me.
Eclipse.org - Help System Base
Eclipse.org - J2EE Standard Tools (JST)
Eclipse.org - Mylyn
Eclipse.org - EMF - Eclipse Modeling Framework
Apache.org - Geronimo v21 Server Tools Core Plug-in
Eclipse.org# - Data Tools Platform User Documentation
plus 4 nulls for the Buttons at the bottom of the dialog

> "About Eclipse Platform" testcase
> ---------------------------------
>
>                 Key: GERONIMODEVTOOLS-485
>                 URL: 
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-485
>             Project: Geronimo-Devtools
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Ashish Jain
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to