geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B.J. Reed (JIRA)" <>
Subject [jira] Commented: (GERONIMODEVTOOLS-485) "About Eclipse Platform" testcase
Date Wed, 03 Sep 2008 19:53:44 GMT


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

The code should look something like this:

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

When stepping through the code, I went ahead and copied the tool tip texts that were available
to me. - Help System Base - J2EE Standard Tools (JST) - Mylyn - EMF - Eclipse Modeling Framework - Geronimo v21 Server Tools Core Plug-in - 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:
>             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.

View raw message