Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » A time-out occurred while running command MacroCommand
A time-out occurred while running command MacroCommand [message #118366] Fri, 16 November 2007 10:11 Go to next message
sridhar Mising name is currently offline sridhar Mising nameFriend
Messages: 22
Registered: July 2009
Junior Member
Hi ,
I have created around 45 testcases using AGR 4.4.0.3, but when I run
the testsuite it gets hanged some where after 30 testcases and following
error is displayed:
There was an error while running the macro associated with the test case:
org.eclipse.core.runtime.CoreException: A time-out occurred while running
command MacroCommand [select, line 163]. This is likely caused by the
presence of an unexpected dialog or the absence of an expected dialog.
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.playback(MacroCommandShell.java:1090)
at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback (Macro.java:346)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.r unMacro(MacroManager.java:574)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.a ccess$4(MacroManager.java:568)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1 $MacroOperationWrapper.run(MacroManager.java:501)
at java.lang.Thread.run(Thread.java:595)

I have even tried by chnaging the threshhold limit to 100 sec,still it
did not worked for me.It works fine if I get execute them by splitting
like 20 testcases and 25 tescases.
Do I need to set any parameter in order to overcome the time
out problem.Any help would be appreciable?

Thanks,
Sridhar
Re: A time-out occurred while running command MacroCommand [message #118393 is a reply to message #118366] Fri, 16 November 2007 11:32 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Sridhar,
This is caused by the AGR not being able to find a widget or dialog or a
new dialog has focus that the test suite does not know about. We found the
same case when testing with Eclipse 3.4 since the platform team changed the
confirmation dialog when deleting resources.

You need to re-record the test case (or the portion around line 163)
that is failing.

Paul
"Sridhar" <g_sridhar258@yahoo.co.in> wrote in message
news:d65c8a57b88aa25a3d9d43dcb988c9a6$1@www.eclipse.org...
> Hi ,
> I have created around 45 testcases using AGR 4.4.0.3, but when I run
> the testsuite it gets hanged some where after 30 testcases and following
> error is displayed:
> There was an error while running the macro associated with the test case:
> org.eclipse.core.runtime.CoreException: A time-out occurred while running
> command MacroCommand [select, line 163]. This is likely caused by the
> presence of an unexpected dialog or the absence of an expected dialog.
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell.playback(MacroCommandShell.java:1090)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback (Macro.java:346)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.r unMacro(MacroManager.java:574)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.a ccess$4(MacroManager.java:568)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1 $MacroOperationWrapper.run(MacroManager.java:501)
> at java.lang.Thread.run(Thread.java:595)
>
> I have even tried by chnaging the threshhold limit to 100 sec,still it
> did not worked for me.It works fine if I get execute them by splitting
> like 20 testcases and 25 tescases.
> Do I need to set any parameter in order to overcome the time out
> problem.Any help would be appreciable?
>
> Thanks,
> Sridhar
>
Re: A time-out occurred while running command MacroCommand [message #118457 is a reply to message #118393] Tue, 20 November 2007 04:33 Go to previous messageGo to next message
sridhar Mising name is currently offline sridhar Mising nameFriend
Messages: 22
Registered: July 2009
Junior Member
Hi Paul,
Thanks for your update.I want to update you on this problem.
The testcase runs fine if I run it individually in standard mode.If AGR
does not get the required widget it should even fail in this case right.
Also it is not consistently failing in a single testcase.When I run
for the 1st time it fails in 35 th testcase, but in 2nd run it fails in 37
th tescase with the same time-out problem.


Thanks,
Sridhar
Re: A time-out occurred while running command MacroCommand [message #118494 is a reply to message #118457] Tue, 20 November 2007 11:58 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Sridhar,
Yes, the AGRA will fail when it cannot resolve the widget or there a new
dialog has focus that the test suite does not know about. Depending on your
application under test (e.g. web client connecting to a server) and what you
are testing, different test runs may produce different results (a.g.
different test cases failing between different test runs). I would remove
the 37th test case and run several times to determine if #35 is correct, and
then vice-versa.

Paul
"sridhar" <g_sridhar258@yahoo.co.in> wrote in message
news:18169a835fc833dea53ebc06a5352565$1@www.eclipse.org...
> Hi Paul,
> Thanks for your update.I want to update you on this problem.
> The testcase runs fine if I run it individually in standard mode.If AGR
> does not get the required widget it should even fail in this case right.
> Also it is not consistently failing in a single testcase.When I run
> for the 1st time it fails in 35 th testcase, but in 2nd run it fails in 37
> th tescase with the same time-out problem.
>
>
> Thanks,
> Sridhar
>
Previous Topic:why no agant available?
Next Topic:Cannot profile application running with JDK 1.4.2
Goto Forum:
  


Current Time: Thu Mar 28 17:15:45 GMT 2024

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

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

Back to the top