DaveD
16 years agoOccasional Contributor
Need help getting started with Groovy scripts
I'm working with SoapUI Pro 3.0.1, and am quite a newbie with it. I have constructed a previous test that used a file datasource. But it was a CSV file, so it was pretty easy to read the values into properties, then add a Property Transfer step to transfer them to the request, submit the request, and loop back.
But now I have a situation where I will have a fixed-format file to read, and need to do similar processing. It doesn't appear that the datasource step handles fixed-format files, so I thought I could use a Groovy script for this. But I really have no idea how to go about doing this. I've read over everything I can find in the docs but I'm still at a loss how to proceed.
Any tips, pointers, or suggestions would be greatly appreciated.
Oh, I also need to extract the results that I get back and write those out to a flat file.
Thanks,
Dave D
But now I have a situation where I will have a fixed-format file to read, and need to do similar processing. It doesn't appear that the datasource step handles fixed-format files, so I thought I could use a Groovy script for this. But I really have no idea how to go about doing this. I've read over everything I can find in the docs but I'm still at a loss how to proceed.
Any tips, pointers, or suggestions would be greatly appreciated.
Oh, I also need to extract the results that I get back and write those out to a flat file.
Thanks,
Dave D