2012-10-23 33 views
0

所以我有以下要求:soapUI的數據驅動測試失敗第一次運行

<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場失敗。 我該如何解決這個問題?

+0

最初運行時返回的錯誤是什麼? –

+0

我建議在您的問題中添加更多標籤。你更有可能更多地關注它。 – davehale23

+0

Steve唯一的錯誤是需要facilityID的響應。這幾乎就像是在空白記錄中閱讀,無論出於何種原因開始。 – DarthOpto

回答

0

什麼是這裏$ '設備'{#設施} FacilityID。對於不同的水平,你可以這樣寫 $ {[適用範圍] propertyName的[#的XPath表達式]}

哪裏範圍可以下文字值之一:

#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 
相關問題