alibaba82
16 years agoSuper Contributor
soapui 2.5 'assertion for content' not working.
Hello,
I am trying to create a 'assertion of content' by comparing an elementA from the response of step B to elementA of StepA. the values of the both the elementA is the same but the assertion fails with the following message.
XPathContains comparison failed, expecting [], actual was [3854868]
My Xpath Expression and Excpected Results is follows
declare namespace ns1='http://services.tvguide.com/v6/smartrecommendations';
//ns1:GetRecommendationsResponse[1]/ns1:GetRecommendationsResult[1]/ns1:Programs[1]/ns1:Program[1]/ns1:ProgramId[1]/text()
Expected Result
${GetRecommendations - No Usage Data#Response#//ns1:GetRecommendationsResponse[1]/ns1:GetRecommendationsResult[1]/ns1:Programs[1]/ns1:Program[1]/ns1:ProgramId[1]}
If I plugin 3854868 directly into Expected result, the assertion passes
Ali
I am trying to create a 'assertion of content' by comparing an elementA from the response of step B to elementA of StepA. the values of the both the elementA is the same but the assertion fails with the following message.
XPathContains comparison failed, expecting [], actual was [3854868]
My Xpath Expression and Excpected Results is follows
declare namespace ns1='http://services.tvguide.com/v6/smartrecommendations';
//ns1:GetRecommendationsResponse[1]/ns1:GetRecommendationsResult[1]/ns1:Programs[1]/ns1:Program[1]/ns1:ProgramId[1]/text()
Expected Result
${GetRecommendations - No Usage Data#Response#//ns1:GetRecommendationsResponse[1]/ns1:GetRecommendationsResult[1]/ns1:Programs[1]/ns1:Program[1]/ns1:ProgramId[1]}
If I plugin 3854868 directly into Expected result, the assertion passes
Ali