Forum Discussion

AndyHughes's avatar
AndyHughes
Regular Contributor
15 years ago

[Resolved] Statistics when running from command prompt

I've just successfully ran a loadui test from the command prompt (or at least I think I have). The .csv file which usually accompanies this test is nowhere to be seen. Is it created when running from the command prompt? What am I dong wrong? It's kind of useless if not.

Also what does the garbage collection do? currently set to every minute I think. Thanks

10 Replies

  • AndyHughes wrote:
    I've just successfully ran a loadui test from the command prompt (or at least I think I have). The .csv file which usually accompanies this test is nowhere to be seen. Is it created when running from the command prompt? What am I dong wrong? It's kind of useless if not.

    Which CSV-file do you refer to? LoadUI doesn't create any CSV-files by default, although you can make the TableLog Component output CSV-files.

    AndyHughes wrote:
    Also what does the garbage collection do? currently set to every minute I think.

    Garbage collection is a very technical thing related to software internals which you shouldn't need to be bothered with -- it basically makes sure that things that are no longer used in loadUI (e.g. a component that the user deleted) gets unloaded from your computers main memory (this is explained in detail here). Anyway, in the latest nightly I've removed the messages about garbage collection.

    Cheers

    /Henrik
    eviware.com
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    Yeah I mean the csv that is created via the table log. I thought that the command line runner would do exactly what running the test in normal LoadUi would do including producing the csv of the table log. Does it not do this? How do you access your resulting statistics if not.

    Also
    I've just successfully ran a loadui test from the command prompt (or at least I think I have).


    As I say I think it ran. It appeared to but then there was nothing recorded in 'samples' how would I know if anything worked? I tried to produce a report too using -r but nothing......

    help appreciated.
  • The command line runner should run the project exactly the same as in loadUI. While running, you should get console output each second reporting the current execution values, which should look something like this:


    ------------------------------------
    RUNNING TEST
    TARGET Project 28
    LIMITS Time: 00:00:10 Samples: - Failures: -
    ------------------------------------

    13:38:01,064 INFO [CommandRunner] Time: 00:00:00 Samples: 0 Failures: 0
    13:38:02,064 INFO [CommandRunner] Time: 00:00:01 Samples: 10 Failures: 0
    13:38:03,064 INFO [CommandRunner] Time: 00:00:02 Samples: 20 Failures: 0
    13:38:04,064 INFO [CommandRunner] Time: 00:00:03 Samples: 30 Failures: 0
    13:38:05,064 INFO [CommandRunner] Time: 00:00:04 Samples: 41 Failures: 0
    13:38:06,064 INFO [CommandRunner] Time: 00:00:05 Samples: 51 Failures: 0

    ...

    13:38:16,209 INFO [CommandRunner]

    ------------------------------------
    TEST EXECUTION COMPLETED
    FINAL RESULTS: 00:00:10 Samples: 99 Failures: 0
    ------------------------------------


    If this isn't working, please try installing the latest nightly build if you are running the stable release from SourceForge, as we have made a lot of improvements since it was released.

    Regards,
    Dain
    eviware.com
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    Yeah I thought it was suspect that there was nothing in 'samples'. I will try the most recent build. Would you expect the csv to be produced the same as in normal loadui using the command line runner?
  • Yes, loadUI's command line runner should produce the exact same load and results.

    /Henrik
    eviware.com
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    I'm afraid running the latest 1.0.2SNAPSHOT doesn't solve this problem. I'm beginning to think I must be doing something wrong - although I cant see how. Everything appears to be running but nothing but zeros is recorded in 'samples' and no file is output.?
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    Hi

    Well i navigate to the folder and run the .bat file, point to the project and test and attempt to get a report out (although what I really want is the table log).

    C:\Program Files\eviware\loadUI-1.0.2-SNAPSHOT\loadui-cmd.bat -p C:\Users\andrew.hughes\.loadui\FixedLoadService1.xml -t FixedLoad1 -r c:\desktop -F csv.

    It does launch loadui build: loadUI-2011-04-19-[1] 2011/04/19 03:15

    but then there is an error (which I'm not sure is significant) - something to do with ....bundle\loadui-fx-interface....jar

    But apart from that the test begins to run but I just get

    10:47:17,968 INFO [CommandRunner] Time: 00:01:21 Samples: 0 Failures: 0
    10:47:18,968 INFO [CommandRunner] Time: 00:01:22 Samples: 0 Failures: 0
    10:47:19,968 INFO [CommandRunner] Time: 00:01:23 Samples: 0 Failures: 0
    10:47:20,999 INFO [CommandRunner] Time: 00:01:24 Samples: 0 Failures: 0
    10:47:21,970 INFO [CommandRunner] Time: 00:01:25 Samples: 0 Failures: 0
    10:47:22,971 INFO [CommandRunner] Time: 00:01:26 Samples: 0 Failures: 0


    Thanks
  • I think I know the problem. You highlight an interesting user-interaction issue here. Probably you're were running your project in Local Mode in loadUI, right? The thing is that loadUI's command line runner will run in Distributed mode by default in loadUI 1.0(.x).

    If the above applies to you, please use the command line option -l to specify that you want loadUI to run in Local mode (here is a list of loadUI command line options).

    Hope this works!

    /Henrik
    eviware.com