Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » AGR problems with Search dialog
AGR problems with Search dialog [message #67220] Thu, 20 April 2006 19:16 Go to next message
Eclipse UserFriend
Originally posted by: aaijaz.parasoft.com

Hello All,

I am using TPTP 4.2 I2 stable build.

I have recorded a test case that performs the following function:

- (From the main menu) Search> Search
- Press Cancel button on the resulting dialog.

Here is the macro that was generated by AGR.

<macro version="0.1" >
<shell descriptive="..."
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1" >
<command descriptive="Search... Ctrl+H" type="select"
contextId="menus"
widgetId=" org.eclipse.ui.internal.ActionSetContributionItem#{{Se&a mp;arch-Se&amp;arch...&#x9;Ctrl+H}}-{{0.8}}{{3|0}}-{ {0.6}}{{true}}-{{0.1}}{{4}}-{{0.1}}{{first}}-{{0.2}}{{&a mp;File...}}-{{0.2}} "
/>
<shell descriptive="Search"
id="org.eclipse.search.internal.ui.SearchDialog" return-code="0">
<command descriptive="Cancel" type="select" contextId="shell"
widgetId="org.eclipse.swt.widgets.Button#{{1}}-{{1.0}}" />
</shell>
</shell>
</macro>

Upon executing this test, I see the search dialog opening up. The cancel
button is, however, never selected and the test terminates with the
following error:

org.eclipse.core.runtime.CoreException
A time-out occurred while running command MacroCommand [select, line 3].
This is likely caused by the presence of an unexpected dialog or the
absence of an expected dialog.
.....

The type of the search dialog is
org.eclipse.search.internal.ui.SearchDialog which is not a native dialog
that according to section 1.2 of the guide (Known Limitations and
Workarounds) cannot be recorded.

Has anyone else faced a similar problem? I'd appreciate if you have any
pointers or workarounds for me to pursue.

Thanx!

Adil
Re: AGR problems with Search dialog [message #67409 is a reply to message #67220] Fri, 21 April 2006 15:17 Go to previous message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hmmm. Odd problem.
I found out that if you actually change the tab and click on cancel, it
works.
Here's the macro:

<macro version="0.1" >
<shell descriptive="Java - AutoGUITest - Eclipse S..."
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1" >
<command descriptive="Search... Ctrl+H" type="select"
contextId="menus"
widgetId=" org.eclipse.ui.internal.ActionSetContributionItem#{{Se&a mp;arch-Se
&amp;arch...&#x9;Ctrl+H}}-{{0.8}}{{3|0}}-{{0.6}}{{tr ue}}-{{0.1}}{{6}}-{{0.1}
}{{first}}-{{0.2}}{{&amp;File...}}-{{0.2}}" />
<shell descriptive="Search"
id="org.eclipse.search.internal.ui.SearchDialog" return-code="0" >
<command descriptive="Java Search" type="choice-select"
contextId="shell" widgetId="org.eclipse.swt.widgets.TabFolder#1"
choiceId="item#1"/>
<command descriptive="Cancel" type="select" contextId="shell"
widgetId="org.eclipse.swt.widgets.Button#{{1}}-{{1.0}}" />
</shell>
</shell>
</macro>

I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=137965 to further
investigate the problem.
Thanks.


"Adil Aijaz" <aaijaz@parasoft.com> wrote in message
news:e28mht$41d$1@utils.eclipse.org...
> Hello All,
>
> I am using TPTP 4.2 I2 stable build.
>
> I have recorded a test case that performs the following function:
>
> - (From the main menu) Search> Search
> - Press Cancel button on the resulting dialog.
>
> Here is the macro that was generated by AGR.
>
> <macro version="0.1" >
> <shell descriptive="..."
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1" >
> <command descriptive="Search... Ctrl+H" type="select"
> contextId="menus"
>
widgetId=" org.eclipse.ui.internal.ActionSetContributionItem#{{Se&a mp;arch-Se
&amp;arch...&#x9;Ctrl+H}}-{{0.8}}{{3|0}}-{{0.6}}{{tr ue}}-{{0.1}}{{4}}-{{0.1}
}{{first}}-{{0.2}}{{&amp;File...}}-{{0.2}}"
> />
> <shell descriptive="Search"
> id="org.eclipse.search.internal.ui.SearchDialog" return-code="0">
> <command descriptive="Cancel" type="select" contextId="shell"
> widgetId="org.eclipse.swt.widgets.Button#{{1}}-{{1.0}}" />
> </shell>
> </shell>
> </macro>
>
> Upon executing this test, I see the search dialog opening up. The cancel
> button is, however, never selected and the test terminates with the
> following error:
>
> org.eclipse.core.runtime.CoreException
> A time-out occurred while running command MacroCommand [select, line 3].
> This is likely caused by the presence of an unexpected dialog or the
> absence of an expected dialog.
> ....
>
> The type of the search dialog is
> org.eclipse.search.internal.ui.SearchDialog which is not a native dialog
> that according to section 1.2 of the guide (Known Limitations and
> Workarounds) cannot be recorded.
>
> Has anyone else faced a similar problem? I'd appreciate if you have any
> pointers or workarounds for me to pursue.
>
> Thanx!
>
> Adil
Previous Topic:Filter Set locations
Next Topic:TPTP 4.2 I2 Stable Build Available
Goto Forum:
  


Current Time: Fri Apr 26 23:41:47 GMT 2024

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

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

Back to the top