Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Not able run test cases with GEF 3.3.2 version
Not able run test cases with GEF 3.3.2 version [message #128824] Mon, 21 April 2008 19:09 Go to next message
Pushparaj is currently offline PushparajFriend
Messages: 62
Registered: July 2009
Member
Hi All,

In our application we are using GEF editors for editing functionalities
for our customized project(project with specific natures).

So i has written some AGR test cases for our project creation wizrad.
one of our test case is just for creating a project. but in our project
creation code programatically we just open our default editor(GEF) for the
project. This test case is working fine if i am using GEF 3.2.1 version.

But if i am using GEF 3.3.2 i am getting the following error mesage at the
end

org.eclipse.core.runtime.CoreException
A time-out occurred while running command MacroCommand [select, line 4].
This is likely caused by the presence of an unexpected dialog or the
absence of an expected dialog.
org.eclipse.core.runtime.CoreException: A time-out occurred while running
command MacroCommand [select, line 4]. 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)




Its looks like this problem is coming because in my project creation I
programatically open the GEF editor.



If i am using Eclipse 3.2.1 every thing is working fine.

Is there any way to avoid this?

<macro version="1.0">
<shell descriptive="OpenClovis IDE -
IDETestContainer/test-resources/I..." referenceId="0" return-code="-1">
<command type="focus" referenceId="1"/>
<command descriptive="Project..." type="select" referenceId="2"/>
<shell descriptive="New Project" referenceId="3" return-code="0">
<command descriptive="Next &amp;gt;" type="select" referenceId="7"/>
<command type="modify" referenceId="8">
<![CDATA[SampleModel]]>
</command>
<command descriptive="Finish" type="select" referenceId="13"/>
</shell>
<command descriptive="SampleModel" type="item-select" referenceId="14">
<item referenceId="15"/>
</command>
<command descriptive="Delete" type="select" referenceId="16"/>
<shell descriptive="Confirm Project Delete" referenceId="17"
return-code="0">
<command descriptive="Also delete contents under
&amp;apos;/root/tptp/workspace/..." type="focus" referenceId="86"/>
<command descriptive="Do not delete contents" type="select"
referenceId="53" selection="false"/>
<command descriptive="Also delete contents under
&amp;apos;/root/tptp/workspace/..." type="select" referenceId="86"
selection="true"/>
<command descriptive="Yes" type="select" referenceId="20"/>
</shell>
<command descriptive="SampleModel - Resource Editor"
type="close-workbenchpart" referenceId="21"/>
<command descriptive="SampleModel - Component Editor"
type="close-workbenchpart" referenceId="22"/>
</shell>
</macro>
Re: Not able run test cases with GEF 3.3.2 version [message #129351 is a reply to message #128824] Mon, 28 April 2008 12:02 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
As the error states, GEF 3.3.2 opens a new dialog or does not show an
existing dialog when programmatically opening an editor. You will need to
re-recorded your test case to resolve teh probelm.

In addition, you will be interested in our upcoming enhancment for GEF
support in the AGR:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=133099

PS
"Pushparaj" <pushparaj_94@yahoo.com> wrote in message
news:d2574296fa629e9e70314e481dbfe2c6$1@www.eclipse.org...
> Hi All,
>
> In our application we are using GEF editors for editing functionalities
> for our customized project(project with specific natures).
>
> So i has written some AGR test cases for our project creation wizrad. one
> of our test case is just for creating a project. but in our project
> creation code programatically we just open our default editor(GEF) for the
> project. This test case is working fine if i am using GEF 3.2.1 version.
> But if i am using GEF 3.3.2 i am getting the following error mesage at the
> end
>
> org.eclipse.core.runtime.CoreException
> A time-out occurred while running command MacroCommand [select, line 4].
> This is likely caused by the presence of an unexpected dialog or the
> absence of an expected dialog.
> org.eclipse.core.runtime.CoreException: A time-out occurred while running
> command MacroCommand [select, line 4]. 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)
>
>
>
>
> Its looks like this problem is coming because in my project creation I
> programatically open the GEF editor.
>
>
>
> If i am using Eclipse 3.2.1 every thing is working fine.
>
> Is there any way to avoid this?
>
> <macro version="1.0">
> <shell descriptive="OpenClovis IDE - IDETestContainer/test-resources/I..."
> referenceId="0" return-code="-1">
> <command type="focus" referenceId="1"/>
> <command descriptive="Project..." type="select" referenceId="2"/>
> <shell descriptive="New Project" referenceId="3" return-code="0">
> <command descriptive="Next &amp;gt;" type="select" referenceId="7"/>
> <command type="modify" referenceId="8">
> <![CDATA[SampleModel]]>
> </command>
> <command descriptive="Finish" type="select" referenceId="13"/>
> </shell>
> <command descriptive="SampleModel" type="item-select" referenceId="14">
> <item referenceId="15"/>
> </command>
> <command descriptive="Delete" type="select" referenceId="16"/>
> <shell descriptive="Confirm Project Delete" referenceId="17"
> return-code="0">
> <command descriptive="Also delete contents under
> &amp;apos;/root/tptp/workspace/..." type="focus" referenceId="86"/>
> <command descriptive="Do not delete contents" type="select"
> referenceId="53" selection="false"/>
> <command descriptive="Also delete contents under
> &amp;apos;/root/tptp/workspace/..." type="select" referenceId="86"
> selection="true"/>
> <command descriptive="Yes" type="select" referenceId="20"/>
> </shell>
> <command descriptive="SampleModel - Resource Editor"
> type="close-workbenchpart" referenceId="21"/>
> <command descriptive="SampleModel - Component Editor"
> type="close-workbenchpart" referenceId="22"/>
> </shell>
> </macro>
>
>
Previous Topic:TPTP junit reports
Next Topic:cannot profile eclipse JUnit Plugin
Goto Forum:
  


Current Time: Sat Dec 20 00:12:36 GMT 2014

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

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