Forum Discussion

pratoa's avatar
pratoa
Occasional Contributor
8 years ago
Solved

Creating Load Test using Wsdl classes in java project. Having each thread to be different

Hi,   I am creating a Load Test using the com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest class in my Java project. When I run the loadTest it works, and the endpoint does what it is supposed to...
  • nmrao's avatar
    nmrao
    8 years ago

    Then you can define the list with valid values in a groovy script before json request step

    ​def list = [12343, 12345, 342432,3432,32131]

    def index = new Random().nextInt(list.size())
    context.testCase.setPropertyValue('memberId', "${list[index]​.toString()}​")