[英]groovy.lang.MissingPropertyException: No such property: getTestCaseByName for class:
Did any one face this issue? 有没有人面对这个问题? is there any solution for this?
这有什么解决方案吗?
To run the step InvalidLoginAttempt from test case session I have tried the below script 从运行测试用例会话 步骤 InvalidLoginAttempt我曾尝试下面的脚本
testRunner.testCase.testSuite.getTestCaseByName("Session").runTestStepByName("InvalidLoginAttempt")
It was throwing 它在扔
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runTestStepByName() is applicable for argument types: (java.lang.String) values: [InvalidLoginAttempt] Possible solutions: getTestStepByName(java.lang.String), getTestStepByName(java.lang.String) error at line: 4 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)错误
So tried changing 所以尝试改变
testRunner.testCase.testSuite.getTestCaseByName("Session").runTestStepByName["InvalidLoginAttempt"]
getting below error. 低于错误。
groovy.lang.MissingPropertyException: No such property: runTestCaseByName for class: com.eviware.soapui.impl.wsdl.WsdlTestSuite error at line: 4 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.