Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Automated GUI Recorder – Properties View problems
Automated GUI Recorder – Properties View problems [message #82476] Tue, 05 September 2006 12:08 Go to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Hi All,

I’m trying to get familiar with TPTP's Automated GUI Recorder and use it
to interactive user interface tests.
During these investigations I have problems with properties view.
I tried TPTP 4.1.0.1 (Eclipse 3.1.2) and it was not possible to record any
action connected with Properties view.
Now, I’m using TPTP 4.2 (Eclipse 3.2) and my problem is solved partially.
Recorded macro works great for selection PropertySheetCategory and
PropertySheetEntry. Following macro selects item from my tree and
correctly select its PropertySheetEntry:

<macro version="0.1" >
<shell descriptive="Mc2 - AutomatedGUISuite - Ecli..."
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1" >
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1" />
<command descriptive="Open F3" type="select"
contextId=" popup/view/org.eclipse.jdt.ui.PackageExplorer/org.eclipse.sw t.widgets.Tree#{{/}}-{{1.0}} "
widgetId=" org.eclipse.jface.action.ActionContributionItem#{{&amp;O pen&#x9;F3}}-{{0.8}}{{2}}-{{0.6}}{{false}}-{{0.1}}{{31}} -{{0.1}}{{separator}}-{{0.2}}{{Open
Wit&amp;h}}-{{0.2}}" />
<command descriptive="platform:/resource/ip/ip.mc2"
type="item-expand" contextId="editor/mc2.presentation.Mc2EditorID/ip.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="mc2.util.Mc2ResourceImpl0"/>
<item path="mc2.impl.SystemImpl0|0|"/>
</command>
<command descriptive="ip" type="item-select"
contextId="editor/mc2.presentation.Mc2EditorID/ip.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1" >
<item path="mc2.impl.MOImpl0|0||0|"/>
</command>
<command descriptive="Name1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#1" >
<item
path="org.eclipse.ui.views.properties.PropertySheetEntry1|1| "/>
</command>
<command descriptive="Name0" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#1" >
<item
path="org.eclipse.ui.views.properties.PropertySheetEntry1|0| "/>
</command>

</shell>
</macro>

Problems appear when I try to record and play modification of Text or
CCombo in property tab.
Record process shows no errors and generates following macro (text
modification):

<macro version="0.1" >
<shell descriptive="Mc2 - AutomatedGUISuite - Ecli..."
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1" >
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1" />
<command descriptive="Open F3" type="select"
contextId=" popup/view/org.eclipse.jdt.ui.PackageExplorer/org.eclipse.sw t.widgets.Tree#{{/}}-{{1.0}} "
widgetId=" org.eclipse.jface.action.ActionContributionItem#{{&amp;O pen&#x9;F3}}-{{0.8}}{{2}}-{{0.6}}{{false}}-{{0.1}}{{31}} -{{0.1}}{{separator}}-{{0.2}}{{Open
Wit&amp;h}}-{{0.2}}" />
<command descriptive="platform:/resource/ip/ip.mc2"
type="item-expand" contextId="editor/mc2.presentation.Mc2EditorID/ip.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="mc2.util.Mc2ResourceImpl0"/>
<item path="mc2.impl.SystemImpl0|0|"/>
</command>
<command descriptive="ipv4InterfaceMO" type="item-select"
contextId="editor/mc2.presentation.Mc2EditorID/ip.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1" >
<item path="mc2.impl.MOImpl0|0||1|"/>
</command>
<command descriptive="Name" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#1" >
<item
path="org.eclipse.ui.views.properties.PropertySheetEntry1|1| "/>
</command>
<command type="modify"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1" >
<![CDATA[sth]]>
</command>
<command type="focus"
contextId="editor/mc2.presentation.Mc2EditorID/ip.mc2"
widgetId="org.eclipse.swt.widgets.Composite#1" />
</shell>
</macro>

Playing macro in quick mode shows following errors:
org.eclipse.core.runtime.CoreException
Line 15: Cannot locate view control: org.eclipse.swt.widgets.Text#1
org.eclipse.core.runtime.CoreException: Line 15: Cannot locate view
control: org.eclipse.swt.widgets.Text#1
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroUtil.t hrowCoreException(MacroUtil.java:1482)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroUtil.t hrowCoreException(MacroUtil.java:1474)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroUtil.l ocateViewControl(MacroUtil.java:1342)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroUtil.l ocateCommandTarget(MacroUtil.java:765)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroUtil.l ocateCommandTarget(MacroUtil.java:738)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.ModifyComma nd.playback(ModifyCommand.java:211)
at
org.eclipse.tptp.test.auto.gui.internal.recorder.MacroComman dShell$4.run(MacroCommandShell.java:1197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Similar errors are generated for CCombo modification.

Is it any possibility to correct locate view control for widgets?
Re: Automated GUI Recorder ? Properties View problems [message #82552 is a reply to message #82476] Tue, 05 September 2006 17:23 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Are there any ways for me to be able to reproduce this problem?
I was able to successfully record and playback a focus command (which is
similar to a modify command) on a text box in a tabbed property page using
4.3

"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message
news:72a8433c9a442390b4f147a3b3a3ad05$1@www.eclipse.org...
> Hi All,
>
> I
Re: Automated GUI Recorder ? Properties View problems [message #83135 is a reply to message #82552] Mon, 11 September 2006 16:07 Go to previous messageGo to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Hi All,

I changed my TPTP version to 4.3.0-200609071545.
Now, focus command on Text box or on Combo box shows no errors.
Problems with modify command and choice-select command on Properties View
elements still persist.


Recorded macro - focus and text modification (option: "Include object ids
in test case macro"):

<macro version="1.0">
<shell descriptive="Mc2 - testy - Eclipse SDK"
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="if.mc2" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/if}}-{{1.0}}">
<item path="{{/if/if.mc2}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>
<command descriptive="if.mc2" type="default-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/if}}-{{1.0}}">
<item path="{{/if/if.mc2}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="platform:/resource/if/if.mc2" type="item-expand"
contextId="editor/mc2.presentation.Mc2EditorID/if.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="mc2.util.Mc2ResourceImpl0"/>
<item path="mc2.impl.SystemImpl0|0|"/>
</command>
<command descriptive="interfaces" type="item-select"
contextId="editor/mc2.presentation.Mc2EditorID/if.mc2"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="mc2.impl.MOImpl0|0||0|"/>
</command>
<command descriptive="Name" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#2">
<item path="{{Name}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1"/>
<command type="modify"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1">
<![CDATA[ala]]>
</command>
<command type="focus"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#2"/>
</shell>
</macro>


Focus command works correctly.
Following error appears on modify line:

org.eclipse.core.runtime.CoreException
Error while executing a macro command: MacroCommand [modify, line 21]
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.tptp.test.auto.gui.internal.commands.ModifyComma nd.playback(ModifyCommand.java:224)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1160)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Similar error appears for choice-select command.
Is it any possibility to solve these problems?

Regards,
Artur
Re: Automated GUI Recorder ? Properties View problems [message #83361 is a reply to message #83135] Tue, 12 September 2006 22:12 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
It's quite weird that it is able to focus the text box and not be able to
find it for the modify command. I've noticed that the ID of the text box is
index-based (i.e. widgetId="org.eclipse.swt.widgets.Text#1"). This happens
only if registered widget resolvers are not able to determine the ID of the
text box. If you have access to the source of the property sheet, then try
defining a deterministic ID for the text box in the property sheet.

1) Open
<ECLIPSE-HOME> \plugins\org.eclipse.tptp.test.auto.gui_4.2.0.v200609071545\ auto-gui\widgetReg.xml
2) Add the following entry:

<class name = "org.eclipse.swt.widgets.Text" matchThreshold = "1.0">
<method name = "getData" weight = "1.0">
<argument value = "custom.id"/>
</method>
</class>

3) In the source for the property sheet, add the following data element:
Text propertySheetText = ...
propertySheetText.setData("custom.id", "MyCustomID");

Record your use case again. You should see {{MyCustomID}}-{{1.0}} as the ID
for the text box. See if you can re-play the macro.

