[英]groovy.lang.MissingMethodException: No signature of method resolution
I'm having some problems with error messages in Groovy. 我在Groovy中遇到一些错误消息问题。
I was making a relatively simple call in my set-up script, like: 我在设置脚本中进行了一个相对简单的调用,例如:
def count = 0
//Currently unused
//tarStep = runner.getTestStepByName("Setup and Check")
//def check = tarStep.getPropertyValue("fileCheck")
while(count < 5)
{
//if(check == true)
runner.gotoStepByName("PRequest1")
count++
}
And I get this error: 我得到这个错误:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.panels.support.MockTestSuiteRunner.gotoStepByName() is applicable for argument types: (java.lang.String) values: [PRequest1]
A similar error happens when I uncomment the code "runner.getTestStepByName": 当我取消注释代码“ runner.getTestStepByName”时,会发生类似的错误:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.panels.support.MockTestSuiteRunner.getTestStepByName() is applicable for argument types: (java.lang.String) values: [Setup and Check]
I'm not sure why those errors appear. 我不确定为什么会出现这些错误。 I looked at some other questions about MissingMethodException but even though the problem is the same the answers don't apply to my errors.
我查看了有关 MissingMethodException的其他一些问题,但即使问题相同,答案也不适用于我的错误。
I feel like I'm missing something simple here. 我觉得这里缺少一些简单的东西。 How do I resolve the MissingMethodException?
如何解决MissingMethodException?
I think your runner
is of the wrong class. 我认为您的
runner
班级错误。 It looks like you need a MockTestRunner
, rather than a MockTestSuiteRunner
. 看来您需要
MockTestRunner
而不是MockTestSuiteRunner
。 The MockTestRunner
is the one with the gotoStepByName
method. MockTestRunner
是带有gotoStepByName
方法的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.