AGR problems with Search dialog [message #67220] |
Thu, 20 April 2006 19:16 |
Eclipse User |
|
|
|
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&arch...	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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03754 seconds