SiKing
14 years agoCommunity Expert
race condition testing / parallel test steps
Hi all.
Has anyone successfully used SoapUI to test for a race condition?
What I would need is the ability to run only individual test steps (NOT entire test cases) in parallel. Real world example would be something like:
1. Create a unique user in a JDBC step.
2. Find an available flight in a SOAP step.
3. Find an available seat on the flight in a SOAP step.
4. Try to book the flight (a SOAP step), such that there is a unique user but each user books the same seat.
Step 4 should be "invoked" multiple times, all of them in parallel, and only one of them should succeed.
One idea that has been suggested is the use of CountDownLatch (http://www.javamex.com/tutorials/threads/CountDownLatch.shtml), however this is slightly out of my league.
Anyone have any other suggestions?
Thanx, Mark.
Has anyone successfully used SoapUI to test for a race condition?
What I would need is the ability to run only individual test steps (NOT entire test cases) in parallel. Real world example would be something like:
1. Create a unique user in a JDBC step.
2. Find an available flight in a SOAP step.
3. Find an available seat on the flight in a SOAP step.
4. Try to book the flight (a SOAP step), such that there is a unique user but each user books the same seat.
Step 4 should be "invoked" multiple times, all of them in parallel, and only one of them should succeed.
One idea that has been suggested is the use of CountDownLatch (http://www.javamex.com/tutorials/threads/CountDownLatch.shtml), however this is slightly out of my league.
Anyone have any other suggestions?
Thanx, Mark.