15 years ago
Passing in Properties to Test Requests with Groovy Script
Hello,
I'm new to SoapUI and have to perform a task that is a bit more complicated than most typical use cases I'd imagine. The project I'm working on needs to read data from a CSV file and replace a Property in a Test Request with this data.
Getting the data from the CSV is no problem. What I am having trouble with is the scripting code for getting the data into the Test Request Property.
The second screenshot on http://soapui.org/Functional-Testing/working-with-scripts.html looks like it might have an example of what I'm trying to do, but I can't see all the code, nor does that example project appear to be in either the regular or Pro example projects.
Is there anywhere I can find this project? Or can anyone point me to to a tutorial or code somewhere for this?
Thanks.
Greg
I'm new to SoapUI and have to perform a task that is a bit more complicated than most typical use cases I'd imagine. The project I'm working on needs to read data from a CSV file and replace a Property in a Test Request with this data.
Getting the data from the CSV is no problem. What I am having trouble with is the scripting code for getting the data into the Test Request Property.
The second screenshot on http://soapui.org/Functional-Testing/working-with-scripts.html looks like it might have an example of what I'm trying to do, but I can't see all the code, nor does that example project appear to be in either the regular or Pro example projects.
Is there anywhere I can find this project? Or can anyone point me to to a tutorial or code somewhere for this?
Thanks.
Greg