danomano
16 years agoNew Contributor
Why is this trival script failing? (groovy supports transparent string to int..)
so..I'm a total noob to soapUI, just started looking at it today..so please bear with me..
The script below fails on line 6 with the error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.plus() is applicable for argument types: (java.lang.Integer) values: [1]
** Where id is a property defined in the Properties Test Step.
1) req = testRunner.testCase.getTestStepByName("Properties");
2) id = req.getProperty("id");
3) if (id == null) {
4) id = 999;
5) }
6) id = id+1;
Am I missing something? shouldn't this work?
The script below fails on line 6 with the error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.plus() is applicable for argument types: (java.lang.Integer) values: [1]
** Where id is a property defined in the Properties Test Step.
1) req = testRunner.testCase.getTestStepByName("Properties");
2) id = req.getProperty("id");
3) if (id == null) {
4) id = 999;
5) }
6) id = id+1;
Am I missing something? shouldn't this work?