如何从 TestSuite 安装脚本访问测试用例 属性
How to access testcase property from TestSuite setup script
我打算从 excel 中读取数据并将它们设置为测试用例级别的属性。
所以我正在尝试从测试套件的设置脚本中设置数据,
像
log.info testSuite.testCase.getTestCaseByName('OW_Y_D_DE_UMNR').getName()
但我收到一条错误消息
groovy.lang.MissingPropertyException: No such property: testCase for class: com.eviware.soapui.impl.wsdl.WsdlTestSuite Possible solutions: testCases
好的,看了 the documentation for testSuite 我想你只需要:
testSuite.getTestCaseByName('OW_Y_D_DE_UMNR').getName()
我打算从 excel 中读取数据并将它们设置为测试用例级别的属性。
所以我正在尝试从测试套件的设置脚本中设置数据, 像
log.info testSuite.testCase.getTestCaseByName('OW_Y_D_DE_UMNR').getName()
但我收到一条错误消息
groovy.lang.MissingPropertyException: No such property: testCase for class: com.eviware.soapui.impl.wsdl.WsdlTestSuite Possible solutions: testCases
好的,看了 the documentation for testSuite 我想你只需要:
testSuite.getTestCaseByName('OW_Y_D_DE_UMNR').getName()