Groovy scripting - converting string property to integer while sending soap request by setProperty
Hi all,
I've created project level property for a node in soap request which is expecting an integer input, when i try to set that property with the desired value in groovy I'm getting below error. please kindly suggest a solution for this
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlProject.setPropertyValue() is applicable for argument types: (java.lang.String, java.lang.Integer) values: [country_name, 123] Possible solutions: setPropertyValue(java.lang.String, java.lang.String), getPropertyValue(java.lang.String) error at line: 19
Hi richie ,
I've found the mistake, i've created a test suite level property but I used setProperty method on project level property in my groovy script, below works fine
code change:
testRunner.testCase.testSuite.setPropertyValue("country_name",cin_value)
thanks a lot for ur precious time