Forum Discussion

payam's avatar
payam
Contributor
12 years ago

Scheduler (interval) is not working

This is happening in LoadUI Pro 2.6.x 64 bit (Windows 7)
But there is no such problem in 2.1.2

The interval scheduler is not functioning correctly and even doesn't show the graphical part of the scheduler. It makes the generators send only 1 request every 10 seconds. Please check the attached screen capture.

Please let me know what to do to fix it.

8 Replies

  • Hi,
    Yes you are right, the looks of the scheduler was better before 2.5.0. I have added a issue(LOADUI-1134) to our internal bug tracking system to bring back the graphical part to the scheduler.

    But the functional part should still be working fine. I tried it and dint find anything wrong with it. Could you please elaborate on the functional problems you are having. I couldnt reproduce the " It makes the generators send only 1 request every 10 seconds", maybe you could send us a LoadUI project and a step by step guide that reproduces this issue?

    Thanks,
    Max
    LoadUI developer
  • You are right when the interval initiate in the middle of the load. but if you do it the way like 0 at the beginning for 5 seconds, you'll see what I'm saying. Please check attached script.
  • Hi again,
    I cant see any script attached. I know we have a few problems with the Schedulers but i cant reproduce the one you are describing.

    These are the steps i´m doing when trying to reproduce:
    1 - start loadui, create a project, add a Interval Scheduler, a Fixed Rate Generator and a Web Page Runner.
    2 - set the Interval Scheduler to begin at 0 and run for 5 seconds.
    3 - connect the Scheduler to the Fixed Rate Generator
    4 - connect the Fixed Rate Generator to the Web Page Runner
    5 - run test

    Result: the interval scheduler turns on the generator for 5 seconds making ~ 50 requests and then turns it off. All as expected.

    Could you provides us with a step by step guide on how you are reproducing the issue?

    Regards,
    Max
  • Ok, perhaps I don't understand how an interval schedueler should work. Please check the attached file. it is supposed to do nothing from second 0 to 5 and then send 5 request/sec of openning google.com web page.
    Would you please shed a light for me to understand why I see this behavior?

    1- it sends 1-2 reques at the beginning (that should be nothing)
    2- after five seconds it sends 1-2 requests every second.
    3- when we reach to second 10, total 6-9 requests are sent while it should be 5x5 = 25

    I tried to import this file with LoadUI 2.6.2 32 bit (free) in another pc and it didn't load it (which seems to be a defect). So I created a similar one and saw exactly same in different machine.
    Hey, I've been working with LoadUI for over a year, PLEASE!!!
  • update:
    I just made another one with free version 32 bit and recorded the screen. I had to make it fast and shrink the window and lower the quality as much as I could to be able to create a video less than 2mb to be attachable.
  • Hi payam,

    I have downloaded the latest Open-source version of LoadUI (2.6.2), ran the exact same test as you but it worked as expected for me.
    I actually just changed one thing: the Scheduler is supposed to go before the Generator, so you should have the following setup:

    - Scheduler -> Generator -> Runner

    In your description, you say you expect nothing to happen in the first 5 seconds. However, in the video, I can see you set "Start At" to 0.
    Therefore, LoadUI should actually generate requests from the beginning of the test (t= 0s) until 5 secs later (t = 5s), because you set "Duration" to 5 secs. And in total, it should have generated 25 requests approximately, as you mentioned.

    There seems to be something going wrong with your requests though. Notice that you got 10 rows in the Table Log already from the first moments of the test... also notice that your requests are failing, which is probably causing the unexpected results.

    I suggest you try to find out why your requests are all failing (you probably should use your own server to check your load test setup, Google is very pro-active in blocking people who hit their servers more than they wish) then see if at least when your requests succeed, you get the expected results.... then we can check why when you have failed requests, LoadUI does not seem to generate the expected load (it could be due to numerous factors, such as the "burst size" you have set to you Generator - this is actually how many Virtual Users you want the Generator to represent -, maximum number of internal Threads used and internal thread queue size, which you can configure in the Global Settings, or your LoadUI environment being corrupt. In the latter case, you might want to do the following:

    - In your ~/.loadui folder, delete the controller-cache folder. It's ok do do that, it just caches some LoadUI code to speed up startup...
    - Restart LoadUI.

    Regarding the fact that it "doesn't show the graphical part of the scheduler", you're absolutely right and we're very sorry for this problem! We will make sure to fix it as soon as possible.

    Please let us know if we can do anything else to help you.

    Best regards,

    Renato
    SmartBear Software
  • Hi Renato,

    - When I switch interval and generator positions, interval doesn't affect the load at all. it seems that generator doesn't care there's a schedueler attached to it. it means that after 5 seconds, the load continues with no interrupt.
    - About the fails, you're right because as I mentioned I was recording athe screen from another PC which has network restrictions, but the other one ( Pro version in the first machine) was/is all success.
    - I've deleted that folder and nothing changed.

    I guess I should wait for your next release with corrected graphical part, so it might work fine automagically.

    Thanks.
  • I believe we will be able to fix the graphical part of the Scheduler in the next release, but that will depend on the prioritization the issue gets until then... we will keep you informed. For now, please try to follow my instructions in the previous message as we have been able to use the Scheduler successfully as described.

    Renato
    SmartBear Software