Forum Discussion

EyeLESS's avatar
EyeLESS
New Contributor
15 years ago

Runtime generator rates changing automation

Hi everybody!

I have a question. The feature allowing to change generator's rate manually during runtime is awesome! But is there any way to automate this process?

I tried to update project xml file while running test but it didn't work out. So if there any possible way to do this outside the loadUI (this condition is crucial) any advise would be very appreciated!

Tnx in advance!
  • Hi!

    just so I understand.. do you want to manually change the rate of your generator while running from the command-line? Can you elaborate?

    regards!

    /Ole
    eviware.com
  • EyeLESS's avatar
    EyeLESS
    New Contributor
    Hi!

    I'll try to give a thorough explanation. Let's say I have a simple test in my loadUI project. It has a fixed rate generator, runner, statistics and log table elements.

    Lets suppose our generator to have a fixed rate of 10 per sec. I run test. And I want to change my generator's rate to 20 per sec while my test is running! But not by turning the rate knob manualy on generator element. I want to do it by any indirect means possible. Maybe by running some script or something.

    I wrote a script which updates loadUI project XML file. But all the changes were applied only after I've reopened project. I tried to catch rate knob with Spy++ but it appeared not to be a common Windows' window which is obvious on second thought.

    So I'm pretty much stuck with it=) Any help is greatly appreciated. Or if it's impossible to achieve it would be good for me to know it=)

    PS one more time just to make everything as clear as a baby's tear=) I know I can simulate any varying load with different type of generators. But i wonder if there's possibility to change generator's rate indirectly during runtime. If it's running with rate of 10 and after some time I'd cry "Damn, let's double the load", I run some script and generator's rate changes to 20. Then after a while I'd say "Let's really rock and tripple the load" - run script and generator's rate changes to 60=) And all of this without my test stoping. All during runtime!

    Tnx in advance for any help
  • Hi!

    ok.. and by "indirect means" do you mean something outside of loadUI ? or could it be a custom "Load-Doubler" component that has a button which would double the rate of all generators it finds in the project!?

    regards!

    /Ole
    eviware.com
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    hi,

    like "Grid" strategy in soapUI, right?
    for example: working with x threads for some time, than with x+5 for another 2 hours, x+10,...

    regards,
    beno
  • At the moment, there is nothing that can do that in loadUI

    Although, depending on what you need, you can take a look at some of the other triggers, and see if you can get a similar effect.

    /Nenad
    http://eviware.com