[Webtest] subroutines

Aatish Arora webtest@lists.canoo.com
Mon, 25 Aug 2003 22:49:27 -0700 (PDT)


Check out the <ant> tag ;).
Theres an example called AllLanguagesTestSuite.xml on

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. ;)


--- "Thakkar, Hetal" <hetal.thakkar@citigroup.com>
> 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


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