|Using GroovyScript in SoapUI to access and lock an external file|
I can't figure out how to get this to work with your external file, but
I can think of another way only using SoapUI. Here's my suggestion for a
- Create a new TestCase containing only a DataGen TestStep.
- Configure it so that it generates the numbers you want.
- Change its mode to "READ", so that it will generate a new value every
time the test step is run.
- Now, wherever you want one of these values, instead of accessing your
external file, add a Run TestCase TestStep to run your new DataGen test case,
and make sure to return the generated number as a property. Use it where
you need the generated number.
As I'm typing this, I just realized this only works with the pro version
of SoapUI. If you don't have a license you can get a trial from the