0
我想为SOAPUI编写一个xPath查询来验证参数Score中是否有参数验证值的“BDS”。如何从SOAPUI获得XPath查询
所有的代码响应是在这里:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<MatchResponse xmlns="http://www.bottomline.com/intellinx/webservices">
<MatchResult><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ResultBlock>
<MatchSummary matches="1">
<TotalMatchScore>50</TotalMatchScore>
<Rules totalRuleCount="5">
<Rule ruleCount="1">
<RuleID>Rule3_2_R</RuleID>
<Score>10</Score>
</Rule>
<Rule ruleCount="1">
<RuleID>Rule18_In</RuleID>
<Score>20</Score>
</Rule>
<Rule ruleCount="1">
<RuleID>Rule14_Su</RuleID>
<Score>20</Score>
</Rule>
</Rules>
</MatchSummary>
<ExternalScores>
<ExternalScore>
<extClientLegacy>2003-01-03-03.26.32.285776</extClientLegacy>
<SourceID>BDS</SourceID>
<Score>-1.0</Score>
</ExternalScore>
<ExternalScore>
<extClientLegacy>2003-01-03-03.26.32.285776</extClientLegacy>
<SourceID>O2</SourceID>
<Score>0.128</Score>
</ExternalScore>
</ExternalScores>
<ErrorWarnings>
<Errors errorCount="0"/>
<Warnings warningCount="0"/>
</ErrorWarnings>
</ResultBlock>]]></MatchResult>
</MatchResponse>
</S:Body>
</S:Envelope>
SOAPUI在图像上。问题是我怎么写xpath ..非常感谢!
请您澄清一下这个问题吗?当ScoreID是'BSD'时,你想检查'Score'为'-1'吗? – Rao
Pavel,发布的数据不可分析。 – Rao
请不要发表“为我编写代码”问题。如果您在某个XPath表达式中遇到问题,请包含该表达式以及一些推理。如果您到目前为止还没有XPath表达式,请花更多时间考虑您的问题并提出一些建议。 – Tomalak