|
|
Project Member
Reported by
virtix,
Feb 18, 2008
It might be useful to have assertion extensions that facilitate searching
of xml, xhtml, and well formed html text, or arbitrary text. This might
help by providing a gateway to those who want to test generated HTML or
XML. Parsing, of course, is a problem, so, maybe adding some assertion
extensions would help.
Examples:
assertXPath('my/xpath/expression', [myXmlString | myXmlDom], [debug=true] );
//returns true if the given xpath is found. May optionally store the found
results in debug.
assertRegEx('[my\.regEx]{1,4}', myGeneratedContent, [debug=true] );
//returns true if the given regex is found. May optionally store the found
results in debug.
|