alibaba82
17 years agoSuper Contributor
Question about XPath assertion
Hello I am trying to create a Xpath Assertion but having some issues. not sure if its a bug or error on my part.
in the 'XPath Expression' box I use the 'select xpath' button to select the element I want to check (method A, element X in response)
in the 'expected result' box I use 'select content' to nagivate to (method B, element Y in response). soapUI creates the xpath expression for me.
Both are the element are same but I get the following error when I click 'test'
XPathContains assertion failed for path [declare namespace ns1='http://services.tvguide.com/v3/dashboardservice'; //ns1:GetDashboardResponse/ns1:GetDashboardResult/ns1:Dashboard/ns1:Modules/ns1:DashboardModule/ns1:ModuleId] : ComparisonFailure:expected:${GetDashboard - Request 1#Response#//ns1:GetDashboardResponse/ns1:GetDashboardResult/ns1:Dashboard/ns1:Modules/ns1:DashboardModule/ns1:ModuleId}> but was:69812fc9-6ca6-41f8-bb10-eedb43c83905>
To me it looks like the 'expected' expression is not getting translated? Am I doing something wrong.
Ali
in the 'XPath Expression' box I use the 'select xpath' button to select the element I want to check (method A, element X in response)
in the 'expected result' box I use 'select content' to nagivate to (method B, element Y in response). soapUI creates the xpath expression for me.
Both are the element are same but I get the following error when I click 'test'
XPathContains assertion failed for path [declare namespace ns1='http://services.tvguide.com/v3/dashboardservice'; //ns1:GetDashboardResponse/ns1:GetDashboardResult/ns1:Dashboard/ns1:Modules/ns1:DashboardModule/ns1:ModuleId] : ComparisonFailure:expected:${GetDashboard - Request 1#Response#//ns1:GetDashboardResponse/ns1:GetDashboardResult/ns1:Dashboard/ns1:Modules/ns1:DashboardModule/ns1:ModuleId}> but was:69812fc9-6ca6-41f8-bb10-eedb43c83905>
To me it looks like the 'expected' expression is not getting translated? Am I doing something wrong.
Ali