Etks
8 years agoOccasional Contributor
Problem with random number generation (ThreadLocalRandom) in LoadUI Pro
I have testcase in SoapUI that I've used to create a testcase in LoadUI Pro. The testcase has two steps: The first is a Groovy script in which I create two sets of geographic coordinates (latitud...
- 8 years ago
Nevermind, I found the solution. Saving the variables on the property level was the problem. Changing the last four lines to this solved the problem.
testRunner.testCase.setPropertyValue("testdata.randomLatitude", lat1.toString()) testRunner.testCase.setPropertyValue("testdata.randomLongitude", lng1.toString()) testRunner.testCase.setPropertyValue("testdata.randomLatitude2", lat2.toString()) testRunner.testCase.setPropertyValue("testdata.randomLongitude2