My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 62: Assertion Extensions for String and XPath
1 person starred this issue and may be notified of changes. Back to list
 
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.

 
Jan 22, 2009
Project Member #1 virtix
working ... but maybe not used a whole lot. might be nice to have a jquery-like selector
Status: Fixed

Powered by Google Project Hosting