Forum Discussion

pandap's avatar
pandap
Contributor
12 years ago

[Resolved]Load Testing with unique requests

Hi,

The requirement is to do performance test of web services. I need to send 72000 request per hour from 5 different machines which are evenly spread across each machine using 72000 unique ProductID to make sure the database is not caching. So each machine will be sending 14400 request per hour which are evenly spread across 1 hours, which comes to 4 request per second (this I am able to achieve using Fixed-Rate Strategy with same ProductID). But the challenge is to use different ProductID for each request and control the request by every second.

Can this be doable using Load Testing or SoapUI functional testing.

Regards,
Prashanth
  • SiKing's avatar
    SiKing
    Community Expert
    What does your ProductID need to look like? Could you use:
    ${=Math.random()}
    If not have a look at RandomStringUtils from Apache.
    HTH
  • I want to read the product ID from the table so that I don't get invalid product ID in the response. The product are not in sequence so we may miss few if use random.
  • Thanks for the information! With small number of product id it worked fine, so will try with 1000 id's tomorrow.

    I have one querry which I was not able to uinderstand: Where do you set the testCase limit which should be equal to the number of threads, based on the information in the link.

    Thanks,
    Prashanth
  • On the far right in the load test panel, change unit from Seconds to Total runs in the dropdown, then select the exact number of test runs you want.

    Hope this helps!

    Manne
  • HI,

    Thanks for the info,I need to test this with more records in table. Currently with 10 records I am able to see that each one of the Product ID is used for the request.


    Thanks,
    PRashanth
  • I tried with 1000 records and request are unique, so this ticket is in resolved state.

    Thanks,
    Prashanth