[Webtest] autorefresh vs. previousresponse
Hesteric Roman - Together SK
Hesteric Roman - Together SK" <r.hesteric@together.sk
Thu, 10 Apr 2008 13:22:45 +0200
Hi Marc,
We are using previousresponse in macro-step "clickAllLinks" to
check if all our links in page "work" properly ...
Macro looks like:
.
.
.
<repeat
xpath=3D"//a[contains(@href,'ID=3D')][not(contains(@href,'ID=3D&'))][=
not(c
ontains(img/@src,'fk.gif'))] bla.. bla ... " counterName=3D"curLink">
<storeXPath xpath=3D"$curLink" property=3D"uri" />
<invoke description=3D"Click next link" url=3D"#{uri}"/>
<not description=3D"the word 'wurde in der Zwischenzeit' should
not appear in the page">
<verifyText description=3D"search for the problem, case
insensitiv" text=3D"wurde in der Zwischenzeit" regex=3D"false"/>
</not>=09
<previousresponse/>
</repeat>
.
.
.
After clicking and checking result, we use previousresponse to
navigate <Back> to root page and so on - and that is problem using
autorefresh, because in both cases we get various results because of
redirect based on response body, IMHO.
Roman.
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Marc Guillemot
Sent: Thursday, April 10, 2008 11:50 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] autorefresh vs. previousresponse
Hi,
at which place do you use previousResponse? Which page do you get in
both cases?
Cheers,
Marc.
--=20
Blog: http://mguillem.wordpress.com
Hesteric Roman - Together SK wrote:
> Hi there!
>=20
> I've tried to start my tests using autorefresh =3D "true" in
> <config> to specify whether the client should automatically follow
page
> refresh requests...
>=20
> <html>
> <head>
> <meta HTTP-EQUIV=3D\"REFRESH\" CONTENT=3D\"0; =
URL=3D"redirect_url">
> <title>Redirected to new location</title>
> </head>
> .
> .
> .
>=20
> In my test cases I'm using there <previousresponse> step to get
> previously loaded response, but after using autorefresh =3D "true" I =
get
> not the same response as by using autorefresh =3D "false", so my tests
> cannot continue using autorefresh + previousresponse step.
>=20
> Any Ideas how to solve it?=20
>=20
> Regards,
> Roman Hesteric
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest