Category: Groovy
-
Create random 16-digit number with Groovy in soapUI
It’s easy as 1, 2, 3. Create a DataGen step with the following: Type = ScriptMode = Read Add the following script: long number = (long) Math.floor(Math.random() * 9000000000000000L) + 1000000000000000L That’s it!