Home » Archived » Test and Performance Tools Platform (TPTP) » Automated GUI Recorder Properties View problems
| | | | | | | |
Re: Automated GUI Recorder ? Properties View problems [message #90205 is a reply to message #90157] |
Wed, 13 December 2006 22:05 |
Liz Dancy 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> </DIV>
<DIV><FONT face=3DArial size=3D2>I have used your <FONT face=3D"Times =
New Roman"=20
size=3D3>TestModel.ecore</FONT> file to reproduce this problem =
and I ran=20
into the same ArrayIndexOutofBoundsException while trying to play back a =
testcase which was making a modification to one of the property=20
values 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 prior to recording. The solution 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 and the recording =
should play=20
back successfully. In the case where there was no parent element to =
expand,=20
my testcase played back successfully. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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>. The=20
defect has been recently fixed and is not yet available in the =
latest=20
driver.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>Sincerely,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Liz Dancy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Ali Mehregani" <</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>> =
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>> Thank you =
Artur.<BR>>=20
I've notified the new owner of the Auto GUI recoder, Liz Dancy, about =
this=20
<BR>> problem. She will open a defect if she is able to =
reproduce the=20
problem.<BR>> <BR>> <BR>> "Artur Grzeczu" <</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>> wrote in=20
message <BR>> </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>>> Focus command and position-based =
recording=20
doesn't solve my problems.<BR>>> I couldn't record focus command =
on the=20
PropertySheet text box. Item-select <BR>>> command is recorded by=20
default.<BR>>><BR>>> Manually modified Test Case (focus =
command=20
added and mouse-click removed):<BR>>><BR>>> <macro=20
version=3D"1.0"><BR>>> <shell descriptive=3D"Plug-in =
Development -=20
AutomatedGUISuite - Eclipse .." <BR>>>=20
id=3D"org.eclipse.ui.internal.WorkbenchWindow" =
return-code=3D"-1"><BR>>>=20
<command descriptive=3D"My.test" type=3D"item-select" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>>> <item=20
path=3D"{{/TestContainer/model/My.test}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command type=3D"focus"=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/><BR >>> =
<command=20
descriptive=3D"My.test" type=3D"default-select" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>>> <item=20
path=3D"{{/TestContainer/model/My.test}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command descriptive=3D"A" =
type=3D"item-select"=20
<BR>>> contextId=3D"editor/test.presentation.TestEditorID/My.test" =
<BR>>> widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>>> =
<item=20
path=3D"test.impl.AImpl0|0||0|"/><BR>>> =
</command><BR>>>=20
<command descriptive=3D"Attr1" type=3D"item-select" <BR>>>=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"><BR>>> <item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command type=3D"focus"=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"><BR>>>=20
</command><BR>>> <command type=3D"key-press" =
detail=3D"97"=20
ischarset=3D"true"/><BR>>> <command type=3D"key-press" =
detail=3D"98"=20
ischarset=3D"true"/><BR>>> <command type=3D"key-press" =
detail=3D"99"=20
ischarset=3D"true"/><BR>>> <command type=3D"key-press" =
detail=3D"13"=20
ischarset=3D"true"/><BR>>> </shell><BR>>>=20
</macro><BR>>><BR>>> Replayed Test Case doesn't =
changed=20
property Attr1. No errors=20
appears.<BR>>><BR>>><BR>>> <BR>>> To reproduce my =
problem=20
I prepare trivial test Ecore Model. It consists of <BR>>> three =
classes,=20
string attributes and references.<BR>>> TestModel.ecore=20
file:<BR>>><BR>>> <?xml version=3D"1.0"=20
encoding=3D"UTF-8"?><BR>>> <ecore:EPackage=20
xmi:version=3D"2.0"<BR>>> 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>>>=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>>> =
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>>> nsURI=3D"test"=20
nsPrefix=3D"test"><BR>>> <eClassifiers =
xsi:type=3D"ecore:EClass"=20
name=3D"A"><BR>>> <eStructuralFeatures=20
xsi:type=3D"ecore:EAttribute" name=3D"attr1" <BR>>> =
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>><BR>>> =
<eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"ref1" <BR>>>=20
eType=3D"#//B"/><BR>>> =
</eClassifiers><BR>>> =20
<eClassifiers xsi:type=3D"ecore:EClass"=20
name=3D"B"><BR>>> <eStructuralFeatures=20
xsi:type=3D"ecore:EAttribute" name=3D"attr1" <BR>>> =
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>><BR>>> =
</eClassifiers><BR>>> =20
<eClassifiers xsi:type=3D"ecore:EClass"=20
name=3D"AB"><BR>>> <eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"bs" <BR>>> upperBound=3D"-1" =
eType=3D"#//B"<BR> >> & ;nbsp; =20
containment=3D"true"/><BR>>> =
<eStructuralFeatures=20
xsi:type=3D"ecore:EReference" name=3D"as" <BR>>> upperBound=3D"-1" =
eType=3D"#//A"<BR> >> & ;nbsp; =20
containment=3D"true"/><BR>>> =
</eClassifiers><BR>>>=20
</ecore:EPackage><BR>>><BR>>> <BR>>> My exemplary =
scenario:<BR>>> 1. Import this Ecore model and generate EMF model =
in new=20
EMF project. 2. <BR>>> Then Generate All code from genmodel=20
file.<BR>>> 3. Launch this EMF project in separate Eclipse=20
application.<BR>>> 4. Add this EMF Test Model from Example EMF =
Model=20
Creation Wizards (Choose <BR>>> AB as Model Object)<BR>>> 5. =
Prepare=20
TPTP Automated GUI Test Suite<BR>>> 6. Tray to record and play =
some=20
actions which operate on the Test Model<BR>>><BR>>> It is =
possible=20
to record/play following actions:<BR>>> - add new child/sibling to =
the=20
model<BR>>> - delete objects from the model<BR>>> Attempt to =
replay=20
Test Case with modify object properties in Properties <BR>>> Tab=20
fails.<BR>>><BR>>> Following Test Case adds child object A =
to the=20
model and trays to change <BR>>> its Attr1=20
property:<BR>>><BR>>> <macro =
version=3D"1.0"><BR>>>=20
<shell descriptive=3D"Plug-in Development - AutomatedGUISuite - =
Eclipse .."=20
<BR>>> id=3D"org.eclipse.ui.internal.WorkbenchWindow"=20
return-code=3D"-1"><BR>>> <command =
descriptive=3D"ForumModel.test"=20
type=3D"item-select" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>>> <item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command type=3D"focus"=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/><BR >>> =
<command=20
descriptive=3D"ForumModel.test" type=3D"default-select" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>>> <item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command <BR>>>=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>>>=20
type=3D"item-expand" <BR>>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"><BR>>> <item=20
path=3D"org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl0"/> <BR>>>=
=20
</command><BR>>> <command descriptive=3D"AB" =
type=3D"item-select"=20
<BR>>> =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>>> widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>>> =
<item=20
path=3D"test.impl.ABImpl0|0|"/><BR>>> =
</command><BR>>>=20
<command descriptive=3D"A" type=3D"select" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial" <BR>>>=20
contextId=3D" popup/editor/test.presentation.TestEditorID/ForumModel.test/ =
org.eclipse.swt.widgets.Tree#1"=20
<BR>>> widgetId=3D"{{New Child-A}}-{{1.0}}"/><BR>>> =
<command=20
descriptive=3D"AB" type=3D"item-expand" <BR>>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"><BR>>> <item=20
path=3D"test.impl.ABImpl0|0|"/><BR>>> =
</command><BR>>>=20
<command descriptive=3D"A" type=3D"item-select" <BR>>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>>> <item=20
path=3D"test.impl.AImpl0|0||0|"/><BR>>> =
</command><BR>>>=20
<command descriptive=3D"Attr1" type=3D"item-select" <BR>>>=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#3"><BR>>> <item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>>=20
</command><BR>>> <command type=3D"modify"=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>>=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"><BR>>>=20
<![CDATA[abc]]><BR>>> </command><BR>>>=20
</shell><BR>>> =
</macro><BR>>><BR>>> <BR>>>=20
Following error appears while running the macro:<BR>>>=20
org.eclipse.core.runtime.CoreException<BR>>> Error while executing =
a macro=20
command: MacroCommand [modify, line 26]<BR>>>=20
java.lang.ArrayIndexOutOfBoundsException: 0<BR>>><BR>>> =
Whole error=20
log was attached in previous=20
post.<BR>>><BR>>><BR>>> <BR>>> I hope, my =
description is=20
repeatable.<BR>>><BR>>> Thanks in advance,<BR>>>=20
Artur<BR>>> <BR>> <BR>></FONT></BODY></HTML>
------=_NextPart_000_00AC_01C71ED8.ED9E9230--
|
|
| |
Re: Automated GUI Recorder ? Properties View problems [message #90357 is a reply to message #90251] |
Thu, 14 December 2006 17:51 |
Liz Dancy 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 #91207 is a reply to message #90968] |
Fri, 12 January 2007 22:16 |
Liz Dancy 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> </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> </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). It seems selecting the value field and then editing =
is what=20
was causing my test case failures today. 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 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Please feel free to 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Sincerely,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Liz Dancy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Artur Grzeczu" <</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>> 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>> =
Hi Liz,<BR>>=20
<BR>> I am still unable to playback Property modification in Property =
Tab.<BR>> ArrayIndexOutOfBoundsException still appears.<BR>> I =
followed=20
all yours advices:<BR>> - item selection before expanding<BR>> - =
Property=20
Name selection before its modification,<BR>> - verification hooks =
inserted=20
before modify command<BR>> - 'reset' Model Tree - Test Case always =
opens=20
model at the beginning<BR>> - wait command has no influence on my=20
problem.<BR>> <BR>> Now, I am using latest =
org.eclipse.tptp.test.auto.gui=20
version available on <BR>> CVS (v200701020622). Only=20
AutoGUITestSuiteDialog.java file comes from <BR>>=20
v200612131105.<BR>> Eclipse SDK (Version: 3.2.1 Build id: =
M20060921-0945)=20
runs on Linux x86 <BR>> platform.<BR>> <BR>> <BR>> According =
to=20
yours advices following Test Case was recorded:<BR>> <BR>> =
<macro=20
version=3D"1.0"><BR>> <shell descriptive=3D"Java - =
AutomatedGUISuite -=20
Eclipse SDK" <BR>> id=3D"org.eclipse.ui.internal.WorkbenchWindow"=20
return-code=3D"-1"><BR>> <command descriptive=3D"model" =
type=3D"item-expand"=20
<BR>> resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>> =
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"><BR>> <item=20
path=3D"{{/TestContainer/model}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command descriptive=3D"TestContainer"=20
type=3D"item-expand" <BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"><BR>> <item=20
path=3D"{{/TestContainer}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command descriptive=3D"ForumModel.test"=20
type=3D"item-select" <BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>> <item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command type=3D"focus" <BR>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Composite#1"/><BR >> =
<command=20
descriptive=3D"model" type=3D"item-expand" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"><BR>> <item=20
path=3D"{{/TestContainer/model}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command descriptive=3D"TestContainer"=20
type=3D"item-expand" <BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"=20
<BR>> contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}" value=3D"true"><BR>> <item=20
path=3D"{{/TestContainer}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command descriptive=3D"ForumModel.test"=20
type=3D"default-select" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive" <BR>>=20
contextId=3D"view/org.eclipse.jdt.ui.PackageExplorer" <BR>>=20
widgetId=3D"{{/}}-{{1.0}}"><BR>> <item=20
path=3D"{{/TestContainer/model/ForumModel.test}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command <BR>>=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>>=20
type=3D"item-select" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>> <item =
<BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command <BR>>=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>>=20
type=3D"item-expand" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"><BR>> =
<item=20
<BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command <BR>>=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>>=20
type=3D"item-expand" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"><BR>> =
<item=20
<BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command descriptive=3D"AB" =
type=3D"item-select"=20
<BR>> =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>> widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>> =
<item <BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command type=3D"verification" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
location=3D"/TestContainer/src" <BR>>=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>>=20
hook=3D"ABselF:Qorg.eclipse.ui.IEditorPart;"/><BR>> <command=20
type=3D"wait"/><BR>> <command descriptive=3D"AB" =
type=3D"item-expand"=20
<BR>> =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>> widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"><BR>>=20
<item <BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command type=3D"verification" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
location=3D"/TestContainer/src" <BR>>=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>>=20
hook=3D"ABexpandF:Qorg.eclipse.ui.IEditorPart;"/><BR >> <command =
type=3D"wait"/><BR>> <command descriptive=3D"AB" =
type=3D"item-expand"=20
<BR>> =
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test "=20
<BR>> widgetId=3D"org.eclipse.swt.widgets.Tree#1" =
value=3D"true"><BR>>=20
<item <BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB} }-{{1=
..0}}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command <BR>>=20
descriptive=3D"platform:/resource/TestContainer/model/ForumModel.... " =
<BR>>=20
type=3D"item-expand" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1" value=3D"true"><BR>> =
<item=20
<BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test}}-{ {1.0}=
}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command descriptive=3D"A" =
type=3D"item-select" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#1"><BR>> <item =
<BR>>=20
path=3D" {{platform:/resource/TestContainer/model/ForumModel.test-AB- A}}-{=
{1.0}}"=20
<BR>> =
resolverId=3D"org.eclipse.tptp.test.auto.gui.nontrivial"/> <BR>>=20
</command><BR>> <command type=3D"verification" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
location=3D"/TestContainer/src" <BR>>=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>>=20
hook=3D"AselF:Qorg.eclipse.ui.IEditorPart;"/><BR>> <command=20
type=3D"wait"/><BR>> <command descriptive=3D"Attr1" =
type=3D"item-select"=20
<BR>> contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"><BR>> <item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command type=3D"verification" <BR>>=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>=20
location=3D"/TestContainer/src" <BR>>=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>>=20
hook=3D"Attr1selF:Qorg.eclipse.ui.IViewPart;"/><BR >> <command=20
type=3D"wait"/><BR>> <command type=3D"modify" <BR>>=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Text#1"><BR>>=20
<![CDATA[abcd]]><BR>> </command><BR>> <command=20
descriptive=3D"Attr1" type=3D"item-select" <BR>>=20
contextId=3D"view/org.eclipse.ui.views.PropertySheet" <BR>>=20
widgetId=3D"org.eclipse.swt.widgets.Tree#2"><BR>> <item=20
path=3D"{{Attr1}}-{{1.0}}" <BR>>=20
resolverId=3D"org.eclipse.tptp.test.auto.gui.adaptive"/> <BR>>=20
</command><BR>> <command type=3D"verification" <BR>>=20
contextId=3D"editor/test.presentation.TestEditorID/ForumModel.test " =
<BR>>=20
location=3D"/TestContainer/src" <BR>>=20
resource=3D"org.eclipse.tests.verification.hooks.VerificationClass " =
<BR>>=20
hook=3D"Attr1modF:Qorg.eclipse.ui.IEditorPart;"/><BR >>=20
</shell><BR>> </macro><BR>> <BR>> <BR>> Macro =
was=20
recorded on test model previously attached.<BR>> <BR>> =
Verification hooks=20
inform about successfully execution: <BR>> - AB selection,<BR>> - =
AB=20
expanding,<BR>> - A selection,<BR>> - Attr1 selection.<BR>> =
<BR>>=20
And then Exception appears: <BR>>=20
org.eclipse.core.runtime.CoreException<BR>> Error while executing a =
macro=20
command: MacroCommand [modify, line 57]<BR>>=20
java.lang.ArrayIndexOutOfBoundsException: 0<BR>> <BR>> <BR>> =
Could you=20
find out what is wrong?<BR>> <BR>> <BR>> Thanks in =
advance,<BR>>=20
<BR>> Artur<BR>></FONT></BODY></HTML>
------=_NextPart_000_004F_01C7366D.6BE6A000--
|
|
|
Goto Forum:
Current Time: Mon Sep 23 10:00:42 GMT 2024
Powered by FUDForum. Page generated in 0.06067 seconds
|