[Webtest] subroutines

Thakkar, Hetal webtest@lists.canoo.com
Tue, 26 Aug 2003 11:51:41 -0400


Thanks, that works.
Hetal

-----Original Message-----
From: Aatish Arora [mailto:a_aatish@yahoo.com]
Sent: Monday, August 25, 2003 10:49 PM
To: webtest@gate.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,
>=20
> 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?
>=20
> 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?
>=20
> Thanks,
> Hetal
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest


=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

__________________________________
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