Forum Discussion

pandap's avatar
pandap
Contributor
13 years ago

[Resolved] Issue saving Load Test info to database

When running load test (fixed Rate for specific time for 30 seconds) getting following error while trying to save the request and responses to the database. I am using event handler (LoadTestRunnerListener.afterTestStep) to save the load test information to the database.

Wed Oct 23 14:04:07 EDT 2013:ERROR:java.lang.NullPointerException: Cannot invoke method add() on null object
Wed Oct 23 14:04:07 EDT 2013:ERROR:An error occured [Cannot invoke method add() on null object], see error log for details
Wed Oct 23 14:04:07 EDT 2013:DEBUG:Failed to find shared datasource [datasource#1.MySQLDataSource] for [1.MySQLDataSource]

What had been observed is once the execution is complete and progress bar shows 100% the above error are shown until then all the information is saved to the database. So I assume the threads which are waiting for responses are unable to save to database because they have lost the connection to database.

Do you have any settings which will allow to overcome the above issue.


Thanks,
Prashanth

12 Replies

  • Hi,

    I was able to find the way to submit 2 request per second using Total Runs option. But the count of Request step doesn't match with the records in the database, inserted from event "LoadTestRunListener.afterTestStep".

    Load Test Scenario: 2 request per second / With Total Runs set to 600
    Count for Request step on the report shows 600 which is as expected but number of the records inserted is 609 which is in excess. As I am capturing the raw request and response I am seeing valid request and response for all the 609 requests.

    I think even though the report show 600 count for request step, the soapui is sending few extra requests.

    THANKS,
    Prashanth
  • Hi,

    This thread contains way too many issues. Can you please open a new thread for the test step count issue? Since I assume the original issue is resolved I will mark this thread as resolved.

    Regards,
    Shadid
    SmartBear Sweden.