Load testing data-driven TestCases concurrently with separate Groovy datasources
This recipe is partly a warm-up on simple threaded load testing, but also lays the groundwork for better understanding how a data driven test case behaves when tested concurrently, that is, by using multiple threads. The example test case builds on Chapter 2, Data-driven Testing and Using External Datasources, Groovy data driven recipes. This is what it does when called:
The service under test is a partially implemented version of invoicev3
from chapter 1
samples. So that we can study the results of our load testing, the createInvoice
operation has been implemented to write invoice request data to an H2 database, which we can query afterwards.
Getting ready
The example, invoicev3 web service WSDL (/invoicev3/wsdl/Invoice_v3.wsdl
), and source code can be found in the chapter 9
samples. The service requires a Java JDK and was generated using Apache CXF following the techniques mentioned in Chapter 1, Testing and...