2017-12-20 11 views
0

soapuiのプロパティ展開に基づいて処理中に動的プロパティを作成しようとしています。プロパティでsoapuiのプロパティ展開で期待値ではなく文字列のみが返される

、変数名はpkSSNで、動的な値が${createIP -OSIClaimant#Response#//en:name/ssn/text()}

Where: 
1. createIP -OSIClaimant is test step name 
2. Response (tag is present in the response of the test step) 
3. //en:name/ssn/text() xpath of the value 

あるそれは「123456789」のようSSNタグに値を返す必要がありますが、それはこの[${createIP -OSIClaimant#Response#//en:name/ssn/text()}].

私は、このリンクを以下のい"https://www.soapui.org/scripting---properties/property-expansion.html#2-Dynamic-Properties"でも負の出力です。誰かが私がここで間違っていることを私に示唆してもらえますか?

+0

が欠けていると思いますが

を達成しようとしているものを取得することができ、あなたはGroovyのテストステップまたは他のどこかで、プロパティ拡張を使用していますか? – craigcaulfield

+1

レスポンスを見ずに何かを示唆したり、抽出しようとしているデータはありません。 – Rao

+0

どのSOAPUIのバージョンを使用しますか? –

答えて

1

enter image description here

iが2要求を作成して、それが2要求

1の下有する)ConversionRate

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/"> 
<soapenv:Header/> 
<soapenv:Body> 
    <web:ConversionRate> 
    <web:FromCurrency>DZD</web:FromCurrency> 
    <web:ToCurrency>ALL</web:ToCurrency> 
    </web:ConversionRate> 
</soapenv:Body> 
</soapenv:Envelope> 

2)SOAPリクエスト第

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET/"> 
<soapenv:Header/> 
<soapenv:Body> 
    <web:ConversionRate> 
    <web:FromCurrency>USD</web:FromCurrency> 
    <web:ToCurrency>${ConversionRate#Request#//web:ConversionRate[1]/web:FromCurrency[1]}</web:ToCurrency> 
    </web:ConversionRate> 
    </soapenv:Body> 
</soapenv:Envelope> 

のでコマンド

${ConversionRate#Request#//web:ConversionRate[1]/web:FromCurrency[1]} 

は、私はあなたが名前空間

+1

ありがとうございました – pk786

関連する問題