Federal_Home_Lo_1
14 years agoOccasional Contributor
Issue running load tests in soapuipro >1 thread
Background:
We have process that uses web services to orchestrate a trade. To test this, we created a test case “GenericAdvanceProcess”. This test case has 16 steps.
Before running this test case we refresh production data to test systems. Once refreshed, we use yesterday’s successful trades (getadvrequest step) and create new trade request (getFinalRate) and pass it refined parameters (using requestParameters step, getProduct, get opics date, tradedate, maturitydate steps). This trade request is sent to our application server.
Our application server would respond back to “updateManualRate1” mock web service step.
This information along with rate request is submitted to our application server (simulating the confirmation step by user).
Our application server then books the trade and finishes by sending a message to “updateAdvance” step.
There is a datasource loop step that goes through the whole process again for the next trade.
This works very well for our functional testing.
Issue:
Before running it as a load test, I disabled the datasource loop step. Load tests work fine in simple strategy with 1 thread, Test delay of 1000, Random=.5, Limit =300 seconds. As soon as I change the number of threads to more than 1 for example 2 threads, the process gets stuck at the updateManualRate1 step. When I looked at the server, I see that the requests to updateManuarRate1 step was successful. However soapui does not proceed to go further than that step.
See attached files (in email) for the logs, the test case project, mock service projects. One interesting thing about the logs is that for 2 threads simple strategy, there is not http / jetty logs. Not sure if this indicates something. Are there any known issues with running load tests for testcases with mock services.
Any help here is much appreciated.
We have process that uses web services to orchestrate a trade. To test this, we created a test case “GenericAdvanceProcess”. This test case has 16 steps.
Before running this test case we refresh production data to test systems. Once refreshed, we use yesterday’s successful trades (getadvrequest step) and create new trade request (getFinalRate) and pass it refined parameters (using requestParameters step, getProduct, get opics date, tradedate, maturitydate steps). This trade request is sent to our application server.
Our application server would respond back to “updateManualRate1” mock web service step.
This information along with rate request is submitted to our application server (simulating the confirmation step by user).
Our application server then books the trade and finishes by sending a message to “updateAdvance” step.
There is a datasource loop step that goes through the whole process again for the next trade.
This works very well for our functional testing.
Issue:
Before running it as a load test, I disabled the datasource loop step. Load tests work fine in simple strategy with 1 thread, Test delay of 1000, Random=.5, Limit =300 seconds. As soon as I change the number of threads to more than 1 for example 2 threads, the process gets stuck at the updateManualRate1 step. When I looked at the server, I see that the requests to updateManuarRate1 step was successful. However soapui does not proceed to go further than that step.
See attached files (in email) for the logs, the test case project, mock service projects. One interesting thing about the logs is that for 2 threads simple strategy, there is not http / jetty logs. Not sure if this indicates something. Are there any known issues with running load tests for testcases with mock services.
Any help here is much appreciated.