Forum Discussion

Ashik's avatar
Ashik
Occasional Contributor
13 years ago

Coying xml to soapui

hi folks,
I have an xml file placed in local disk in folder.How can i copy the xml file using groovy script in soapui.so that it gets added in teststeps directly.If script is provided it would b more needful.

Thanks
Ashik
  • import java.io.File;

    new File('d:/test/').traverse {
    file ->
    log.info 'Reading file ' + file
    def myText = file.getText()

    //do stuff here
    }



    here is an example click me