Forum Discussion

StefanD's avatar
StefanD
New Contributor
7 years ago

Event LoadTestRunListener.afterTestStep runs only once

Hi!

Some years ago I followed https://blog.smartbear.com/soapui/soapui-pro-holiday-goodies-event-handlers-and-jdbc-connections/ and did setup it in SoaUI 5.1.2 and it was working. Now I tried the same in LoadUI NG part of ReadyAPI 2.0.2.
Now I get problem with LoadTestRunListener.afterTestStep. It runs after LoadTestRunListener.beforeLoadTest and LoadTestRunListener.afterLoadTest and then only for the first teststep.
I can get almost the same thing done with TestRunListener.afterStep but that runs for functional tests not specific for loadtests.
Why is LoadTestRunListener.afterLoadTest not working as before? Setting?
Should I use something else to save results after every teststep during loadtest with ReadyAPI?

Regards
Stefan

1 Reply

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi Stefan,

     

    Thank you for your post. I cannot reproduce the issue on my side. The "LoadTestRunListener.AfterTestStep" event is run after every test step. 

    The correct sequence of events is the following:

    1. LoadTestRunListener.beforeLoadTest

    2. LoadTestRunListener.AfterTestStep

    3. LoadTestRunListener.afterLoadTest

     

    You can add the info about the events into the log and check:

    log.info("specify the event name")

     

    If the issue persists, please open a new case with our Support Team here: https://support.smartbear.com/message/?prod=ReadyAPI and provide the following info:

    - your project file;

    - screenshots, or video which shows the issue;

    - Ready! API version which you use (Help > About Ready! API...)