[Webtest] clickbutton on forms with same name

JÚrome Macias webtest@lists.canoo.com
Wed, 1 Sep 2004 15:49:51 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C4902A.8DE5C7E7
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

I have the following issues when running web test scripts against that =
attached HTML pages which are quite simple

My HTML page contains 3 forms with in each a submit button

They are 3 forms with the same name' payAsYouGo'

<html>

<head>

        <meta http-equiv=3D"content-type" content=3D"text/html;  =
charset=3DISO-8859-1"  >

        <title>the Wireless Online shop - Choose your handset</title>

</head>

<body>

        <form name=3D"payAsYouGo" method=3D"get" =
action=3D"BrandTwoHB.htm">

                <input type=3D"submit" name=3D"payAsYouGo" value=3D"Pay =
as you go">

        </form>

        <br/>

        <form name=3D"payAsYouGo" method=3D"get" =
action=3D"BrandOneHA.htm">

                <input type=3D"submit" name=3D"payAsYouGo" value=3D"Pay =
as you go">

        </form>

        <br/>

        <form name=3D"payAsYouGo" method=3D"get" =
action=3D"BrandOneH2.htm">

                <input type=3D"submit" name=3D"payAsYouGo" value=3D"Pay =
as you go">

        </form>

</body>

</html>

=20

I need to write some tests step to click on the First button then on the =
third button then on the last button

For this I am using the click button step with form and index attributes

              <steps>                  =20

            <!- case 1 -->

                   <invoke stepid=3D"get home page" =
url=3D"/ChooseYourHandset.htm" />

                   <clickbutton stepid=3D"Clic on second  button =
(BrandOne HA)" name=3D"payAsYouGo">

                    <index value=3D"1"/>

                   </clickbutton>

                   <verifytext stepid=3D"Verify it's : BrandOne HA " =
text=3D"BrandOne HA"/>

=20

                        <!- case 2 -->

                                <invoke stepid=3D"get home page" =
url=3D"/ChooseYourHandset2.htm" />

                                <new_selectform name=3D"payAsYouGo" =
index=3D"5" />

                                <clickbutton stepid=3D"Clic on second  =
button (BrandOne HA)" name=3D"payAsYouGo"/>

                                <verifytext stepid=3D"Verify it's : =
BrandOne HA " text=3D"BrandOne HA"/>

                  =20

            <!- case 3 -->

                   <invoke stepid=3D"get home page" =
url=3D"/ChooseYourHandset.htm" />

                   <clickbutton stepid=3D" Clic on second  button =
(BrandOne HA)" name=3D"payAsYouGo">

                    <form name=3D"PayAsYouGo" />

                    <index value=3D"1" />

                   </clickbutton>

                  <verifytext stepid=3D"Verify it's : BrandOne HA " =
text=3D"BrandOne HA"/>

            </steps>

=20

The click button in case 1 gives me the page corresponding to the last =
button...

The click button in case 2 gives me the page corresponding to the first =
button!

The click button in case 3 generates the following exception

BUILD FAILED

BugOfIndexValueNumber2.xml:9: Test failed.

Exception raised: com.canoo.webtest.engine.StepExecutionException: =
Unexpected exception caught: java.lang.IndexOutOfBoundsException: Index: =
1, Size: 0, Step: ClickButton at=20

\BugOfIndexValueNumber2.xml:13:  with (stepId=3D" Clic on second  button =
(BrandOne HA)", name=3D"payAsYouGo", =
stepType=3D"clickbutton")com.canoo.webtest.engine.StepExecutionException:=
 Unexpected exception caught: java.lang.Ind

exOutOfBoundsException: Index: 1, Size: 0, Step: ClickButton at =
E:\P4\depot\apps\swf\eshop\smoketests\testcases\BugOfIndexValueNumber2.xm=
l:13:  with (stepId=3D" Clic on second  button (BrandOne HA)", =
name=3D"payAsYouGo", ste

pType=3D"clickbutton")

        at =
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:341)

        at com.canoo.webtest.steps.Step.execute(Step.java:107)

        at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)

        at =
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask=
java:70)

        at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:301)

        at org.apache.tools.ant.Target.performTasks(Target.java:328)

        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)

        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)

        at =
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)

        at org.apache.tools.ant.Task.perform(Task.java:364)

        at org.apache.tools.ant.Target.execute(Target.java:301)

        at org.apache.tools.ant.Target.performTasks(Target.java:328)

        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)

        at =
org.apache.tools.ant.Project.executeTargets(Project.java:1063)

        at org.apache.tools.ant.Main.runBuild(Main.java:632)

        at org.apache.tools.ant.Main.startAnt(Main.java:183)

        at org.apache.tools.ant.Main.start(Main.java:147)

        at org.apache.tools.ant.Main.main(Main.java:230)=20

=20

any helps welcome

=20

Jerome


------_=_NextPart_001_01C4902A.8DE5C7E7
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DFR =
style=3D'font-size:10.0pt;font-family:Arial'>Hi,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DFR =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I have the following issues =
when
running web test scripts against that attached HTML pages which are =
quite
simple</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>My HTML page contains <font
color=3Dnavy><span style=3D'color:navy'>3</span></font> forms with in =
each a submit
button</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>They are <font =
color=3Dnavy><span
style=3D'color:navy'>3</span></font> forms with th<font =
color=3Dnavy><span
style=3D'color:navy'>e same</span></font> name<font color=3Dnavy><span
style=3D'color:navy'>&#8217;</span></font> payAsYouGo<font =
color=3Dnavy><span
style=3D'color:navy'>&#8217;</span></font></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;html&gt;</span></font></=
p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;head&gt;</span></font></=
p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;meta http-equiv=3D&quot;content-type&quot; =
content=3D&quot;text/html;&nbsp;
charset=3DISO-8859-1&quot;&nbsp; &gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;title&gt;the Wireless Online shop - Choose your =
handset&lt;/title&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;/head&gt;</span></font><=
/p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;body&gt;</span></font></=
p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;form name=3D&quot;payAsYouGo&quot; method=3D&quot;get&quot;
action=3D&quot;BrandTwoHB.htm&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=3D&quot;submit&quot; name=3D&quot;payAsYouGo&quot; =
value=3D&quot;Pay
as you go&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;/form&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;br/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;form name=3D&quot;payAsYouGo&quot; method=3D&quot;get&quot;
action=3D&quot;BrandOneHA.htm&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=3D&quot;submit&quot; name=3D&quot;payAsYouGo&quot; =
value=3D&quot;Pay
as you go&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;/form&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;br/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;form name=3D&quot;payAsYouGo&quot; method=3D&quot;get&quot;
action=3D&quot;BrandOneH2.htm&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;input type=3D&quot;submit&quot; name=3D&quot;payAsYouGo&quot; =
value=3D&quot;Pay
as you go&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
&lt;/form&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;/body&gt;</span></font><=
/p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&lt;/html&gt;</span></font><=
/p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I need to write some tests =
step to
click on the First button then on the third button then on the last =
button</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>For this I am using the =
click button
step with form and index attributes</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;steps&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;!&#8212; case <font color=3Dnavy><span =
style=3D'color:navy'>1</span></font>
--&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;invoke stepid=3D&quot;get home =
page&quot;
url=3D&quot;/ChooseYourHandset.htm&quot; /&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;clickbutton stepid=3D&quot;<font color=3Dnavy><span =
style=3D'color:navy'>Clic on second
=A0button</span></font> (BrandOne HA)&quot; =
name=3D&quot;payAsYouGo&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;index value=3D&quot;<font color=3Dnavy><span
style=3D'color:navy'>1</span></font>&quot;/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;/clickbutton&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;verifytext stepid=3D&quot;<font color=3Dnavy><span =
style=3D'color:navy'>Verify it&#8217;s
:</span></font> BrandOne HA &quot; text=3D&quot;BrandOne H<font =
color=3Dnavy><span
style=3D'color:navy'>A</span></font>&quot;/&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span></font><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&lt;!&#8212;
case <font color=3Dnavy><span style=3D'color:navy'>2</span></font> =
--&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 &lt;invoke stepid=3D&quot;get
home page&quot; url=3D&quot;/ChooseYourHandset2.htm&quot; =
/&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 =A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0&lt;new_selectform =
name=3D&quot;payAsYouGo&quot;
index=3D&quot;5&quot; /&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0&lt;clickbutton =
stepid=3D&quot;Clic
on second=A0 button (BrandOne HA)&quot; =
name=3D&quot;payAsYouGo&quot;/&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0&lt;verifytext =
stepid=3D&quot;Verify
it's : BrandOne HA &quot; text=3D&quot;BrandOne =
HA&quot;/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;!&#8212; case <font color=3Dnavy><span =
style=3D'color:navy'>3</span></font>
--&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;invoke stepid=3D&quot;get home page&quot;
url=3D&quot;/ChooseYourHandset.htm&quot; /&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;clickbutton stepid=3D&quot;<font color=3Dnavy><span =
style=3D'color:navy'> Clic on
second =A0button</span></font> (BrandOne HA)&quot; =
name=3D&quot;payAsYouGo&quot;&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;
&lt;form name=3D&quot;PayAsYouGo&quot; /&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;
&lt;index value=3D&quot;<font color=3Dnavy><span =
style=3D'color:navy'>1</span></font>&quot;
/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;
&lt;/clickbutton&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&lt;verifytext
stepid=3D&quot;<font color=3Dnavy><span style=3D'color:navy'>Verify =
it&#8217;s :</span></font>
BrandOne HA &quot; text=3D&quot;BrandOne H<font color=3Dnavy><span
style=3D'color:navy'>A</span></font>&quot;/&gt;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/steps&gt;</span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'text-indent:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The click button in case =
<font
color=3Dnavy><span style=3D'color:navy'>1 </span></font>give<font =
color=3Dnavy><span
style=3D'color:navy'>s</span></font> me the page corresponding to the =
<b><u><span
style=3D'font-weight:bold'>last</span></u></b> button<font =
color=3Dnavy><span
style=3D'color:navy'>...</span></font></span></font></p>

