Forum Discussion

irene_smile's avatar
irene_smile
Occasional Contributor
16 years ago

modify soap request during load testing

I want to use SOAPUI to load test a standard create customer functionality.

Request needs to be modified during load test to change name of customer. How can I pass a different customer for every request that load test sends?

Thanks!

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    If you want to use a fixed set of customer names please check out the DataSource functionality in soapUI Pro which can be shared between threads during a loadtest. Alternatively if you just want to generate unique names you can add a simple inline groovy script to generate some random number into the name, for example:

    customer${=(int)(Math.random()*100000)}

    regards!

    /Ole
    eviware.com
  • irene_smile's avatar
    irene_smile
    Occasional Contributor
    Thanks so much! It helped me get the load testing going!

    Cheers!