[Webtest] ANN: new custom step verifySchema

Lothar Märkle webtest@lists.canoo.com
Mon, 12 Sep 2005 14:06:58 +0200


hi,

I added a new verifySchema custom step to the wiki:
http://webtest-community.canoo.com/wiki/space/Contributions+and+Uploads/VerifySchema

It's a extension to check html constraints you place on your site.

an example:
<verifySchema xpath="/html/body/div">
element div {
  attribute id {"123"},
  text,
  element b {text},
}
</verifySchema>

whoul accept a div tag that looks like:
<div id="123">laber<b>rabarber</b></div>
but not sth like:
<div>...</div>...no id attribute
nor
<div id="124">...</div>...wrong id attribute content
nor
<div id="123"><b>asdf</b></div>...no text before b tag
etc.

any comments whould be appreciated:)
  lothar

-- 
Lothar Märkle - lothar.maerkle@netpioneer.de
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30