<p class=3DMsoNormal style=3D'text-indent:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The click button in case =
2<font
color=3Dnavy><span style=3D'color:navy'> </span></font>give<font =
color=3Dnavy><span
style=3D'color:navy'>s</span></font> me the page corresponding to the =
<b><u><span
style=3D'font-weight:bold'>first</span></u></b> =
button!</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The click button in case =
<font
color=3Dnavy><span style=3D'color:navy'>3</span></font> <b><u><span
style=3D'font-weight:bold'>generates the following =
exception</span></u></b></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>BUILD
FAILED</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>BugOfIndexValueNu=
mber2.xml:9:
Test failed.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Exception
raised: com.canoo.webtest.engine.StepExecutionException: Unexpected =
exception
caught: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0, Step: =
ClickButton
at </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>\BugOfIndexValueN=
umber2.xml:13:=A0
with (stepId=3D&quot; Clic on second=A0 button (BrandOne HA)&quot;, =
name=3D&quot;payAsYouGo&quot;,
stepType=3D&quot;clickbutton&quot;)com.canoo.webtest.engine.StepExecution=
Exception:
Unexpected exception caught: java.lang.Ind</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>exOutOfBoundsExce=
ption:
Index: 1, Size: 0, Step: ClickButton at =
E:\P4\depot\apps\swf\eshop\smoketests\testcases\BugOfIndexValueNumber2.xm=
l:13:=A0
with (stepId=3D&quot; Clic on second=A0 button (BrandOne HA)&quot;, =
name=3D&quot;payAsYouGo&quot;,
ste</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>pType=3D&quot;cli=
ckbutton&quot;)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:341)</sp=
an></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
com.canoo.webtest.steps.Step.execute(Step.java:107)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)</span></font=
></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask=
java:70)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)</spa=
n></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Task.perform(Task.java:364)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Target.execute(Target.java:301)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Target.performTasks(Target.java:328)</span></font></=
p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)</span></fon=
t></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)</span></font></p>=


<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)</spa=
n></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Task.perform(Task.java:364)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Target.execute(Target.java:301)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Target.performTasks(Target.java:328)</span></font></=
p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Project.executeTarget(Project.java:1215)</span></fon=
t></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)</span></fo=
nt></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Main.runBuild(Main.java:632)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Main.startAnt(Main.java:183)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Main.start(Main.java:147)</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>=A0=A0=A0=A0=A0=A0=
=A0 at
org.apache.tools.ant.Main.main(Main.java:230)</span></font><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>any helps =
welcome</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Jerome</span></font></p>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C4902A.8DE5C7E7--