0

そこで、次のリクエストがあります。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
    <soapenv:Body>
     <ns2:GetFacilityRequest xmlns:ns2="http://www.va.gov/VINCIVAFacility">
     <RequestMessageID>123</RequestMessageID>
     <MessageSentDateTime>2012-07-17T13:04:31.238-06:00</MessageSentDateTime>
     <SendingApplication>soapUI</SendingApplication>
     <User>
        <UserID>123</UserID>
     </User>
     <FacilityID>${Facilities#FacilityID}</FacilityID>
     </ns2:GetFacilityRequest>
   </soapenv:Body>
</soapenv:Envelope>

このテストを実行すると、最初のテストは常に FacilityID フィールドに何も送信せず、失敗します。これを修正するにはどうすればよいですか?

4

1 に答える 1

0

${Facility#FacilityID} の 'Facilities' とは..異なるレベルについては、このように記述できます ${[scope]propertyName[#xpath-expression]}

ここで、スコープは次のリテラル値のいずれかです。

#Project# - references a Project property
#TestSuite# - references a TestSuite property in the containing TestSuite
#TestCase# - references a TestCase property in the containing TestCase
#MockService# - references a MockService property in the containing MockService
#Global# - references a global property (optional)
#System# - references a system property
#Env# - references a environment variable
[TestStep name]# - references a TestStep property within the current TestCase
于 2012-10-24T05:05:33.880 に答える