2012-10-23 2 views
0

그래서 나는 다음과 같은 요청이 :이 테스트를 실행하면soapUI DataDriven 시험은 처음 실행에 실패

<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 필드에 아무것도를 전송하지 않고 실패합니다. 어떻게 해결할 수 있습니까? $ {[범위] propertyName 형식 [#의 XPath는 표현은]}

범위는 곳이 될 수

+0

처음 실행시 반환되는 오류는 무엇입니까? –

+0

질문에 태그를 추가하는 것이 좋습니다. 당신은 더 많은 눈을 뜰 수 있습니다. – davehale23

+0

Steve 유일한 오류는 facilityID가 필요한 응답입니다. 어떤 이유로 든 빈 레코드에서 읽는 것과 거의 같습니다. – DarthOpto

답변

0

여기에 무엇 $에서 '시설'{시설 # FacilityID은} .. 다른 수준의 경우이 방법으로 쓸 수 있습니다 다음 리터럴 값 중 하나 :

#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