So, what is the error you are getting here?
This is the error:
groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.setPropertyValue() is applicable for argument types: (java.lang.String, java.lang.String) values: [InteressentNr1, 6913050] error at line: 20
Ok, you are getting error at line 20. Actually setPropertyValue("", Val) always accepts String. Try to store prop.getName to a String value and then pass there. Like this -
def testStep = testRunner.testCase.testSteps["Properties"] if (testStep.getPropertyCount() > 0){ for (prop in testStep.getPropertyList()){ for(int i=0;i<size;i++){ Cell f=sheet1.getCell(0,i) field=f.getContents() Cell f1=sheet1.getCell(1,i) value=f1.getContents() String propName = prop.getName() log.info propName if(prop.getName()==field){ testRunner.testCase.testSteps["Properties"].setPropertyValue(propName, value) } else{ log.info "Not Found" } } } }
Its giving same error.
Please recheck again. I have changed the line 20
It worked. Thank you so much
Thats good. And remember the rule for this community.
Good Luck !
Subject | Author | Latest Post |
---|---|---|