简体   繁体   English

groovy.lang.MissingMethodException:没有方法解析的签名

[英]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.

相关问题 Groovy:groovy.lang.MissingMethodException:方法未签名 - Groovy : groovy.lang.MissingMethodException: No signature of method jenkinspipeline groovy.lang.MissingMethodException:没有方法签名 - jenkinspipeline groovy.lang.MissingMethodException: No signature of method 捕获:groovy.lang.MissingMethodException:没有方法的签名 - Caught: groovy.lang.MissingMethodException: No signature of method groovy.lang.MissingMethodException:没有方法的签名: - groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException:没有方法签名 - groovy.lang.MissingMethodException: No signature of method 错误:groovy.lang.MissingMethodException:没有方法签名 - ERROR:groovy.lang.MissingMethodException: No signature of method groovy.lang.MissingMethodException:肥皂中没有方法--groovy脚本的签名 - groovy.lang.MissingMethodException:No signature of method --groovy script in soap groovy.lang.MissingMethodException:groovy脚本中没有方法签名 - groovy.lang.MissingMethodException: No signature of method in groovy script groovy.lang.MissingMethodException:方法的无签名:在詹金斯构建流程的groovy中 - groovy.lang.MissingMethodException: No signature of method: in groovy on jenkins buildflow Jenkins groovy.lang.MissingMethodException:没有方法签名:catchError() - Jenkins groovy.lang.MissingMethodException: No signature of method: catchError()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM