Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » AGR hangs while playing a recorded simple dialog spawned from ProgressMonitorDia
AGR hangs while playing a recorded simple dialog spawned from ProgressMonitorDia [message #116336] Wed, 24 October 2007 17:30 Go to next message
Susanta Datta is currently offline Susanta DattaFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all, I’ve 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 -"
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="Test sample Action" type="select"
resolverId="" 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="" contextId="shell"

Here is the code the invokes the dialog

public void run(IAction action) {
try {
final ProgressMonitorDialog monitorDlg = new
ProgressMonitorDialog(window.getShell());, true, new IRunnableWithProgress(){
public void run(IProgressMonitor monitor)throws
InvocationTargetException, InterruptedException {
Display.getDefault().asyncExec(new Runnable(){
public void run() {
"MyTestPlugin Plug-in",
"Hello, Eclipse world");
} catch (InvocationTargetException e1) {
} catch (InterruptedException e1) {


I’m using eclipse 3.3.1 with plugin.

Thanks in advance for your response!

Re: AGR hangs while playing a recorded simple dialog spawned from ProgressMonitorDia [message #117293 is a reply to message #116336] Tue, 06 November 2007 12:47 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Susanta,
I would assume the AGR cannot locate the button on the dialog. For more
information on the solution, see the Widget Resolving Mechanism section in
the AGR documentation: Auto-GUI-4-4-0.html#2.4

Also, you may be seeing the symptoms for defect

"Susanta" <> wrote in message
> Hi all, I
Previous Topic:How to find the results(pass/fail) after running test cases
Next Topic:Playback error
Goto Forum:

Current Time: Thu Nov 26 14:28:13 GMT 2015

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

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