[Webtest] Looping through a scrollable list
Dierk Koenig
webtest@lists.canoo.com
Mon, 11 Oct 2004 17:51:24 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0048_01C4AFBA.EC8CBA00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi Juergen,
your request is a very good usage scenario for the GroovyStep. see
http://webtest-community.canoo.com/wiki/space/Groovy/GroovyStep
Please report how this works for you and whether you need
help with the groovy code.
Before the availability of the groovy step my advise would have been
to either use httpunit directly or to instrument your server such that
you know in advance how often you have to click "forward".
happy testing
Mittie
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Juergen Damke
Sent: Freitag, 1. Oktober 2004 10:15
To: webtest@gate2.canoo.com
Subject: [Webtest] Looping through a scrollable list
I have the need to select an element in a scrollable list.
The list is created by an backend system and by pressing
forward / backward buttons I can scroll through it.
So I need to implement:
while (element not on page)
{ page forward; }
select element;
I need
1) a customstep, which returns a result (instead of failing the
Test)
2) so sort of loop construction
Has someone an idea or a customstep to implement that scenario ?
Thanks,
Mit freundlichen Grüßen / With best regards
Jürgen Damke
Portal Automated Function Verification Tests
______________________________________________________________________
IBM WebSphere Portal Development, Dept 0380
URL: http://www-4.ibm.com/software/webservers/portal/
I
------=_NextPart_000_0048_01C4AFBA.EC8CBA00
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.2180" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>Hi=20
Juergen,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D998313415-11102004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>your=20
request is a very good usage scenario for the GroovyStep.=20
see</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004><A=20
href=3D"http://webtest-community.canoo.com/wiki/space/Groovy/GroovyStep">=
http://webtest-community.canoo.com/wiki/space/Groovy/GroovyStep</A></SPAN=
></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D998313415-11102004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>Please=20
report how this works for you and whether you need =
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>help=20
with the groovy code.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D998313415-11102004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>Before=20
the availability of the groovy step my advise would have=20
been</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>to=20
either use httpunit directly or to instrument your server such=20
that</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>you=20
know in advance how often you have to click =
"forward".</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D998313415-11102004></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D998313415-11102004>happy=20
testing </SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D998313415-11102004>Mittie</SPAN></FONT><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><SPAN class=3D998313415-11102004></SPAN></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
Behalf Of </B>Juergen Damke<BR><B>Sent:</B> Freitag, 1. Oktober 2004=20
10:15<BR><B>To:</B> webtest@gate2.canoo.com<BR><B>Subject:</B> =
[Webtest]=20
Looping through a scrollable list<BR><BR></FONT></DIV><BR><FONT=20
face=3Dsans-serif size=3D2>I have the need to select an element in a =
scrollable=20
list.</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>The list is =
created by an=20
backend system and by pressing </FONT><BR><FONT face=3Dsans-serif =
size=3D2>forward=20
/ backward buttons I can scroll through it. </FONT> =
<BR><BR><FONT=20
face=3Dsans-serif size=3D2>So I need to implement:</FONT> =
<BR><BR><FONT=20
face=3Dsans-serif size=3D2> while (element =
not on=20
page)</FONT> <BR><FONT face=3Dsans-serif size=3D2> =
=20
{ page forward; }</FONT> <BR><FONT =
face=3Dsans-serif=20
size=3D2> select element;</FONT> =
<BR><BR><FONT=20
face=3Dsans-serif size=3D2>I need </FONT><BR><FONT face=3Dsans-serif =
size=3D2> =20
1) a customstep, which returns a result (instead =
of=20
failing the Test)</FONT> <BR><FONT face=3Dsans-serif size=3D2> =
=20
2) so sort of loop construction</FONT> <BR><BR><FONT =
face=3Dsans-serif=20
size=3D2>Has someone an idea or a customstep to implement that =
scenario ?</FONT>=20
<BR><BR><FONT face=3Dsans-serif size=3D2>Thanks,</FONT> <BR><BR><FONT=20
face=3Dsans-serif size=3D2>Mit freundlichen Gr=FC=DFen / With best =
regards<BR>J=FCrgen=20
Damke<BR>Portal Automated Function Verification=20
=
Tests<BR>________________________________________________________________=
______</FONT>=20
<BR><FONT face=3Dsans-serif size=3D2>IBM WebSphere Portal Development, =
Dept=20
0380<BR>URL:=20
http://www-4.ibm.com/software/webservers/portal/<BR>I</FONT></BLOCKQUOTE>=
</BODY></HTML>
------=_NextPart_000_0048_01C4AFBA.EC8CBA00--