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