shiva
17 years agoOccasional Contributor
xpath assertion fails
Hello,
Iam newbie to wsapi testing and iam using SOAPUI2.0.2-pro.
I created an xpath assertion to one of my request with allow wildcards,
iam pasting my request, xpath expression and expected result and the error.
Request
${username}
${password}
root
1265033720000
SC2
1
desc update
1265033720000
open
windows_3.1
all
p2
subcomponent_1
Summary update
b2
component_2
wsapitestuserupdate
wsapitestuserupdate
wsapitestuserupdate
true
Xpath Expression
=============
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
//soapenv:Envelope[1]
Expected
=======
root
*
root
*
SC2
1
desc update
1265011200000
open
windows_3.1
all
p2
subcomponent_1
Summary update
b2
component_2
wsapitestuserupdate
wsapitestuserupdate
wsapitestuserupdate
wsapitestuserupdate
wsapitestuserupdate
wsapitestuserupdate
when i click test iam getting the following error
Error:
XPathContains assertion failed for path [declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/'; //soapenv:Envelope[1]] : RuntimeException:net.sf.saxon.trans.StaticError: XPath syntax error at char 1 on line 2 in { declare namespace ns1}: Unexpected token "declare namespace" in path expression
i really need to sort out this, i got very less time can any one help me
Regards,
senny.
Iam newbie to wsapi testing and iam using SOAPUI2.0.2-pro.
I created an xpath assertion to one of my request with allow wildcards,
iam pasting my request, xpath expression and expected result and the error.
Request
Xpath Expression
=============
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
//soapenv:Envelope[1]
Expected
=======
when i click test iam getting the following error
Error:
XPathContains assertion failed for path [declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/'; //soapenv:Envelope[1]] : RuntimeException:net.sf.saxon.trans.StaticError: XPath syntax error at char 1 on line 2 in { declare namespace ns1}: Unexpected token "declare namespace" in path expression
i really need to sort out this, i got very less time can any one help me
Regards,
senny.