[Webtest] how to access a String in the HTML response and use it as input to another test.

Denis N. Antonioli webtest@lists.canoo.com
Mon, 29 Aug 2005 23:30:14 +0200


Hi Vikram

yes, there is a way.

Go and read the description of <storeXPath>, look at the =20
corresponding selftest in <http://webtest.canoo.com/webtest/reports/=20
selftest/WebTestReport.html>

Happy testing
     dna

On 29 ao=FBt 05, at 19:39, vikram shevde wrote:

> Hi all,
>
> I read through available documentation,tried searching the archives =20=

> but was unable to figure out how to parse the HTML response to get =20
> a particular string ,and then use it as a input param to the next  =20
> test in my test Suite.
>
> e.g, I have a "testCreate"webtest that will submit some forms that =20
> lead to the creation of a Business document in our system,giving it =20=

> a unique sequence ID,say 1012080 . This same ID is displayed on the =20=

> HTML page as:
>
> <th align=3D"left">Id:</th><td>1012080 &nbsp; &nbsp; </td>
>
> Is there any way I can access this HTML in WebTest ,so that I can =20
> parse out the document ID(1012080 ) and then use it as an input to =20
> a "testSearch" WebTest which will test the search function of our =20
> website ,verifying that the "search document by document id" =20
> feature works by submitting a form having an input field for the =20
> document id?
>
> Thanks for all your help!
>
> Vik.
>
> _________________________________________________________________
> A Mobile Phone sells every 16 minutes on eBay.in
> http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-558?ck=3DMobiles =20=

> Get Your Model Now!
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

--=20
... an initial underscore already conveys strong feelings of magicalness
to a C programmer.
   -- Larry Wall in <1992Nov9.195250.23584@netlabs.com>