Forum Discussion

astorm's avatar
astorm
New Contributor
15 years ago

Load custom request xml from file with groovy script

Hi All,

I am new to soapUI and still trying to understand the object model of the groovy script.

I have a need to load an XML request from file.

I figure I need a Groovy test step to load XML from file and assign it to some object. Is it the messageExchange? Or testStep?

The end test suite will probably look like this:
1. Groovy test step - load XML and assign it as a request
2. send the request
3. assertions

A sample script would be greatly appreciated! Thanks

Cheers,

1 Reply

  • rkiran416's avatar
    rkiran416
    New Contributor
    My scenario is also same:
    1. Groovy test step - change value in xml file, load XML and assign it as a request
    2. send the request

    I require a groovy script?