|
Re: ArrayIndexOutofBoundsException [message #121605 is a reply to message #121590] |
Thu, 31 January 2008 13:46 |
Jimmy Jin Messages: 32 Registered: July 2009 |
Member |
|
|
I guess you are using AGR version 4.3.x or earlier, right? Because as I
see in latest version (4.4.x), this error message will be shown
correctly as "Cannot locate view control: ...".
Your line 34 is
"<command descriptive="Node1" type="choice-select" referenceId="21"
choiceId="item#1"/>". So I think it cannot find the widget (with
referenceId 21). I suggest you do the steps manually in the EXACT
environment where you playback your script to see what the difference
is. There may be sometime that when you recording the script, some
widget is there, but when you playback, due to some environment
difference (such as number of project in workspace), something can be
different.
Regards,
Jimmy Jin
Pushparaj wrote:
> Hi All,
> I am trying to get familiar with TPTP's Automated GUI Recorder. During
> these investigations I have problems while running my recorded test cases.
>
> org.eclipse.core.runtime.CoreException
> Error while executing a macro command: MacroCommand [choice-select, line
> 34]
> java.lang.ArrayIndexOutOfBoundsException: 0
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.ChoiceSelec tionCommand.playback(ChoiceSelectionCommand.java:143)
>
>
>
> My recorded macro is,
> <macro version="1.0">
> <shell descriptive="OpenClovis IDE - ProjectCreationTestSuite -
> Eclips..." referenceId="0" return-code="-1">
> <command descriptive="Project..." type="select" referenceId="4"/>
> <shell descriptive="New Project" referenceId="2" return-code="0">
> <command descriptive="New Project" type="item-select"
> referenceId="5">
> <item referenceId="13"/>
> </command>
> <command type="focus" referenceId="5"/>
> <command descriptive="Next &gt;" type="select"
> referenceId="8"/>
> <command type="modify" referenceId="9">
> <![CDATA[Test]]>
> </command>
> <command type="modify" referenceId="22">
> <![CDATA[/home/my/pkg]]>
> </command>
> <command type="modify" referenceId="15">
> <![CDATA[/home/my/pkg]]>
> </command>
> <command type="modify" referenceId="15">
> <![CDATA[/usr/bin]]>
> </command>
> <command descriptive="Next &gt;" type="select"
> referenceId="8"/>
> <command descriptive="Add" type="select" referenceId="16"/>
> <command descriptive="Add" type="select" referenceId="16"/>
> <command descriptive="Next &gt;" type="select"
> referenceId="8"/>
> <command descriptive="Add" type="select" referenceId="17"/>
> <command descriptive="Add" type="select" referenceId="17"/>
> <command descriptive="Next &gt;" type="select"
> referenceId="8"/>
> <command descriptive="Add" type="select" referenceId="18"/>
> <command descriptive="Add" type="select" referenceId="18"/>
> <command descriptive="Node0" type="item-select"
> referenceId="19">
> <item referenceId="20"/>
> </command>
> <command descriptive="Node1" type="choice-select"
> referenceId="21" choiceId="item#1"/>
> <command descriptive="Finish" type="select" referenceId="11"/>
> </shell>
> </shell>
> </macro>
>
> Thanks,
> Pushparaj
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02677 seconds