Forum Discussion

Bjornzki's avatar
Bjornzki
New Contributor
12 years ago

Which Generator component (combination) can do this?

Hello,
i want to make a LoadUI test with one runner component.
I need a generator component that:
A] starts with an initial load of 5 req/sec.
B] After X minutes in want to increase with 5 req/sec (not gradually, but at once)
C] Repeats step B for duration Y

Is the a component (combination) for that?

Currently i'm using Interval and Fixed rate components for each timeframe, which mounts up to about 40 components on my canvas.
I guess a generator component like that would be very usefull.

Thank you for your help!
  • Hi Bjornzki,

    I don't think you can achieve that easily with the existing components, but you could probably do it easily if you are a programmer by creating your own new component that does that... you can do it by copying and modifying as appropriate the Groovy code (which is very similar to Java code) for the "Ramp Sequence" component. You just need to change it slightly so that instead of gradually increasing/decreasing the rate, to do it abruptly.

    The LoadUI components are located in the folder called "script-components" under you LoadUI installation folder. If you create a new groovy file, with a different name from the existing components, LoadUI will understand it as being a new component. The name of the file is the name of the component.

    Hope this helps!

    If you are a Pro customer we can probably give you hand with that.... open a ticket in the Support menu and refer to this thread.

    Regards,

    Renato
    SmartBear Software