"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message
news:49481d7ad35ce550c0fa1ad6f136fcfb$1@www.eclipse.org...
> Hi All,
>
> I changed my TPTP version to 4.3.0-200609071545. Now, focus command on
> Text box or on Combo box shows no errors.
> Problems with modify command and choice-select command on Properties View
> elements still persist.
>
>
> Recorded macro - focus and text modification (option: "Include object ids
> in test case macro"):
>
> <macro version="1.0">
> <shell descriptive="Mc2 - testy - Eclipse SDK"
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command descriptive="if.mc2" type="item-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/if}}-{{1.0}}">
> <item path="{{/if/if.mc2}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="org.eclipse.swt.widgets.Composite#1"/>
> <command descriptive="if.mc2" type="default-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/if}}-{{1.0}}">
> <item path="{{/if/if.mc2}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive="platform:/resource/if/if.mc2" type="item-expand"
> contextId="editor/mc2.presentation.Mc2EditorID/if.mc2"
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item path="mc2.util.Mc2ResourceImpl0"/>
> <item path="mc2.impl.SystemImpl0|0|"/>
> </command>
> <command descriptive="interfaces" type="item-select"
> contextId="editor/mc2.presentation.Mc2EditorID/if.mc2"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="mc2.impl.MOImpl0|0||0|"/>
> </command>
> <command descriptive="Name" type="item-select"
> contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Tree#2">
> <item path="{{Name}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Text#1"/>
> <command type="modify" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Text#1">
> <![CDATA[ala]]>
> </command>
> <command type="focus" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Tree#2"/>
> </shell>
> </macro>
>
>
> Focus command works correctly.
> Following error appears on modify line:
>
> org.eclipse.core.runtime.CoreException
> Error while executing a macro command: MacroCommand [modify, line 21]
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.ModifyComma nd.playback(ModifyCommand.java:224)
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1160)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> Similar error appears for choice-select command.
> Is it any possibility to solve these problems?
>
> Regards,
> Artur
>
Re: Automated GUI Recorder ? Properties View problems [message #89615 is a reply to message #83361] Thu, 07 December 2006 14:56 Go to previous messageGo to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Hi All,

I would like to touch on this topic because my problem hasn't been
resolved.
Now, I'm using TPTP-4.3.0-200611160100D with Eclipse SDK 3.2.1.
I added described data element to my property shit and I modified
widgetReg.xml file.
Record process returned expected widget ID for text box on property sheet.
Following entry appears in recorded use case (line 16):
<command type="modify"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="{{Name}}-{{1.0}}">
<![CDATA[newName]]>
</command>

It is impossible to play this Test Case. Modify command error appears:
org.eclipse.core.runtime.CoreException

Error while executing a macro command: MacroCommand [modify, line 16]
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.tptp.test.auto.gui.internal.commands.ModifyComma nd.playback(ModifyCommand.java:224)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1160)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3143)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2845)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)



Is it any possibility to solve these problems?

Thanks in advance,
Artur
Re: Automated GUI Recorder ? Properties View problems [message #89627 is a reply to message #89615] Thu, 07 December 2006 15:17 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Since the focus command works in your scenario, you can use position-based
recording to do the modification:

1) Record a focus command on the text box
2) Enable position-based recording
3) Click the text box and perform the modification
4) Stop the macro and delete the mouse-clicks resulted from step 3)

Please open a defect if there are any ways of me reproducing the problem.

"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message
news:dfad1a52335f1bd29152a06b2c307e92$1@www.eclipse.org...
> Hi All,
>
> I would like to touch on this topic because my problem hasn't been
> resolved.
> Now, I'm using TPTP-4.3.0-200611160100D with Eclipse SDK 3.2.1.
> I added described data element to my property shit and I modified
> widgetReg.xml file.
> Record process returned expected widget ID for text box on property sheet.
> Following entry appears in recorded use case (line 16): <command
> type="modify" resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="{{Name}}-{{1.0}}">
> <![CDATA[newName]]>
> </command>
>
> It is impossible to play this Test Case. Modify command error appears:
> org.eclipse.core.runtime.CoreException
>
> Error while executing a macro command: MacroCommand [modify, line 16]
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.ModifyComma nd.playback(ModifyCommand.java:224)
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1160)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3143)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2845)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
>
>
> Is it any possibility to solve these problems?
>
> Thanks in advance,
> Artur
>
Re: Automated GUI Recorder ? Properties View problems [message #89995 is a reply to message #89627] Tue, 12 December 2006 14:27 Go to previous messageGo to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Focus command and position-based recording doesn't solve my problems.
I couldn't record focus command on the PropertySheet text box. Item-select
command is recorded by default.

Manually modified Test Case (focus command added and mouse-click removed):

<macro version="1.0">
<shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse
..." id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="My.test" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/My.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>
<command descriptive="My.test" type="default-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/My.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="A" type="item-select"
contextId="editor/test.presentation.TestEditorID/My.test"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.AImpl0|0||0|"/>
</command>
<command descriptive="Attr1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#2">
<item path="{{Attr1}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus" contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1">
</command>
<command type="key-press" detail="97" ischarset="true"/>
<command type="key-press" detail="98" ischarset="true"/>
<command type="key-press" detail="99" ischarset="true"/>
<command type="key-press" detail="13" ischarset="true"/>
</shell>
</macro>

Replayed Test Case doesn't changed property Attr1. No errors appears.



To reproduce my problem I prepare trivial test Ecore Model. It consists of
three classes, string attributes and references.

TestModel.ecore file:

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="test"
nsURI="test" nsPrefix="test">
<eClassifiers xsi:type="ecore:EClass" name="A">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attr1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ref1"
eType="#//B"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="B">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attr1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AB">
<eStructuralFeatures xsi:type="ecore:EReference" name="bs"
upperBound="-1" eType="#//B"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="as"
upperBound="-1" eType="#//A"
containment="true"/>
</eClassifiers>
</ecore:EPackage>


My exemplary scenario:
1. Import this Ecore model and generate EMF model in new EMF project.
2. Then Generate All code from genmodel file.
3. Launch this EMF project in separate Eclipse application.
4. Add this EMF Test Model from Example EMF Model Creation Wizards (Choose
AB as Model Object)
5. Prepare TPTP Automated GUI Test Suite
6. Tray to record and play some actions which operate on the Test Model

It is possible to record/play following actions:
- add new child/sibling to the model
- delete objects from the model
Attempt to replay Test Case with modify object properties in Properties
Tab fails.

Following Test Case adds child object A to the model and trays to change
its Attr1 property:

<macro version="1.0">
<shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse
..." id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="ForumModel.test" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>
<command descriptive="ForumModel.test" type="default-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
</command>
<command descriptive="AB" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.ABImpl0|0|"/>
</command>
<command descriptive="A" type="select"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId=" popup/editor/test.presentation.TestEditorID/ForumModel.test/ org.eclipse.swt.widgets.Tree#1 "
widgetId="{{New Child-A}}-{{1.0}}"/>
<command descriptive="AB" type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="test.impl.ABImpl0|0|"/>
</command>
<command descriptive="A" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.AImpl0|0||0|"/>
</command>
<command descriptive="Attr1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#3">
<item path="{{Attr1}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="modify"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1">
<![CDATA[abc]]>
</command>
</shell>
</macro>


Following error appears while running the macro:
org.eclipse.core.runtime.CoreException
Error while executing a macro command: MacroCommand [modify, line 26]
java.lang.ArrayIndexOutOfBoundsException: 0

Whole error log was attached in previous post.



I hope, my description is repeatable.

Thanks in advance,
Artur
Re: Automated GUI Recorder ? Properties View problems [message #90157 is a reply to message #89995] Wed, 13 December 2006 15:58 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Thank you Artur.
I've notified the new owner of the Auto GUI recoder, Liz Dancy, about this
problem. She will open a defect if she is able to reproduce the problem.


"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message
news:5cd07396b2c2a6bb039bca5ef56429fc$1@www.eclipse.org...
> Focus command and position-based recording doesn't solve my problems.
> I couldn't record focus command on the PropertySheet text box. Item-select
> command is recorded by default.
>
> Manually modified Test Case (focus command added and mouse-click removed):
>
> <macro version="1.0">
> <shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse .."
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command descriptive="My.test" type="item-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/My.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="org.eclipse.swt.widgets.Composite#1"/>
> <command descriptive="My.test" type="default-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/My.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive="A" type="item-select"
> contextId="editor/test.presentation.TestEditorID/My.test"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.AImpl0|0||0|"/>
> </command>
> <command descriptive="Attr1" type="item-select"
> contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Tree#2">
> <item path="{{Attr1}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Text#1">
> </command>
> <command type="key-press" detail="97" ischarset="true"/>
> <command type="key-press" detail="98" ischarset="true"/>
> <command type="key-press" detail="99" ischarset="true"/>
> <command type="key-press" detail="13" ischarset="true"/>
> </shell>
> </macro>
>
> Replayed Test Case doesn't changed property Attr1. No errors appears.
>
>
>
> To reproduce my problem I prepare trivial test Ecore Model. It consists of
> three classes, string attributes and references.
> TestModel.ecore file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="test"
> nsURI="test" nsPrefix="test">
> <eClassifiers xsi:type="ecore:EClass" name="A">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="attr1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="ref1"
> eType="#//B"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="B">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="attr1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="AB">
> <eStructuralFeatures xsi:type="ecore:EReference" name="bs"
> upperBound="-1" eType="#//B"
> containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="as"
> upperBound="-1" eType="#//A"
> containment="true"/>
> </eClassifiers>
> </ecore:EPackage>
>
>
> My exemplary scenario:
> 1. Import this Ecore model and generate EMF model in new EMF project. 2.
> Then Generate All code from genmodel file.
> 3. Launch this EMF project in separate Eclipse application.
> 4. Add this EMF Test Model from Example EMF Model Creation Wizards (Choose
> AB as Model Object)
> 5. Prepare TPTP Automated GUI Test Suite
> 6. Tray to record and play some actions which operate on the Test Model
>
> It is possible to record/play following actions:
> - add new child/sibling to the model
> - delete objects from the model
> Attempt to replay Test Case with modify object properties in Properties
> Tab fails.
>
> Following Test Case adds child object A to the model and trays to change
> its Attr1 property:
>
> <macro version="1.0">
> <shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse .."
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command descriptive="ForumModel.test" type="item-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="org.eclipse.swt.widgets.Composite#1"/>
> <command descriptive="ForumModel.test" type="default-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command
> descriptive="platform:/resource/TestContainer/model/ForumModel.... "
> type="item-expand"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
> </command>
> <command descriptive="AB" type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.ABImpl0|0|"/>
> </command>
> <command descriptive="A" type="select"
> resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
> contextId=" popup/editor/test.presentation.TestEditorID/ForumModel.test/ org.eclipse.swt.widgets.Tree#1 "
> widgetId="{{New Child-A}}-{{1.0}}"/>
> <command descriptive="AB" type="item-expand"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item path="test.impl.ABImpl0|0|"/>
> </command>
> <command descriptive="A" type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.AImpl0|0||0|"/>
> </command>
> <command descriptive="Attr1" type="item-select"
> contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Tree#3">
> <item path="{{Attr1}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="modify" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Text#1">
> <![CDATA[abc]]>
> </command>
> </shell>
> </macro>
>
>
> Following error appears while running the macro:
> org.eclipse.core.runtime.CoreException
> Error while executing a macro command: MacroCommand [modify, line 26]
> java.lang.ArrayIndexOutOfBoundsException: 0
>
> Whole error log was attached in previous post.
>
>
>
> I hope, my description is repeatable.
>
> Thanks in advance,
> Artur
>
Re: Automated GUI Recorder ? Properties View problems [message #90205 is a reply to message #90157] Wed, 13 December 2006 22:05 Go to previous messageGo to next message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_00AC_01C71ED8.ED9E9230
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Artur,

I have used your TestModel.ecore file to reproduce this problem and I =
ran into the same ArrayIndexOutofBoundsException while trying to play =
back a testcase which was making a modification to one of the property =
values in the Properties View. The good news is that the only case in =
which this failed was caused by the parent element having been already =
selected and expanded prior to recording. The solution is to always =
expand the parent item first and then select the child which you want to =
edit and modify it. Even in the case where the parent is already =
expanded, you can close the expansion and then re-expand the parent and =
the recording should play back successfully. In the case where there was =
no parent element to expand, my testcase played back successfully.=20

My workaround stems from a known issue and there was a defect opened to =
fix it. Please see: =
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D164197. The defect has =
been recently fixed and is not yet available in the latest driver.

Please let me know if this solves the problem you are seeing.

Sincerely,

Liz Dancy

"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message =
news:elp808$djv$1@utils.eclipse.org...
> Thank you Artur.
> I've notified the new owner of the Auto GUI recoder, Liz Dancy, about =
this=20
> problem. She will open a defect if she is able to reproduce the =
problem.
>=20
>=20
> "Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message=20
> news:5cd07396b2c2a6bb039bca5ef56429fc$1@www.eclipse.org...
>> Focus command and position-based recording doesn't solve my problems.
>> I couldn't record focus command on the PropertySheet text box. =
Item-select=20
>> command is recorded by default.
>>
>> Manually modified Test Case (focus command added and mouse-click =
removed):
>>
>> <macro version=3D"1.0">
>> <shell descriptive=3D"Plug-in Development - AutomatedGUISuite - =
Eclipse .."=20
>> id=3D"org.eclipse.ui.internal.WorkbenchWindow" return-code=3D"-1">
>> <command descriptive=3D"My.test" type=3D"item-select"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"{{/}}-{{1.0}}">
>> <item path=3D"{{/TestContainer/model/My.test}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command type=3D"focus" =
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"org.eclipse.swt.widgets.Composite#1"/>
>> <command descriptive=3D"My.test" type=3D"default-select"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"{{/}}-{{1.0}}">
>> <item path=3D"{{/TestContainer/model/My.test}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command descriptive=3D"A" type=3D"item-select"=20
>> contextId=3D"editor/test.presentation.TestEditorID/My.test"=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
>> <item path=3D"test.impl.AImpl0|0||0|"/>
>> </command>
>> <command descriptive=3D"Attr1" type=3D"item-select"=20
>> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#2">
>> <item path=3D"{{Attr1}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command type=3D"focus" =
contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
>> widgetId=3D"org.eclipse.swt.widgets.Text#1">
>> </command>
>> <command type=3D"key-press" detail=3D"97" ischarset=3D"true"/>
>> <command type=3D"key-press" detail=3D"98" ischarset=3D"true"/>
>> <command type=3D"key-press" detail=3D"99" ischarset=3D"true"/>
>> <command type=3D"key-press" detail=3D"13" ischarset=3D"true"/>
>> </shell>
>> </macro>
>>
>> Replayed Test Case doesn't changed property Attr1. No errors appears.
>>
>>
>>
>> To reproduce my problem I prepare trivial test Ecore Model. It =
consists of=20
>> three classes, string attributes and references.
>> TestModel.ecore file:
>>
>> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
>> <ecore:EPackage xmi:version=3D"2.0"
>> xmlns:xmi=3D"http://www.omg.org/XMI"=20
>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" =
name=3D"test"
>> nsURI=3D"test" nsPrefix=3D"test">
>> <eClassifiers xsi:type=3D"ecore:EClass" name=3D"A">
>> <eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"attr1"=20
>> eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"ref1"=20
>> eType=3D"#//B"/>
>> </eClassifiers>
>> <eClassifiers xsi:type=3D"ecore:EClass" name=3D"B">
>> <eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"attr1"=20
>> eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> </eClassifiers>
>> <eClassifiers xsi:type=3D"ecore:EClass" name=3D"AB">
>> <eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"bs"=20
>> upperBound=3D"-1" eType=3D"#//B"
>> containment=3D"true"/>
>> <eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"as"=20
>> upperBound=3D"-1" eType=3D"#//A"
>> containment=3D"true"/>
>> </eClassifiers>
>> </ecore:EPackage>
>>
>>
>> My exemplary scenario:
>> 1. Import this Ecore model and generate EMF model in new EMF project. =
2.=20
>> Then Generate All code from genmodel file.
>> 3. Launch this EMF project in separate Eclipse application.
>> 4. Add this EMF Test Model from Example EMF Model Creation Wizards =
(Choose=20
>> AB as Model Object)
>> 5. Prepare TPTP Automated GUI Test Suite
>> 6. Tray to record and play some actions which operate on the Test =
Model
>>
>> It is possible to record/play following actions:
>> - add new child/sibling to the model
>> - delete objects from the model
>> Attempt to replay Test Case with modify object properties in =
Properties=20
>> Tab fails.
>>
>> Following Test Case adds child object A to the model and trays to =
change=20
>> its Attr1 property:
>>
>> <macro version=3D"1.0">
>> <shell descriptive=3D"Plug-in Development - AutomatedGUISuite - =
Eclipse .."=20
>> id=3D"org.eclipse.ui.internal.WorkbenchWindow" return-code=3D"-1">
>> <command descriptive=3D"ForumModel.test" type=3D"item-select"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"{{/}}-{{1.0}}">
>> <item path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command type=3D"focus" =
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"org.eclipse.swt.widgets.Composite#1"/>
>> <command descriptive=3D"ForumModel.test" type=3D"default-select"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
>> widgetId=3D"{{/}}-{{1.0}}">
>> <item path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command=20
>> descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =

>> type=3D"item-expand"=20
>> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
>> <item path=3D"org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
>> </command>
>> <command descriptive=3D"AB" type=3D"item-select"=20
>> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
>> <item path=3D"test.impl.ABImpl0|0|"/>
>> </command>
>> <command descriptive=3D"A" type=3D"select"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"=20
>> =
contextId=3D" popup/editor/test.presentation.TestEditorID/ForumModel.test/ =
org.eclipse.swt.widgets.Tree#1"=20
>> widgetId=3D"{{New Child-A}}-{{1.0}}"/>
>> <command descriptive=3D"AB" type=3D"item-expand"=20
>> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
>> <item path=3D"test.impl.ABImpl0|0|"/>
>> </command>
>> <command descriptive=3D"A" type=3D"item-select"=20
>> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
>> <item path=3D"test.impl.AImpl0|0||0|"/>
>> </command>
>> <command descriptive=3D"Attr1" type=3D"item-select"=20
>> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
>> widgetId=3D"org.eclipse.swt.widgets.Tree#3">
>> <item path=3D"{{Attr1}}-{{1.0}}"=20
>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
>> </command>
>> <command type=3D"modify" =
contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
>> widgetId=3D"org.eclipse.swt.widgets.Text#1">
>> <![CDATA[abc]]>
>> </command>
>> </shell>
>> </macro>
>>
>>
>> Following error appears while running the macro:
>> org.eclipse.core.runtime.CoreException
>> Error while executing a macro command: MacroCommand [modify, line 26]
>> java.lang.ArrayIndexOutOfBoundsException: 0
>>
>> Whole error log was attached in previous post.
>>
>>
>>
>> I hope, my description is repeatable.
>>
>> Thanks in advance,
>> Artur
>>=20
>=20
>
------=_NextPart_000_00AC_01C71ED8.ED9E9230
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2995" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi Artur,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have used your <FONT face=3D"Times =
New Roman"=20
size=3D3>TestModel.ecore</FONT> file&nbsp;to reproduce this problem =
and&nbsp;I ran=20
into the same ArrayIndexOutofBoundsException while trying to play back a =

testcase which was making a modification to one of the&nbsp;property=20
values&nbsp;in the Properties View. The good news is that the only case =
in which=20
this failed was caused by the parent element having been already =
selected and=20
expanded&nbsp;prior to&nbsp;recording. The solution&nbsp;is to always =
expand the=20
parent item first and then select the child which you want to edit and =
modify=20
it. Even in the case where the parent is already expanded, you can close =
the=20
expansion and then re-expand the parent&nbsp;and&nbsp;the recording =
should play=20
back successfully. In the case where there&nbsp;was no parent element to =
expand,=20
my testcase played back successfully.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My workaround stems from a known issue =
and there=20
was a defect opened to fix it. Please see: <A=20
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D164197">https://b=
ugs.eclipse.org/bugs/show_bug.cgi?id=3D164197</A>.&nbsp;The=20
defect&nbsp;has been recently fixed and is not yet available in the =
latest=20
driver.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please let me know if this solves the =
problem you=20
are seeing.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Sincerely,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Liz Dancy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Ali Mehregani" &lt;</FONT><A=20
href=3D"mailto:amehrega@ca.ibm.com"><FONT face=3DArial=20
size=3D2>amehrega@ca.ibm.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A href=3D"news:elp808$djv$1@utils.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:elp808$djv$1@utils.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Thank you =
Artur.<BR>&gt;=20
I've notified the new owner of the Auto GUI recoder, Liz Dancy, about =
this=20
<BR>&gt; problem.&nbsp; She will open a defect if she is able to =
reproduce the=20
problem.<BR>&gt; <BR>&gt; <BR>&gt; "Artur Grzeczu" &lt;</FONT><A=20
href=3D"mailto:c_arturg@s3group.com.pl"><FONT face=3DArial=20
size=3D2>c_arturg@s3group.com.pl</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message <BR>&gt; </FONT><A=20
href=3D"news:5cd07396b2c2a6bb039bca5ef56429fc$1@www.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:5cd07396b2c2a6bb039bca5ef56429fc$1@www.eclipse.org</FONT></=
A><FONT=20
face=3DArial size=3D2>...<BR>&gt;&gt; Focus command and position-based =
recording=20
doesn't solve my problems.<BR>&gt;&gt; I couldn't record focus command =
on the=20
PropertySheet text box. Item-select <BR>&gt;&gt; command is recorded by=20
default.<BR>&gt;&gt;<BR>&gt;&gt; Manually modified Test Case (focus =
command=20
added and mouse-click removed):<BR>&gt;&gt;<BR>&gt;&gt; &lt;macro=20
version=3D"1.0"&gt;<BR>&gt;&gt; &lt;shell descriptive=3D"Plug-in =
Development -=20
AutomatedGUISuite - Eclipse .." <BR>&gt;&gt;=20
id=3D"org.eclipse.ui.internal.WorkbenchWindow" =
return-code=3D"-1"&gt;<BR>&gt;&gt;=20
&lt;command descriptive=3D"My.test" type=3D"item-select" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{/TestContainer/model/My.test}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command type=3D"focus"=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/&gt;<BR >&gt;&gt; =
&lt;command=20
descriptive=3D"My.test" type=3D"default-select" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{/TestContainer/model/My.test}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command descriptive=3D"A" =
type=3D"item-select"=20
<BR>&gt;&gt; contextId=3D"editor/test.presentation.TestEditorID/My.test" =

<BR>&gt;&gt; widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt;&gt; =
&lt;item=20
path=3D"test.impl.AImpl0|0||0|"/&gt;<BR>&gt;&gt; =
&lt;/command&gt;<BR>&gt;&gt;=20
&lt;command descriptive=3D"Attr1" type=3D"item-select" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command type=3D"focus"=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"&gt;<BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command type=3D"key-press" =
detail=3D"97"=20
ischarset=3D"true"/&gt;<BR>&gt;&gt; &lt;command type=3D"key-press" =
detail=3D"98"=20
ischarset=3D"true"/&gt;<BR>&gt;&gt; &lt;command type=3D"key-press" =
detail=3D"99"=20
ischarset=3D"true"/&gt;<BR>&gt;&gt; &lt;command type=3D"key-press" =
detail=3D"13"=20
ischarset=3D"true"/&gt;<BR>&gt;&gt; &lt;/shell&gt;<BR>&gt;&gt;=20
&lt;/macro&gt;<BR>&gt;&gt;<BR>&gt;&gt; Replayed Test Case doesn't =
changed=20
property Attr1. No errors=20
appears.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; <BR>&gt;&gt; To reproduce my =
problem=20
I prepare trivial test Ecore Model. It consists of <BR>&gt;&gt; three =
classes,=20
string attributes and references.<BR>&gt;&gt; TestModel.ecore=20
file:<BR>&gt;&gt;<BR>&gt;&gt; &lt;?xml version=3D"1.0"=20
encoding=3D"UTF-8"?&gt;<BR>&gt;&gt; &lt;ecore:EPackage=20
xmi:version=3D"2.0"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; xmlns:xmi=3D"</FONT><A =

href=3D"http://www.omg.org/XMI"><FONT face=3DArial=20
size=3D2>http://www.omg.org/XMI</FONT></A><FONT face=3DArial size=3D2>" =
<BR>&gt;&gt;=20
xmlns:xsi=3D"</FONT><A =
href=3D"http://www.w3.org/2001/XMLSchema-instance"><FONT=20
face=3DArial =
size=3D2>http://www.w3.org/2001/XMLSchema-instance</FONT></A><FONT=20
face=3DArial size=3D2>"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; =
xmlns:ecore=3D"</FONT><A=20
href=3D"http://www.eclipse.org/emf/2002/Ecore"><FONT face=3DArial=20
size=3D2>http://www.eclipse.org/emf/2002/Ecore</FONT></A><FONT =
face=3DArial size=3D2>"=20
name=3D"test"<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; nsURI=3D"test"=20
nsPrefix=3D"test"&gt;<BR>&gt;&gt;&nbsp; &lt;eClassifiers =
xsi:type=3D"ecore:EClass"=20
name=3D"A"&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;eStructuralFeatures=20
xsi:type=3D"ecore:EAttribute" name=3D"attr1" <BR>&gt;&gt; =
eType=3D"ecore:EDataType=20
</FONT><A =
href=3D'http://www.eclipse.org/emf/2002/Ecore#//EString"/'><FONT=20
face=3DArial=20
size=3D2>http://www.eclipse.org/emf/2002/Ecore#//EString"/</FONT></A><FON=
T=20
face=3DArial size=3D2>&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; =
&lt;eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"ref1" <BR>&gt;&gt;=20
eType=3D"#//B"/&gt;<BR>&gt;&gt;&nbsp; =
&lt;/eClassifiers&gt;<BR>&gt;&gt;&nbsp;=20
&lt;eClassifiers xsi:type=3D"ecore:EClass"=20
name=3D"B"&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;eStructuralFeatures=20
xsi:type=3D"ecore:EAttribute" name=3D"attr1" <BR>&gt;&gt; =
eType=3D"ecore:EDataType=20
</FONT><A =
href=3D'http://www.eclipse.org/emf/2002/Ecore#//EString"/'><FONT=20
face=3DArial=20
size=3D2>http://www.eclipse.org/emf/2002/Ecore#//EString"/</FONT></A><FON=
T=20
face=3DArial size=3D2>&gt;<BR>&gt;&gt;&nbsp; =
&lt;/eClassifiers&gt;<BR>&gt;&gt;&nbsp;=20
&lt;eClassifiers xsi:type=3D"ecore:EClass"=20
name=3D"AB"&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; &lt;eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"bs" <BR>&gt;&gt; upperBound=3D"-1" =

eType=3D"#//B"<BR> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;=20
containment=3D"true"/&gt;<BR>&gt;&gt;&nbsp;&nbsp;&nbsp; =
&lt;eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"as" <BR>&gt;&gt; upperBound=3D"-1" =

eType=3D"#//A"<BR> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;& ;nbsp;&nbsp;&nbsp;=20
containment=3D"true"/&gt;<BR>&gt;&gt;&nbsp; =
&lt;/eClassifiers&gt;<BR>&gt;&gt;=20
&lt;/ecore:EPackage&gt;<BR>&gt;&gt;<BR>&gt;&gt; <BR>&gt;&gt; My exemplary =

scenario:<BR>&gt;&gt; 1. Import this Ecore model and generate EMF model =
in new=20
EMF project. 2. <BR>&gt;&gt; Then Generate All code from genmodel=20
file.<BR>&gt;&gt; 3. Launch this EMF project in separate Eclipse=20
application.<BR>&gt;&gt; 4. Add this EMF Test Model from Example EMF =
Model=20
Creation Wizards (Choose <BR>&gt;&gt; AB as Model Object)<BR>&gt;&gt; 5. =
Prepare=20
TPTP Automated GUI Test Suite<BR>&gt;&gt; 6. Tray to record and play =
some=20
actions which operate on the Test Model<BR>&gt;&gt;<BR>&gt;&gt; It is =
possible=20
to record/play following actions:<BR>&gt;&gt; - add new child/sibling to =
the=20
model<BR>&gt;&gt; - delete objects from the model<BR>&gt;&gt; Attempt to =
replay=20
Test Case with modify object properties in Properties <BR>&gt;&gt; Tab=20
fails.<BR>&gt;&gt;<BR>&gt;&gt; Following Test Case adds child object A =
to the=20
model and trays to change <BR>&gt;&gt; its Attr1=20
property:<BR>&gt;&gt;<BR>&gt;&gt; &lt;macro =
version=3D"1.0"&gt;<BR>&gt;&gt;=20
&lt;shell descriptive=3D"Plug-in Development - AutomatedGUISuite - =
Eclipse .."=20
<BR>&gt;&gt; id=3D"org.eclipse.ui.internal.WorkbenchWindow"=20
return-code=3D"-1"&gt;<BR>&gt;&gt; &lt;command =
descriptive=3D"ForumModel.test"=20
type=3D"item-select" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command type=3D"focus"=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/&gt;<BR >&gt;&gt; =
&lt;command=20
descriptive=3D"ForumModel.test" type=3D"default-select" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command <BR>&gt;&gt;=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>&gt;&gt;=20
type=3D"item-expand" <BR>&gt;&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/&gt; <BR>&gt;&gt;=
=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command descriptive=3D"AB" =
type=3D"item-select"=20
<BR>&gt;&gt; =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>&gt;&gt; widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt;&gt; =
&lt;item=20
path=3D"test.impl.ABImpl0|0|"/&gt;<BR>&gt;&gt; =
&lt;/command&gt;<BR>&gt;&gt;=20
&lt;command descriptive=3D"A" type=3D"select" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial" <BR>&gt;&gt;=20
contextId=3D" popup/editor/test.presentation.TestEditorID/ForumModel.test/ =
org.eclipse.swt.widgets.Tree#1"=20
<BR>&gt;&gt; widgetId=3D"{{New Child-A}}-{{1.0}}"/&gt;<BR>&gt;&gt; =
&lt;command=20
descriptive=3D"AB" type=3D"item-expand" <BR>&gt;&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"test.impl.ABImpl0|0|"/&gt;<BR>&gt;&gt; =
&lt;/command&gt;<BR>&gt;&gt;=20
&lt;command descriptive=3D"A" type=3D"item-select" <BR>&gt;&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"test.impl.AImpl0|0||0|"/&gt;<BR>&gt;&gt; =
&lt;/command&gt;<BR>&gt;&gt;=20
&lt;command descriptive=3D"Attr1" type=3D"item-select" <BR>&gt;&gt;=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#3"&gt;<BR>&gt;&gt; &lt;item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>&gt;&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;&gt;=20
&lt;/command&gt;<BR>&gt;&gt; &lt;command type=3D"modify"=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"&gt;<BR>&gt;&gt;=20
&lt;![CDATA[abc]]&gt;<BR>&gt;&gt; &lt;/command&gt;<BR>&gt;&gt;=20
&lt;/shell&gt;<BR>&gt;&gt; =
&lt;/macro&gt;<BR>&gt;&gt;<BR>&gt;&gt; <BR>&gt;&gt;=20
Following error appears while running the macro:<BR>&gt;&gt;=20
org.eclipse.core.runtime.CoreException<BR>&gt;&gt; Error while executing =
a macro=20
command: MacroCommand [modify, line 26]<BR>&gt;&gt;=20
java.lang.ArrayIndexOutOfBoundsException: 0<BR>&gt;&gt;<BR>&gt;&gt; =
Whole error=20
log was attached in previous=20
post.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; <BR>&gt;&gt; I hope, my =
description is=20
repeatable.<BR>&gt;&gt;<BR>&gt;&gt; Thanks in advance,<BR>&gt;&gt;=20
Artur<BR>&gt;&gt; <BR>&gt; <BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_00AC_01C71ED8.ED9E9230--
Re: Automated GUI Recorder ? Properties View problems [message #90251 is a reply to message #90205] Thu, 14 December 2006 10:25 Go to previous messageGo to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Liz,

Thank you for the response.
I tried to follow your solution, but it doesn't solve the problem.
I recorded following actions:

1.Expand TestModel tree
2.Expand parent object AB (main object of the test model)
3.Select child item A
4.Select one of the property value in properties tab
5.Modify its value


Recorded macro:

<macro version="1.0">
<shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse
..." id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="ForumModel.test" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>
<command descriptive="ForumModel.test" type="default-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
</command>
<command descriptive="AB" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.ABImpl0|0|"/>
</command>
<command descriptive="AB" type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item path="test.impl.ABImpl0|0|"/>
</command>
<command descriptive="A" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.AImpl0|0||1|"/>
</command>
<command descriptive="Attr1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#3">
<item path="{{Attr1}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="modify"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1">
<![CDATA[abcd]]>
</command>
<command descriptive="A abcd" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="test.impl.AImpl0|0||1|"/>
</command>
<command type="focus"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Composite#1"/>
</shell>
</macro>


The same error appears while running modify command:
Error while executing a macro command: MacroCommand [modify, line 28]
java.lang.ArrayIndexOutOfBoundsException: 0


Attempts to close the expansion and re-expand the parent object generate
the same exception.


I'm using:
- Eclipse SDK Version: 3.2.1 Build id: M20060921-0945
- TPTP pack: tptp.sdk-TPTP-4.3.0-200611160100D.zip
- AGR pack: org.eclipse.tptp.test.auto-TPTP-4.3.0-200611160100.zip



Thanks in advance,
Artur
Re: Automated GUI Recorder ? Properties View problems [message #90357 is a reply to message #90251] Thu, 14 December 2006 17:51 Go to previous messageGo to next message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
Hi Artur,

I am able to run the recording described in your last post. However, I do
see the ArrayIndexOutofBounds when I am not selecting and then expanding
each item in the Tree (model Tree). Also, I found it necessary to select the
Property Name in the Properties Tab and then make the modification to the
Value.

To debug what is happening for you, I would try ensuring that all of your
commands up to the modify are being played back correctly by inserting
verification hooks to verify each selection. Also, ensure that if you are
playing back in Quick Mode, you 'reset' the Model Tree each time so it is
not expanded before the playback (including all children). This will rule
out the error being caused by a previous selection/expansion not being
correctly played. You may also wish to insert wait commands so that you can
see the playback more clearly.

Please let me know your findings.

Sincerely,

Liz Dancy
"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message
news:05010273481779980b6e0239c9bf357b$1@www.eclipse.org...
> Hi Liz,
>
> Thank you for the response.
> I tried to follow your solution, but it doesn't solve the problem.
> I recorded following actions:
>
> 1.Expand TestModel tree
> 2.Expand parent object AB (main object of the test model)
> 3.Select child item A
> 4.Select one of the property value in properties tab
> 5.Modify its value
>
>
> Recorded macro:
>
> <macro version="1.0">
> <shell descriptive="Plug-in Development - AutomatedGUISuite - Eclipse .."
> id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
> <command descriptive="ForumModel.test" type="item-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="focus" contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="org.eclipse.swt.widgets.Composite#1"/>
> <command descriptive="ForumModel.test" type="default-select"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
> contextId="view/org.eclipse.jdt.ui.PackageExplorer"
> widgetId="{{/}}-{{1.0}}">
> <item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command
> descriptive="platform:/resource/TestContainer/model/ForumModel.... "
> type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
> </command>
> <command
> descriptive="platform:/resource/TestContainer/model/ForumModel.... "
> type="item-expand"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item path="org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/>
> </command>
> <command descriptive="AB" type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.ABImpl0|0|"/>
> </command>
> <command descriptive="AB" type="item-expand"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item path="test.impl.ABImpl0|0|"/>
> </command>
> <command descriptive="A" type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.AImpl0|0||1|"/>
> </command>
> <command descriptive="Attr1" type="item-select"
> contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Tree#3">
> <item path="{{Attr1}}-{{1.0}}"
> resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type="modify" contextId="view/org.eclipse.ui.views.PropertySheet"
> widgetId="org.eclipse.swt.widgets.Text#1">
> <![CDATA[abcd]]>
> </command>
> <command descriptive="A abcd" type="item-select"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="test.impl.AImpl0|0||1|"/>
> </command>
> <command type="focus"
> contextId="editor/test.presentation.TestEditorID/ForumModel.test "
> widgetId="org.eclipse.swt.widgets.Composite#1"/>
> </shell>
> </macro>
>
>
> The same error appears while running modify command:
> Error while executing a macro command: MacroCommand [modify, line 28]
> java.lang.ArrayIndexOutOfBoundsException: 0
>
>
> Attempts to close the expansion and re-expand the parent object generate
> the same exception.
>
>
> I'm using:
> - Eclipse SDK Version: 3.2.1 Build id: M20060921-0945
> - TPTP pack: tptp.sdk-TPTP-4.3.0-200611160100D.zip
> - AGR pack: org.eclipse.tptp.test.auto-TPTP-4.3.0-200611160100.zip
>
>
>
> Thanks in advance,
> Artur
>
Re: Automated GUI Recorder ? Properties View problems [message #90968 is a reply to message #90357] Fri, 05 January 2007 15:33 Go to previous messageGo to next message
Artur Grzeczu is currently offline Artur GrzeczuFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Liz,

I am still unable to playback Property modification in Property Tab.
ArrayIndexOutOfBoundsException still appears.
I followed all yours advices:
- item selection before expanding
- Property Name selection before its modification,
- verification hooks inserted before modify command
- 'reset' Model Tree - Test Case always opens model at the beginning
- wait command has no influence on my problem.

Now, I am using latest org.eclipse.tptp.test.auto.gui version available on
CVS (v200701020622). Only AutoGUITestSuiteDialog.java file comes from
v200612131105.
Eclipse SDK (Version: 3.2.1 Build id: M20060921-0945) runs on Linux x86
platform.


According to yours advices following Test Case was recorded:

<macro version="1.0">
<shell descriptive="Java - AutomatedGUISuite - Eclipse SDK"
id="org.eclipse.ui.internal.WorkbenchWindow" return-code="-1">
<command descriptive="model" type="item-expand"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}" value="true">
<item path="{{/TestContainer/model}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="TestContainer" type="item-expand"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}" value="true">
<item path="{{/TestContainer}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="ForumModel.test" type="item-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="focus"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="org.eclipse.swt.widgets.Composite#1"/>
<command descriptive="model" type="item-expand"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}" value="true">
<item path="{{/TestContainer/model}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="TestContainer" type="item-expand"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}" value="true">
<item path="{{/TestContainer}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command descriptive="ForumModel.test" type="default-select"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"
contextId="view/org.eclipse.jdt.ui.PackageExplorer"
widgetId="{{/}}-{{1.0}}">
<item path="{{/TestContainer/model/ForumModel.test}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command descriptive="AB" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command type="verification"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
location="/TestContainer/src"
resource="org.eclipse.tests.verification.hooks.VerificationClass "
hook="ABselF:Qorg.eclipse.ui.IEditorPart;"/>
<command type="wait"/>
<command descriptive="AB" type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command type="verification"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
location="/TestContainer/src"
resource="org.eclipse.tests.verification.hooks.VerificationClass "
hook="ABexpandF:Qorg.eclipse.ui.IEditorPart;"/>
<command type="wait"/>
<command descriptive="AB" type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command
descriptive="platform:/resource/TestContainer/model/ForumModel.... "
type="item-expand"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command descriptive="A" type="item-select"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path=" {{platform:/resource/TestContainer/model/ForumModel.test-AB- A}}-{{1.0}} "
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"/>
</command>
<command type="verification"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
location="/TestContainer/src"
resource="org.eclipse.tests.verification.hooks.VerificationClass "
hook="AselF:Qorg.eclipse.ui.IEditorPart;"/>
<command type="wait"/>
<command descriptive="Attr1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#2">
<item path="{{Attr1}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="verification"
contextId="view/org.eclipse.ui.views.PropertySheet"
location="/TestContainer/src"
resource="org.eclipse.tests.verification.hooks.VerificationClass "
hook="Attr1selF:Qorg.eclipse.ui.IViewPart;"/>
<command type="wait"/>
<command type="modify"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Text#1">
<![CDATA[abcd]]>
</command>
<command descriptive="Attr1" type="item-select"
contextId="view/org.eclipse.ui.views.PropertySheet"
widgetId="org.eclipse.swt.widgets.Tree#2">
<item path="{{Attr1}}-{{1.0}}"
resolverId="org.eclipse.tptp.test.auto.gui.adaptive"/>
</command>
<command type="verification"
contextId="editor/test.presentation.TestEditorID/ForumModel.test "
location="/TestContainer/src"
resource="org.eclipse.tests.verification.hooks.VerificationClass "
hook="Attr1modF:Qorg.eclipse.ui.IEditorPart;"/>
</shell>
</macro>


Macro was recorded on test model previously attached.

Verification hooks inform about successfully execution:
- AB selection,
- AB expanding,
- A selection,
- Attr1 selection.

And then Exception appears:
org.eclipse.core.runtime.CoreException
Error while executing a macro command: MacroCommand [modify, line 57]
java.lang.ArrayIndexOutOfBoundsException: 0


Could you find out what is wrong?


Thanks in advance,

Artur
Re: Automated GUI Recorder ? Properties View problems [message #91207 is a reply to message #90968] Fri, 12 January 2007 22:16 Go to previous message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_004F_01C7366D.6BE6A000
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Hi Artur,

I started running into your problem consistently while trying to =
reproduce your exact steps. However, I spent some time comparing the =
results I was getting with those from my testing before my last post to =
decipher what sequence of actions would allow successful playback.

I found that in order to record the property modification you need to =
double click the property name and then begin editing (typing). It =
seems selecting the value field and then editing is what was causing my =
test case failures today. This is because the double-click sends a =
default-select command and the single click sends an item-select command =
which seems to not be allowing editing. I have opened the following =
defect to address this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D170371

Please feel free to add yourself to the CC list to track its progress.
In the mean time, ensure you are double-clicking the property (check the =
macro for a default-select) and this should solve your problem. Please =
let me know if you have further questions.

Sincerely,

Liz Dancy

"Artur Grzeczu" <c_arturg@s3group.com.pl> wrote in message =
news:537e7099388854b6960b2d358b54b8e3$1@www.eclipse.org...
> Hi Liz,
>=20
> I am still unable to playback Property modification in Property Tab.
> ArrayIndexOutOfBoundsException still appears.
> I followed all yours advices:
> - item selection before expanding
> - Property Name selection before its modification,
> - verification hooks inserted before modify command
> - 'reset' Model Tree - Test Case always opens model at the beginning
> - wait command has no influence on my problem.
>=20
> Now, I am using latest org.eclipse.tptp.test.auto.gui version =
available on=20
> CVS (v200701020622). Only AutoGUITestSuiteDialog.java file comes from =

> v200612131105.
> Eclipse SDK (Version: 3.2.1 Build id: M20060921-0945) runs on Linux =
x86=20
> platform.
>=20
>=20
> According to yours advices following Test Case was recorded:
>=20
> <macro version=3D"1.0">
> <shell descriptive=3D"Java - AutomatedGUISuite - Eclipse SDK"=20
> id=3D"org.eclipse.ui.internal.WorkbenchWindow" return-code=3D"-1">
> <command descriptive=3D"model" type=3D"item-expand"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}" value=3D"true">
> <item path=3D"{{/TestContainer/model}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive=3D"TestContainer" type=3D"item-expand"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}" value=3D"true">
> <item path=3D"{{/TestContainer}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive=3D"ForumModel.test" type=3D"item-select"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}">
> <item path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type=3D"focus"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"org.eclipse.swt.widgets.Composite#1"/>
> <command descriptive=3D"model" type=3D"item-expand"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}" value=3D"true">
> <item path=3D"{{/TestContainer/model}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive=3D"TestContainer" type=3D"item-expand"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}" value=3D"true">
> <item path=3D"{{/TestContainer}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command descriptive=3D"ForumModel.test" type=3D"default-select"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer"=20
> widgetId=3D"{{/}}-{{1.0}}">
> <item path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command=20
> descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... "=20
> type=3D"item-select"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command=20
> descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... "=20
> type=3D"item-expand"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command=20
> descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... "=20
> type=3D"item-expand"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command descriptive=3D"AB" type=3D"item-select"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command type=3D"verification"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> location=3D"/TestContainer/src"=20
> resource=3D"org.eclipse.tests.verification.hooks.VerificationClass "=20
> hook=3D"ABselF:Qorg.eclipse.ui.IEditorPart;"/>
> <command type=3D"wait"/>
> <command descriptive=3D"AB" type=3D"item-expand"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command type=3D"verification"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> location=3D"/TestContainer/src"=20
> resource=3D"org.eclipse.tests.verification.hooks.VerificationClass "=20
> hook=3D"ABexpandF:Qorg.eclipse.ui.IEditorPart;"/>
> <command type=3D"wait"/>
> <command descriptive=3D"AB" type=3D"item-expand"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command=20
> descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... "=20
> type=3D"item-expand"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command descriptive=3D"A" type=3D"item-select"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#1">
> <item=20
> =
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB- A}}-{=
{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/>
> </command>
> <command type=3D"verification"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> location=3D"/TestContainer/src"=20
> resource=3D"org.eclipse.tests.verification.hooks.VerificationClass "=20
> hook=3D"AselF:Qorg.eclipse.ui.IEditorPart;"/>
> <command type=3D"wait"/>
> <command descriptive=3D"Attr1" type=3D"item-select"=20
> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#2">
> <item path=3D"{{Attr1}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type=3D"verification"=20
> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
> location=3D"/TestContainer/src"=20
> resource=3D"org.eclipse.tests.verification.hooks.VerificationClass "=20
> hook=3D"Attr1selF:Qorg.eclipse.ui.IViewPart;"/>
> <command type=3D"wait"/>
> <command type=3D"modify"=20
> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
> widgetId=3D"org.eclipse.swt.widgets.Text#1">
> <![CDATA[abcd]]>
> </command>
> <command descriptive=3D"Attr1" type=3D"item-select"=20
> contextId=3D"view/org.eclipse.ui.views.PropertySheet"=20
> widgetId=3D"org.eclipse.swt.widgets.Tree#2">
> <item path=3D"{{Attr1}}-{{1.0}}"=20
> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/>
> </command>
> <command type=3D"verification"=20
> contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
> location=3D"/TestContainer/src"=20
> resource=3D"org.eclipse.tests.verification.hooks.VerificationClass "=20
> hook=3D"Attr1modF:Qorg.eclipse.ui.IEditorPart;"/>
> </shell>
> </macro>
>=20
>=20
> Macro was recorded on test model previously attached.
>=20
> Verification hooks inform about successfully execution:=20
> - AB selection,
> - AB expanding,
> - A selection,
> - Attr1 selection.
>=20
> And then Exception appears:=20
> org.eclipse.core.runtime.CoreException
> Error while executing a macro command: MacroCommand [modify, line 57]
> java.lang.ArrayIndexOutOfBoundsException: 0
>=20
>=20
> Could you find out what is wrong?
>=20
>=20
> Thanks in advance,
>=20
> Artur
>
------=_NextPart_000_004F_01C7366D.6BE6A000
Content-Type: text/html;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-15">
<META content=3D"MSHTML 6.00.2900.3020" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi Artur,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I started running into your problem =
consistently=20
while trying to reproduce your exact steps. However, I spent some time =
comparing=20
the results I was getting with those from my testing before my last post =
to=20
decipher what sequence of actions would allow successful =
playback.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I found that in order to record the =
property=20
modification you need to double click the property name and then begin =
editing=20
(typing).&nbsp; It seems selecting the&nbsp;value field and then editing =
is what=20
was causing my test case failures today.&nbsp; This is because the =
double-click=20
sends a default-select command and the single click sends an item-select =
command=20
which seems to not&nbsp;be allowing editing. I have opened the following =
defect=20
to address this:</FONT></DIV>
<DIV><A =
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D170371"><FONT=20
face=3DArial=20
size=3D2>https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D170371</FONT></A=
></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please feel free to&nbsp;add yourself =
to the CC=20
list to track its progress.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In the mean time, ensure you are =
double-clicking=20
the property (check the macro for a default-select) and this should =
solve your=20
problem. Please let me know if you have further questions.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Sincerely,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Liz Dancy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Artur Grzeczu" &lt;</FONT><A=20
href=3D"mailto:c_arturg@s3group.com.pl"><FONT face=3DArial=20
size=3D2>c_arturg@s3group.com.pl</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A=20
href=3D"news:537e7099388854b6960b2d358b54b8e3$1@www.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:537e7099388854b6960b2d358b54b8e3$1@www.eclipse.org</FONT></=
A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
Hi Liz,<BR>&gt;=20
<BR>&gt; I am still unable to playback Property modification in Property =

Tab.<BR>&gt; ArrayIndexOutOfBoundsException still appears.<BR>&gt; I =
followed=20
all yours advices:<BR>&gt; - item selection before expanding<BR>&gt; - =
Property=20
Name selection before its modification,<BR>&gt; - verification hooks =
inserted=20
before modify command<BR>&gt; - 'reset' Model Tree - Test Case always =
opens=20
model at the beginning<BR>&gt; - wait command has no influence on my=20
problem.<BR>&gt; <BR>&gt; Now, I am using latest =
org.eclipse.tptp.test.auto.gui=20
version available on <BR>&gt; CVS (v200701020622). Only=20
AutoGUITestSuiteDialog.java file comes from&nbsp; <BR>&gt;=20
v200612131105.<BR>&gt; Eclipse SDK (Version: 3.2.1 Build id: =
M20060921-0945)=20
runs on Linux x86 <BR>&gt; platform.<BR>&gt; <BR>&gt; <BR>&gt; According =
to=20
yours advices following Test Case was recorded:<BR>&gt; <BR>&gt; =
&lt;macro=20
version=3D"1.0"&gt;<BR>&gt; &lt;shell descriptive=3D"Java - =
AutomatedGUISuite -=20
Eclipse SDK" <BR>&gt; id=3D"org.eclipse.ui.internal.WorkbenchWindow"=20
return-code=3D"-1"&gt;<BR>&gt; &lt;command descriptive=3D"model" =
type=3D"item-expand"=20
<BR>&gt; resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt; =

contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer/model}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"TestContainer"=20
type=3D"item-expand" <BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>&gt; contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"ForumModel.test"=20
type=3D"item-select" <BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>&gt; contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"focus" <BR>&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/&gt;<BR >&gt; =
&lt;command=20
descriptive=3D"model" type=3D"item-expand" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer/model}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"TestContainer"=20
type=3D"item-expand" <BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>&gt; contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"ForumModel.test"=20
type=3D"default-select" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>&gt;=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>&gt;=20
widgetId=3D"{{/}}-{{1.0}}"&gt;<BR>&gt; &lt;item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command <BR>&gt;=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>&gt;=20
type=3D"item-select" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt; &lt;item =
<BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command <BR>&gt;=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>&gt;=20
type=3D"item-expand" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"&gt;<BR>&gt; =
&lt;item=20
<BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command <BR>&gt;=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>&gt;=20
type=3D"item-expand" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"&gt;<BR>&gt; =
&lt;item=20
<BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"AB" =
type=3D"item-select"=20
<BR>&gt; =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>&gt; widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt; =
&lt;item <BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"verification" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
location=3D"/TestContainer/src" <BR>&gt;=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>&gt;=20
hook=3D"ABselF:Qorg.eclipse.ui.IEditorPart;"/&gt;<BR>&gt; &lt;command=20
type=3D"wait"/&gt;<BR>&gt; &lt;command descriptive=3D"AB" =
type=3D"item-expand"=20
<BR>&gt; =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>&gt; widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"&gt;<BR>&gt;=20
&lt;item <BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"verification" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
location=3D"/TestContainer/src" <BR>&gt;=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>&gt;=20
hook=3D"ABexpandF:Qorg.eclipse.ui.IEditorPart;"/&gt;<BR >&gt; &lt;command =

type=3D"wait"/&gt;<BR>&gt; &lt;command descriptive=3D"AB" =
type=3D"item-expand"=20
<BR>&gt; =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>&gt; widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"&gt;<BR>&gt;=20
&lt;item <BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command <BR>&gt;=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>&gt;=20
type=3D"item-expand" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"&gt;<BR>&gt; =
&lt;item=20
<BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command descriptive=3D"A" =
type=3D"item-select" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"&gt;<BR>&gt; &lt;item =
<BR>&gt;=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB- A}}-{=
{1.0}}"=20
<BR>&gt; =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"verification" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
location=3D"/TestContainer/src" <BR>&gt;=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>&gt;=20
hook=3D"AselF:Qorg.eclipse.ui.IEditorPart;"/&gt;<BR>&gt; &lt;command=20
type=3D"wait"/&gt;<BR>&gt; &lt;command descriptive=3D"Attr1" =
type=3D"item-select"=20
<BR>&gt; contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"&gt;<BR>&gt; &lt;item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"verification" <BR>&gt;=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;=20
location=3D"/TestContainer/src" <BR>&gt;=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>&gt;=20
hook=3D"Attr1selF:Qorg.eclipse.ui.IViewPart;"/&gt;<BR >&gt; &lt;command=20
type=3D"wait"/&gt;<BR>&gt; &lt;command type=3D"modify" <BR>&gt;=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"&gt;<BR>&gt;=20
&lt;![CDATA[abcd]]&gt;<BR>&gt; &lt;/command&gt;<BR>&gt; &lt;command=20
descriptive=3D"Attr1" type=3D"item-select" <BR>&gt;=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>&gt;=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"&gt;<BR>&gt; &lt;item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>&gt;=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/&gt; <BR>&gt;=20
&lt;/command&gt;<BR>&gt; &lt;command type=3D"verification" <BR>&gt;=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>&gt;=20
location=3D"/TestContainer/src" <BR>&gt;=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>&gt;=20
hook=3D"Attr1modF:Qorg.eclipse.ui.IEditorPart;"/&gt;<BR >&gt;=20
&lt;/shell&gt;<BR>&gt; &lt;/macro&gt;<BR>&gt; <BR>&gt; <BR>&gt; Macro =
was=20
recorded on test model previously attached.<BR>&gt; <BR>&gt; =
Verification hooks=20
inform about successfully execution: <BR>&gt; - AB selection,<BR>&gt; - =
AB=20
expanding,<BR>&gt; - A selection,<BR>&gt; - Attr1 selection.<BR>&gt; =
<BR>&gt;=20
And then Exception appears: <BR>&gt;=20
org.eclipse.core.runtime.CoreException<BR>&gt; Error while executing a =
macro=20
command: MacroCommand [modify, line 57]<BR>&gt;=20
java.lang.ArrayIndexOutOfBoundsException: 0<BR>&gt; <BR>&gt; <BR>&gt; =
Could you=20
find out what is wrong?<BR>&gt; <BR>&gt; <BR>&gt; Thanks in =
advance,<BR>&gt;=20
<BR>&gt; Artur<BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_004F_01C7366D.6BE6A000--
Previous Topic:Can I use TPTP's analysis UI for my application?
Next Topic:Probekit extension
Goto Forum:
  


Current Time: Thu Apr 25 05:51:41 GMT 2024

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

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

Back to the top