Forum Discussion

PeterKlim's avatar
PeterKlim
Contributor
12 years ago

Load Test to log each response time

I created a project with a test case that has 4 test steps. It has a load test.
It only has 1 thread, repeated to run every 10 minutes (test delay), with 1 XML file as the data source (from a Directory). It will execute for 8 hours (Total Runs limit = 6 per hr X 8 hrs = 48).
So every 10 minutes I will get 1 response time.

I created 7 more projects set the same way. I want to run all 8 load tests at the same time. I need it to show me the response time for each test, each time it runs the test (so 48 response times per project = 8 X48 = 384).

Only when I run it as a TEST CASE (not LOAD TEST) do I see the response time (in the "SoapUI Log"). But that requires me to sit all day long clicking the run button in each test every 10 minutes. When I run it as a Load test, i only get the sent and received time. And all 8 tests are merged intertwined in 1 log, so no way to figure out what is reported from each test.

Any suggestions?

6 Replies

  • Your best bet is probably to create an event listener, specifically one listening for the LoadTestRunListener.afterTestStep event.

    Read more about event handlers here: http://www.soapui.org/Scripting-Propert ... dlers.html

    We don't really support user-defined Groovy scripts like this one, so it isn't possible for me to test this myself, but I think you will get the number you're looking for using the expression testStepResult.timeTaken .

    Good luck!

    Manne
  • Thanks Manne.

    Being pressed for time, would using LoadUI or LoadUI Pro with my SoapUI Pro script allow me to accomplish what I am try to doing without the need for coding? I definitely want to learn Groovy, but right now have absolutely no experience in it or Java. (I only know VBscript and the language used by WinRunner and SilkTest)

    Peter
  • Hi Peter,

    LoadUI can definitely do this! To get you started:


    • A SoapUI Runner to run the SoapUI TestCase (you can just reuse the existing TestCase).

    • A TableLog connected to the SoapUI Runner, configured to save its content to a file. This will give you the response times.

    • You should just need a single LoadUI project for this.


    Documentation, including videos, is freely available at loadui.org. Support is given to LoadUI Pro customers.

    Regards

    Henrik
    LoadUI team
  • Thanks Guys!
    I know the LoadUI non Pro version is compatible with SoapUI Pro. But to accomplish this particular task, do I need the Pro version of LoadUI? (I haven't downloaded LoadUI yet)

    Peter
  • Hi,

    According to LoadUI team you should be able to accomplish your task just with the LoadUI Open Source version. So, give it a try!

    Regards,
    Shadid
    SmartBear Sweden.