astorm
15 years agoNew Contributor
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,
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,