[Webtest] Verify Stylesheets
Denis N. Antonioli
webtest@lists.canoo.com
Wed, 2 Feb 2005 12:15:14 +0100 (CET)
On Wed, 2 Feb 2005, Marc Guillemot wrote:
> maybe but:
> - it would be good to precise what kinds of content types are valid
add another attributes with expected mime-types?
The attribute accept is modeled after HTTPS' accept header field
(see. rfc 2616):
<verifyLinks xpath=3D"//img/@src" accept=3D"img/*" /> any images
<verifyLinks xpath=3D"//img/@src" accept=3D"img/gif" /> only gif
<verifyLinks xpath=3D"//img/@src" accept=3D"img/gif;img/png" /> gif or png
If not specified, it defaults to '*/*', accepts anything.
If that's ok, I'll add a task to jira and handle it in the (near) future.
> - what about css @import?
That would be in the same league as images referenced in javascript.
Webtest knows now principally how to handle html pages. There are
special steps to handle pdf documents and applets, but that's about it.
It doesn't know yet how to handle any other types of document.
Are we interested in checking other kind of documents?
=09dna
>=20
> Marc.
>=20
> Denis N. Antonioli wrote:
> > Thinking loud about it, couldn't we adapt verifyLinks to accept an xpat=
h=20
> > attribute?
> > The attribute would then select the kind of link to verify:
> >=20
> > <verifyLinks /> as now, checks the href
> > <verifyLinks xpath=3D"//a/@href" /> same as now, but explicit
> > <verifyLinks xpath=3D"//img/@src" /> verify the link for all the images
> > <verifyLinks xpath=3D"/html/head/link[@rel=3D'stylesheet']/@href" /> ve=
rify=20
> > the link for all the stylesheets.
> >=20
> > Does that make sense?
> >=20
> >=20
> > dna
> >=20
> > On 1 f=E9vr. 05, at 14:31, Marc Guillemot wrote:
> >=20
> >> No possibility yet, you have to write your own step.
> >>
> >> In a second time, I think that it could be interesting to be able to=
=20
> >> configure the "web client" to check for ALL external resources on each=
=20
> >> page loaded (images, css). But that's for later...
> >>
> >> Marc.
> >>
> >>
> >> Thierry Boullet wrote:
> >>
> >>> Hi,
> >>> How can I verify that all stylesheets (.css) referenced in the last=
=20
> >>> page are available ?
> >>> Like "verifyimages" does it for the images.
> >>> I use the version 1.7 Build R6_49.
> >>> Thanks in advance
> >>> Thierry
> >>> Thierry Boullet
> >>> www.kereval.com
> >>> _______________________________________________ WebTest mailing list=
=20
> >>> WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webte=
st
> >>
> >>
> >> _______________________________________________
> >> 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
>=20