AGR hangs while playing a recorded simple dialog spawned from ProgressMonitorDia [message #116336] |
Wed, 24 October 2007 13:30  |
Eclipse User |
|
|
|
Hi all, Ive recoded an AGR test case where a MessageDialog is spawned
from a ProgressMonitorDialog and when the OK button is clicked the
MessageDialog gets closed. Now when I run the AGR test case it opens the
MessageDialog but then hangs. After a while I get a time out error.
Any idea why this is happening?
Here is the XML content
<macro version="1.0">
<shell descriptive="Modeling -
com.ibm.xtools.transform.merge.bvt.agrt..."
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="Test sample Action" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial" contextId="menus"
widgetId="{{Sample Menu-Test sample Action}}-{{1.0}}"/>
<shell descriptive="Progress Information"
id="org.eclipse.jface.dialogs.ProgressMonitorDialog" return-code="-1">
<shell descriptive="MyTestPlugin Plug-in"
id="org.eclipse.jface.dialogs.MessageDialog" return-code="0">
<command descriptive="OK" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive" contextId="shell"
widgetId="{{0}}-{{1.0}}"/>
</shell>
</shell>
</shell>
</macro>
Here is the code the invokes the dialog
public void run(IAction action) {
try {
final ProgressMonitorDialog monitorDlg = new
ProgressMonitorDialog(window.getShell());
monitorDlg.run(true, true, new IRunnableWithProgress(){
public void run(IProgressMonitor monitor)throws
InvocationTargetException, InterruptedException {
Display.getDefault().asyncExec(new Runnable(){
public void run() {
MessageDialog.openInformation(
monitorDlg.getShell(),
"MyTestPlugin Plug-in",
"Hello, Eclipse world");
}
});
}
});
} catch (InvocationTargetException e1) {
e1.printStackTrace();
} catch (InterruptedException e1) {
e1.printStackTrace();
}
}
Im using eclipse 3.3.1 with
org.eclipse.tptp.test.auto.gui_4.3.100.200709211328 plugin.
Thanks in advance for your response!
Susanta
|
|
|
|
Powered by
FUDForum. Page generated in 0.08006 seconds