![](/img/trans.png)
[英]groovy.lang.MissingPropertyException: No such property:
[英]groovy.lang.MissingPropertyException: No such property: getTestCaseByName for class:
有没有人面对这个问题? 这有什么解决方案吗?
从运行测试用例会话 步骤 InvalidLoginAttempt我曾尝试下面的脚本
testRunner.testCase.testSuite.getTestCaseByName("Session").runTestStepByName("InvalidLoginAttempt")
它在扔
groovy.lang.MissingMethodException:没有方法签名:com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runTestStepByName()适用于参数类型:(java.lang.String)values: [InvalidLoginAttempt]可能的解决方案:getTestStepByName第7行的(java.lang.String),getTestStepByName(java.lang.String)错误
所以尝试改变
testRunner.testCase.testSuite.getTestCaseByName("Session").runTestStepByName["InvalidLoginAttempt"]
低于错误。
groovy.lang.MissingPropertyException:没有这样的属性:类的runTestCaseByName:com.eviware.soapui.impl.wsdl.WsdlTestSuite第4行错误:
尝试在下面,它得到了工作.. :)
def r = testRunner.testCase.testSuite.getTestCaseByName("Session").getTestStepByName("InvalidLoginAttempt").run(testRunner, context);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.