Load testing data-driven TestCases concurrently with a shared Groovy datasource
This recipe builds on the first one to show a simple way to use the same test data shared between TestCases
run by multiple threads. We might want to do this in case we want each row of the test data to be used only once. For example, it isn't always great to have multiple invoices created with the same details, as it creates duplicate invoice test data. The service under test is the same invoice v3 service as in the previous recipe.
Getting ready
This recipe can be done as part of the same project that was used in the last recipe. So if you haven't already done the first recipe, you can find its completed Project
and TestSuite
from the chapter 9
samples. You may also want to look over the last recipe's Getting ready section to see how to use the invoice v3 test service, and also the H2 database. This recipe's SoapUI project InvoiceV3LoadTest
and SharedGroovyDatasourceTestCase
can also be found in the chapter...