w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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 solution:

  1. Create a new TestCase containing only a DataGen TestStep.
  2. Configure it so that it generates the numbers you want.
  3. Change its mode to "READ", so that it will generate a new value every time the test step is run.
  4. 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 website.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.