Forum Discussion

Logica_Norway's avatar
Logica_Norway
Occasional Contributor
15 years ago

Distributing the Load

Hi,

I am running two (WS1 and WS2) webservices requests in the SouapUI Pro and I have loaded the test with 30 threads. I have to divide the load of 30 threads between WS1 and WS2 with 20 and 10 threads respectively. Please let me know how to distribute the load between 2 or more webservice requests.

Regards,
K. Kalyan

5 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Basically you have to change endpoint before sending request. So, either you add groovy script, before request, that changes endpoint based on context.ThreadIndex or add  LoadTestRunListener.beforeStep which will do the same thing.

    Does this work for you?
    robert
  • Logica_Norway's avatar
    Logica_Norway
    Occasional Contributor
    Hello Robert,

    I am new to SoapUI. I do not know much about the Groovy scripts. Could you please let me know exactly how the script would look like. In fact, if you give me the syntax, that would be great.

    K.Kalyan
  • Logica_Norway's avatar
    Logica_Norway
    Occasional Contributor
    It would be great if you could send some examples for this.

    Regards,
    KK