[英]Groovy : groovy.lang.MissingMethodException: No signature of method
[英]groovy.lang.MissingMethodException: No signature of method resolution
我在Groovy中遇到一些错误消息问题。
我在设置脚本中进行了一个相对简单的调用,例如:
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++
}
我得到这个错误:
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]
当我取消注释代码“ 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]
我不确定为什么会出现这些错误。 我查看了有关 MissingMethodException的其他一些问题,但即使问题相同,答案也不适用于我的错误。
我觉得这里缺少一些简单的东西。 如何解决MissingMethodException?
我认为您的runner
班级错误。 看来您需要MockTestRunner
而不是MockTestSuiteRunner
。 MockTestRunner
是带有gotoStepByName
方法的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.