Forum Discussion

Sreenivasu_Namp's avatar
18 years ago

Request-response Logging when running the load test

Hi,
I am new to using this tool.
I am trying to explore if the SoapUI generates the log file containing all the request-response details for the Load tests that we run.

I have tried the following methods and could generate the request-response log for load tests.
Please let me know if it is a limitation that we cannot log requests and responses when running the load test.

1. When I tried running the load test using the GUI, i am seeing in the Soa UI log window "Disabling logs during load test"

2. When tried to run the command liner , loadtestrunner.bat, i am entering an infinite loop that says "waiting for 1 samples.."

Here is the command that I gave for this:

loadtestrunner.bat "C:\soap_ui\PBS-soapui-project.xml" -t"C:\Program Files\eviware\soapUI-Pro-1.7\bin\soapui-settings.xml" -s"TestSuite 1" -c"TestCase 1"  -l"LoadTest 1"  -a -r

Following is the output in this case.




2007-04-23 17:42:18,963 INFO  [SoapUILoadTestRunner] setting projectFile to [C:\soap_ui\PBS-soapui-project.xml]
2007-04-23 17:42:18,963 INFO  [SoapUILoadTestRunner] setting testSuite to [TestSuite 1]
2007-04-23 17:42:18,963 INFO  [SoapUILoadTestRunner] setting testCase to [TestCase 1]
2007-04-23 17:42:19,483 INFO  [SoapUI] initialized soapui-settings from [C:\Program Files\eviware\soapUI-Pro-1.7\bin\soapui-settings.xml]
2007-04-23 17:42:19,483 INFO  [SoapUI] Missing folder [C:\Program Files\eviware\soapUI-Pro-1.7\bin\ext] for external libraries
2007-04-23 17:42:19,624 INFO  [WsdlProject] Loaded project from [C:\soap_ui\PBS-soapui-project.xml]
2007-04-23 17:42:20,134 INFO  [SoapUILoadTestRunner] Running LoadTest [LoadTest 1]
2007-04-23 17:42:20,184 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest 1] progress: 0.0, 1
2007-04-23 17:42:21,206 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest 1] progress: 0.0, 1
2007-04-23 17:42:21,767 INFO  [HttpClientSupport$Helper] Initializing SSL
2007-04-23 17:42:22,207 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest 1] progress: 0.0, 1
2007-04-23 17:42:23,209 INFO  [SoapUILoadTestRunner] LoadTest [LoadTest 1] finished with status FINISHED
2007-04-23 17:42:23,209 INFO  [SoapUILoadTestRunner] Exporting log and statistics for LoadTest [LoadTest 1]
2007-04-23 17:42:23,209 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,309 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,409 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,509 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,609 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,710 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,820 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:23,920 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,020 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,120 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,220 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,320 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,421 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,521 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,621 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,731 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,831 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:24,931 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,031 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,132 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,232 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,332 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,452 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,552 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,652 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,753 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,853 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:25,953 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,053 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,153 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,253 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,353 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,464 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,564 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,664 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,764 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,864 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:26,964 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:27,064 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:27,165 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:27,265 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:27,365 INFO  [LoadTestStatistics] Waiting for 1 samples..
2007-04-23 17:42:27,465 INFO  [LoadTestStatistics] Waiting for 1 samples..
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    sorry for the delay, this is a bug in the command-line LoadTest runner. We plan to post an updated build of soapUI Pro this weekend, which fixes this and a number of other issues..

    Even with this fix, there is no easy way to log all request/response messages in a LoadTest. You can work around this limitation with a "soapUI hack";
    1) create an xpath assertion for the request/response that you want logged and make sure that it always fails
    2) add an teststep status assertion for this request step to your loadtest (it probably already has one), and set the "max assertions" to a *very high value* (so it actually nevery fails the LoadTest.. )..

    All failed TestSteps in a LoadTest will get logged, which in the above workaround will be all requests sent.. If you do as above and *dont* specify the -r option for your LoadTest, you should even be able to run this from the command-line.

    Obviously this is not a good solution, but at least it might help you forward until we have added an option for logging as you require!

    Hope this helps, and thanks for reporting!

    regards,

    /Ole
    eviware.com
  • Scott_Tindal's avatar
    Scott_Tindal
    Occasional Contributor
    Is there an explanation for what causes the repeating "waiting for x samples" message?  I am using soapUI Pro 2.5.1, I'm not trying to do full request/response logging as in this original post, but I am using the loadtestrunner.bat to execute load tests.  Once in a while, a test gets stuck with the repeating error:
    INFO  [LoadTestStatistics] Waiting for 2 samples..

    I do have some informative log messages that are output by the test, could they be causing this issue?

    Thanks,
    Scott Tindal
  • Chas_Schley's avatar
    Chas_Schley
    Occasional Contributor
    Clever hack Ole!  Any word on a fix for this?  We're experiencing the same error while running load tests.  Unfortunately, the remedy for the error seems to be to kill the loadtestrunner.sh script, which prevents the test runner from writing the statistics file.

    Thanks!

    _chas_
  • Hi,

    Is there any updates on logging requests or responses during a load test?

    I am evaluating SoapUI Pro 4.0.1.

    Thanks,

    Ali