簡體   English   中英

SOAPUI:無法通過soap響應的數據源循環從數據源中的xml中獲取標記的值

[英]SOAPUI: can't get tag's value from xml in data source step by data source loop from soap responce

我的 SOAPUI 有問題,我從 YandexSpeller 得到帶有幾個單詞錯誤的 xml。 我在這里得到的 xml: https://pastebin.com/0E44WH2a

<SpellResult>
           <error code="1" pos="1" row="0" col="1" len="6">
              <word>beautoful</word>
              <s>beautiful</s>
           </error>
           <error code="1" pos="9" row="0" col="9" len="10">
              <word>lidy</word>
              <s>lady</s>
           </error>
           <error code="1" pos="20" row="0" col="20" len="7">
              <word>cemmon</word>
              <s>common</s>
           </error>

我想獲取數據源循環中的每個錯誤並將其保存到 excel 文件中。 存在的問題是我可以通過@len 和@pos 從錯誤標簽中獲取屬性“len”和“pos”,但無法從“word”和“s”子標簽中獲取文本。 有一個 ready-api 錯誤的例子: https : //i.stack.imgur.com/JrRd0.png

當我將標簽“ns1:”(我在“row xpath”塊中聲明的更高)添加到“column xpath”塊中的“word”和“s”時,它開始對我有用。

ns1:word/text()
ns1:s/text()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM