Forum Discussion

JimL's avatar
JimL
Contributor
14 years ago

Can non-Pro SOAPUI log request/response times when load test

Hi,

I was wondering if non-Pro SOAPUI has some built-in ability to create log request/response times when running a test case under load test?

Or, if not, can this be done by using some Groovy code in the test case start and teardown script? If that's the case, is there any concerns about if requests are in-flight in parallel during the load test?

Thanks,
Jim
  • JimL's avatar
    JimL
    Contributor
    Hi,

    I think that I've found one way to do this.

    What I had to do was check the "Do not disable Groovy Log" setting in the File==>Preferences==>UI settings.

    That allowed the Groovy logging to continue to be output during a load test.

    Then, in the test case that I had in the load test, I added log.info lines in the Setup script and Teardown script, to output "START TESTCASE" and "FINISHED TESTCASE", respectively.

    I also had to increase the maximum number of lines in the log (right-click in the log pane).

    Jim
  • JimL's avatar
    JimL
    Contributor
    Hi,

    BTW, the Groovy logs have date/timestamps, but the timestamps are only hh:mm:ss. Is it possible to have the timestamps in the Groovy logs include milliseconds?

    Is there something like a log4j.properties that could be tweaked to have the timestamps include milliseconds?

    Thanks,
    Jim
  • JimL's avatar
    JimL
    Contributor
    JimL wrote:
    Hi,

    BTW, the Groovy logs have date/timestamps, but the timestamps are only hh:mm:ss. Is it possible to have the timestamps in the Groovy logs include milliseconds?

    Is there something like a log4j.properties that could be tweaked to have the timestamps include milliseconds?

    Thanks,
    Jim



    Hi,

    Sorry for so many posts, but I hope some of my questions/answers helps someone else in the future ...

    I found the answer to my own question (again), here:

    viewtopic.php?f=5&t=1781

    I just changed the format in that code, and VOILA! Got millisecs!

    That really IS "elegant", and pretty cool, IMHO ...

    Jim