[Webtest] [webtest][JIRA] Closed: (WT-16) New step: verifyLinkedContent
Denis N. Antonioli (JIRA)
webtest@lists.canoo.com
Fri, 1 Jul 2005 13:13:51 +0200 (CEST)
[ http://webtest-community.canoo.com/jira/browse/WT-16?page=history ]
Denis N. Antonioli closed WT-16:
--------------------------------
Resolution: Fixed
Completed with build 907.
> New step: verifyLinkedContent
> -----------------------------
>
> Key: WT-16
> URL: http://webtest-community.canoo.com/jira/browse/WT-16
> Project: WebTest
> Type: New Feature
> Reporter: Denis N. Antonioli
> Assignee: Denis N. Antonioli
>
> New step verifyLinkedContent with the two attributes xpath and accept.
> Apply the xpath on the current document, performs an http HEAD on each found node and verifies that
> the returned mime-type matchs the accept.
> xpath is an xpath to select the link to verify
> accept is modeled after HTTPS' accept header field (see. rfc 2616)
> Example:
> <verifyLinkedContent xpath="//a/@href" /> checks all href
> <verifyLinkedContent /> idem, but implicit?
> <verifyLinkedContent xpath="//img/@src" /> verify the link for all the images
> <verifyLinkedContent xpath="/html/head/link[@rel='stylesheet']/@href" /> verify the link for all the stylesheets.
> <verifyLinkedContent xpath="//img/@src" accept="img/*" /> any images
> <verifyLinkedContent xpath="//img/@src" accept="img/gif" /> only gif
> <verifyLinkedContent xpath="//img/@src" accept="img/gif;img/png" /> gif or png
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira