Web services soapUI数据驱动测试在第一次运行时失败
因此,我有以下要求:Web services soapUI数据驱动测试在第一次运行时失败,web-services,testing,automation,soapui,data-driven-tests,Web Services,Testing,Automation,Soapui,Data Driven Tests,因此,我有以下要求: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <ns2:GetFacilityRequest xmlns:ns2="http://www.va.gov/VINCIVAFacility"> <RequestMessag
<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>
123
2012-07-17T13:04:31.238-06:00
索皮
123
${设施#设施ID}
当我运行此测试时,第一个测试总是在FacilityID字段中不发送任何内容,并且失败。
如何解决此问题?在${Facilities#FacilityID}中的“Facilities”是什么..对于不同的级别,可以用这种方式编写 ${[scope]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
第一次运行时返回的错误是什么?我建议在您的问题中添加更多标记。Steve唯一的错误是需要facilityID的响应。不管出于什么原因,它几乎就像是在一个空白记录中读取一样。哪里定义了${Facilities#FacilityID]?