Forum Discussion
Awesome
16 years agoFrequent Contributor
hi i was trying to copy the above example, but i get the following error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion.a() is applicable for argument types: (com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion, java.lang.String) values: {com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion@9cf715, "assert(1==2)"}
--------------------code-------------
import com.eviware.soapui.SoapUI;
import com.eviware.soapui.model.testsuite.*;
def assertion = testRunner.getTestCase().getTestStepByName("q1").addAssertion("Script Assertion")
assertion.name = "ScriptAssert1"
assertion.a(assertion, "assert(1==2)")
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion.a() is applicable for argument types: (com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion, java.lang.String) values: {com.eviware.soapui.impl.wsdl.teststeps.assertions.ProGroovyScriptAssertion@9cf715, "assert(1==2)"}
--------------------code-------------
import com.eviware.soapui.SoapUI;
import com.eviware.soapui.model.testsuite.*;
def assertion = testRunner.getTestCase().getTestStepByName("q1").addAssertion("Script Assertion")
assertion.name = "ScriptAssert1"
assertion.a(assertion, "assert(1==2)")
Related Content
Recent Discussions
- 7 days agoemoya