我正在通过命令行成功执行SoapUI(5.2.1)测试。
但是我总是在执行期间遇到此错误。每次测试都会出现错误,但它们总是成功通过。
有什么线索发生了什么?项目的一些错误配置?
错误:
18:44:17,301 ERROR [EvalPropertyResolver] Error evaluating script
groovy.lang.MissingPropertyException: No such property: testStep for class:
com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase
Possible solutions: testSteps, testSuite
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at Script1.run(Script1.groovy:1)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92)
at com.eviware.soapui.model.propertyexpansion.resolvers.EvalPropertyResolver.doEval(EvalPropertyResolver.java:164)
at com.eviware.soapui.model.propertyexpansion.resolvers.EvalPropertyResolver.resolveProperty(EvalPropertyResolver.java:144)
at com.eviware.soapui.model.propertyexpansion.PropertyExpander.expand(PropertyExpander.java:190) ...
...
编辑根据评论
其中一个请求有以下声明,它正在使用SoapUI,但不是从testrunner运行时。
<id>${=modelItem.testStep.name}</id>
答案 0 :(得分:1)
您可以使用以下更改 更改自:
<id>${=modelItem.testStep.name}</id>
要强>
<id>${= context.currentStep.name}</id>