HI Amy, Doh. The macro works great (after upgrading my maven webtest version, and other things). Out of curiosity, what did you wind up doing to "easily" test xml output? Is there an XSLT solution?
http://lists.canoo.com/pipermail/webtest/2009q2/012165.html Thanks. On Wed, May 20, 2009 at 1:09 PM, Amelia A Lewis <[email protected]> wrote: > The XPath doesn't match any nodes. :-) > > /{http://www.mycompany.org/schemas/auth}user != /{}user (using James > Clark's "expanded" notations for XPaths). You'll need to provide your > <config> with a namespace binding (say you bind the prefix "auth" to > "http://www.mycompany.org/schemas/auth"), and then verify the XPath > using the proper namespace (/auth:user if you did the binding in the > last parenthetical comment). > > If you check the list archives, I posted a macro that can be defined > that seems to work for XPath bindings. WebTest ... isn't very strong > when faced with XML, in my opinion (apologies to the developers, but > the clumsiness of defining namespaces is really ... surprising, to me > (but I'm an XML geek, so *shrug*)). > > Amy! > On Wed, 20 May 2009 11:48:27 -0700, Gregory Denton wrote: >> I just got my project building and executing an initial GET request >> which produces the response: >> >> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> >> <user xmlns="http://www.mycompany.org/schemas/auth" name="foo" id="0"> >> <emailAddress>[email protected]</emailAddress> >> </user> >> >> My webtest steps only contains (after the invoke): >> >> <verifyXPath xpath="/user"/> >> >> Which results in: >> >> xpath test: /user matched no nodes >> >> I am a noobie to webtest and must be doing something really dumb, but >> have googled and can't find anything or figure it out. >> >> Thanks. >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

