Forum Discussion

Cooly12's avatar
Cooly12
Occasional Contributor
5 years ago

SOAPUI Error by Compilation

Hello Everybody

 

I keen on to inform you that the Last time the suggestion from Rao wonderful was!

Thank you at all the community for such communication possibility.

now i have only this Bug. See below:

groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.support.XmlHolder.getxml() is applicable for argument types: () values: [] Possible solutions: getXml(), get(java.lang.Object), getAt(java.lang.String), getAt(java.lang.Object), get(java.lang.Object, java.lang.Object), putAll(java.util.Map) error at line: 56

 

Could someone tells me what.s wrong here?

 

Best Greetings,

 

Charlemagne

Here is the implementation of line 56.

def name=testRunner.testCase.testSuite.testCases["AddEmployee"].getPropertyValue("name")
def id=testRunner.testCase.testSuite.testCases["AddEmployee"].getPropertyValue("id")
def Department=testRunner.testCase.testSuite.testCases["AddEmployee"].getPropertyValue("Department")
def age=testRunner.testCase.testSuite.testCases["AddEmployee"].getPropertyValue("age")


xmlAdd.setNodeValue("//typ:AddEmployee/typ:name",name)
xmlAdd.setNodeValue("//typ:AddEmployee/typ:id",id)
xmlAdd.setNodeValue("//typ:AddEmployee/typ:Department", Department)
xmlAdd.setNodeValue("//typ:AddEmployee/typ:age",age)

//Save all this with:
def newAddxml=xmlAdd.getxml(); (Line 56)

  • Change: def newAddxml=xmlAdd.getxml();

     

    To: def newAddxml=xmlAdd.getXml();

     

    The last X should be capitalized.

  • Change: def newAddxml=xmlAdd.getxml();

     

    To: def newAddxml=xmlAdd.getXml();

     

    The last X should be capitalized.

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you Jsheph01 for the superquick help:smileyhappy: