[Webtest] subroutines

Bill Milbratz webtest@lists.canoo.com
Tue, 26 Aug 2003 10:07:24 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------=_NextPartTM-000-8a2e2f29-fa5e-45df-9c90-d759db52932b
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C36BE3.C16D2650"

------_=_NextPart_001_01C36BE3.C16D2650
Content-Type: text/plain;
	charset="iso-8859-1"

along similar lines, I've been experimenting w/ using xsl and data xml to
populate a web based system w/ testing data. (e.g. from a list of members
use the 'register new members' interface to populate the system w/ 20
members)

I've had one issue so far getting xsl to generate the ant properties..i.e.
xsl needed escaped braces..i.e.

example (from xsl file):
  <setinputfield stepid="set password" 
     name="password"
     value="${{login.ok.password}}" />

I worked around it w/a separate ant target to copy all copy/replace all my
modules and includes  and escape the braces..

Is anyone else doing something like this?

any recommendations?

thanks,

bill



-----Original Message-----
From: Aatish Arora [mailto:a_aatish@yahoo.com]
Sent: Tuesday, August 26, 2003 12:49 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] subroutines


Hi!

Check out the <ant> tag ;).
Theres an example called AllLanguagesTestSuite.xml on
http://webtest.canoo.com/webtest/manual/samples.html#5

Although in this case a test suite is mentioned - u
can also try it out for a test case. The idea is to
pass properties from outside - just like you would do
in a subroutine. ;)

cheers!
Aatish

--- "Thakkar, Hetal" <hetal.thakkar@citigroup.com>
wrote:
> Hi,
> 
> If I have several tests that are very similar, but
> differ just a little
> bit, then is there a way to extract the common
> things into a subroutine?
> 
> For example, If I have two testcases, the testcases
> are navigating upto
> a page and verifying a table on thege. On one page
> the table's data
> starts at first column, while on the other data
> starts at line 2. The
> data is exactly the same, but the lines are
> displaced by 1 lets say. Is
> there a way to extract the table verification as a
> subroutine and pass
> it a parameter that specifies which line the table
> starts from or
> something similar to that?
> 
> Thanks,
> Hetal
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest


=====
========================
THE FOUR STAGES OF LIFE:

1) You believe in Santa Claus.
2) You don't believe in Santa Claus.
3) You are Santa Claus.
4) You look like Santa Claus.
========================

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Webtest] subroutines</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>along similar lines, I've been experimenting w/ using =
xsl and data xml to populate a web based system w/ testing data. (e.g. =
from a list of members use the 'register new members' interface to =
populate the system w/ 20&nbsp; members)</FONT></P>

<P><FONT SIZE=3D2>I've had one issue so far getting xsl to generate the =
ant properties..i.e. xsl needed escaped braces..i.e.</FONT>
</P>

<P><FONT SIZE=3D2>example (from xsl file):</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;setinputfield stepid=3D&quot;set =
password&quot; </FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp; =
name=3D&quot;password&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp; =
value=3D&quot;${{login.ok.password}}&quot; /&gt;</FONT>
</P>

<P><FONT SIZE=3D2>I worked around it w/a separate ant target to copy =
all copy/replace all my modules and includes&nbsp; and escape the =
braces..</FONT></P>

<P><FONT SIZE=3D2>Is anyone else doing something like this?</FONT>
</P>

<P><FONT SIZE=3D2>any recommendations?</FONT>
</P>

<P><FONT SIZE=3D2>thanks,</FONT>
</P>

<P><FONT SIZE=3D2>bill</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Aatish Arora [<A =
HREF=3D"mailto:a_aatish@yahoo.com">mailto:a_aatish@yahoo.com</A>]</FONT>=

<BR><FONT SIZE=3D2>Sent: Tuesday, August 26, 2003 12:49 AM</FONT>
<BR><FONT SIZE=3D2>To: webtest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Webtest] subroutines</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi!</FONT>
</P>

<P><FONT SIZE=3D2>Check out the &lt;ant&gt; tag ;).</FONT>
<BR><FONT SIZE=3D2>Theres an example called AllLanguagesTestSuite.xml =
on</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://webtest.canoo.com/webtest/manual/samples.html#5" =
TARGET=3D"_blank">http://webtest.canoo.com/webtest/manual/samples.html#5=
</A></FONT>
</P>

<P><FONT SIZE=3D2>Although in this case a test suite is mentioned - =
u</FONT>
<BR><FONT SIZE=3D2>can also try it out for a test case. The idea is =
to</FONT>
<BR><FONT SIZE=3D2>pass properties from outside - just like you would =
do</FONT>
<BR><FONT SIZE=3D2>in a subroutine. ;)</FONT>
</P>

<P><FONT SIZE=3D2>cheers!</FONT>
<BR><FONT SIZE=3D2>Aatish</FONT>
</P>

<P><FONT SIZE=3D2>--- &quot;Thakkar, Hetal&quot; =
&lt;hetal.thakkar@citigroup.com&gt;</FONT>
<BR><FONT SIZE=3D2>wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Hi,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; If I have several tests that are very similar, =
but</FONT>
<BR><FONT SIZE=3D2>&gt; differ just a little</FONT>
<BR><FONT SIZE=3D2>&gt; bit, then is there a way to extract the =
common</FONT>
<BR><FONT SIZE=3D2>&gt; things into a subroutine?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; For example, If I have two testcases, the =
testcases</FONT>
<BR><FONT SIZE=3D2>&gt; are navigating upto</FONT>
<BR><FONT SIZE=3D2>&gt; a page and verifying a table on thege. On one =
page</FONT>
<BR><FONT SIZE=3D2>&gt; the table's data</FONT>
<BR><FONT SIZE=3D2>&gt; starts at first column, while on the other =
data</FONT>
<BR><FONT SIZE=3D2>&gt; starts at line 2. The</FONT>
<BR><FONT SIZE=3D2>&gt; data is exactly the same, but the lines =
are</FONT>
<BR><FONT SIZE=3D2>&gt; displaced by 1 lets say. Is</FONT>
<BR><FONT SIZE=3D2>&gt; there a way to extract the table verification =
as a</FONT>
<BR><FONT SIZE=3D2>&gt; subroutine and pass</FONT>
<BR><FONT SIZE=3D2>&gt; it a parameter that specifies which line the =
table</FONT>
<BR><FONT SIZE=3D2>&gt; starts from or</FONT>
<BR><FONT SIZE=3D2>&gt; something similar to that?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Thanks,</FONT>
<BR><FONT SIZE=3D2>&gt; Hetal</FONT>
<BR><FONT SIZE=3D2>&gt; =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>&gt; WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
</P>
<BR>

<P><FONT SIZE=3D2>=3D=3D=3D=3D=3D</FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2>THE FOUR STAGES OF LIFE:</FONT>
</P>

<P><FONT SIZE=3D2>1) You believe in Santa Claus.</FONT>
<BR><FONT SIZE=3D2>2) You don't believe in Santa Claus.</FONT>
<BR><FONT SIZE=3D2>3) You are Santa Claus.</FONT>
<BR><FONT SIZE=3D2>4) You look like Santa Claus.</FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D</FONT>
</P>

<P><FONT SIZE=3D2>__________________________________</FONT>
<BR><FONT SIZE=3D2>Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! SiteBuilder - Free, easy-to-use web site =
design software</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://sitebuilder.yahoo.com" =
TARGET=3D"_blank">http://sitebuilder.yahoo.com</A></FONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C36BE3.C16D2650--

------=_NextPartTM-000-8a2e2f29-fa5e-45df-9c90-d759db52932b--