[Webtest] verifyXPath on /html/head/title returning 'parse' error in wt 2.6?

A Vander A Vander <avander_be@yahoo.com>
Tue, 9 Sep 2008 05:24:56 -0700 (PDT)


Many thanks for the reply!

I did reply to the list via email before discovering this Nable forum, this
board should REALLY be mentionned in the Webtest support page. We do live i=
n
the 21st century after all... honestly I was going to give up reading the
klunky mailing list before landing here at Nable.

Now for the good news. I found another topic where you advice to upgrade th=
e
nekoHtml library, I took the one that comes with the lastest build and
copied it into the lib directory of version 2.6. and threw away the old
version.

This solves my problem, all pages are behaving now.

Regards, Avander


Marc Guillemot wrote:
>=20
> Hi,
>=20
> I guess that this is due to a bug in title parsing due to the '. This
> has already been fixed for a long time and you could use a recent build
> rather that the older release 2.6.
>=20
> Cheers,
> Marc.
> --=20
> Blog: http://mguillem.wordpress.com
>=20
> A Vander wrote:
>> Hi guys,=20
>>=20
>> I have several pages bombing out early due to what seems to be a rather
>> groce parsing error in a verifyXPath step for the /html/head/title.=20
>>=20
>> The error messages look like following excerpt:
>> ------------------------------------------------------------------------=
--
>> BUILD FAILED
>> D:\tools\webtest-2.6\webtest.xml:184: The following error occurred while
>> executi
>> ng this line:
>> D:\workspaceJP\jp-ep2i-tests-Canoo\src\main\web-test\usecases\allTests.x=
ml:132:
>> The following error occurred while executing this line:
>> D:\workspaceJP\jp-ep2i-tests-Canoo\src\main\web-test\usecases\allTests.x=
ml:141:
>> The following error occurred while executing this line:
>> D:\workspaceJP\jp-ep2i-tests-Canoo\src\main\web-test\usecases\login\logi=
nDeAgeLo
>>=20
>> wer18.xml:13: Wrong result for xpath >/html/head/title<. Expected value
>> "Profil
>> administratif/signal=CE=98tique - Conditions =CE=B1 l'inscription non re=
mplies" but
>> got "P
>> rofil administratif/signal=CE=98tique - Conditions =CE=B1 l'inscription =
non
>> remplies</titl
>> e> <meta http-equiv=3D"Cache-Control" content=3D"no-store" /> <meta
>> http-equiv=3D"Prag
>> ma" content=3D"no-cache" /> <meta http-equiv=3D"Expires" content=3D"0" /=
> <meta
>> http-e
>> quiv=3D"Content-Type" content=3D"text/html; charset=3DISO-8859-15" /> <l=
ink
>> rel=3D"style
>> sheet" href=3D"/jp-ep2i/styles/styleFxxxx.css" type=3D"text/css"
>> media=3D"screen"/> <s
>> cript language=3D"JavaScript" type=3D"text/javascript"> // Cette fonctio=
n
>> permet de
>> v=CE=98rifier la validit=CE=98 d'une date au format jj/mm/aaaa function =
isDate(d) {
>> // Si
>> la variable est vide on retourne faux. if (d =3D=3D "") return true; // =
On
>> teste l'e
>>=20
>> ... rest of the page here ...
>>=20
>>  </body> </html>"
>>=20
>> Total time: 4 seconds
>> ------------------------------------------------------------------------=
--
>>=20
>> It looks as if wt has his document tree mixed up and considers everythin=
g
>> following the title's start tag as being part of the title. All pages
>> presenting this behaviour do validate using the FF HTML Validator
>> extension.
>>=20
>> Upgrading to latest build does solve the problem but breaks numerous
>> verifyXPath's that do work in wt 2.6. So it seems I'm stuck in a dead en=
d
>> street...
>>=20
>> Any ideas on how to avoid the 'parse error' or the xpath issue of the
>> latest build R_1716?=20
>>=20
>> TIA, Avander
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>>=20
>>      =20
>> _______________________________________________
>> WebTest mailing list
>> WebTest@lists.canoo.com
>> http://lists.canoo.com/mailman/listinfo/webtest
>>=20
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20

--=20
View this message in context: http://www.nabble.com/verifyXPath-on--html-he=
ad-title-returning-%27parse%27-error-in-wt-2.6--tp19370861p19391201.html
Sent from the WebTest mailing list archive at Nabble.com.