Drive Realistic Data Into Your Test Assertions
Data-driven testing is when you store test data (inputs, requests, parameters, results, etc.) in some external storage (spreadsheet, XML, etc) and then use that data to drive them automatically. For example, to test your phone lookup service, you might have a list of names and their related phone numbers in a spreadsheet. You can hook up the spreadsheet to your test so you can use that data to 'drive' your tests, checking that each name gets the right phone number back.
In SoapUI Pro, creating data-driven tests comprise three basic elements:
SoapUI Pro includes a DataSource TestStep for reading test data from a number of external sources (Excel files, XML properties, JDBC sources, files/directories, etc.) and converting them into standard SoapUI Pro properties.
You can then use Property Transfer or Property Expansion to use that data in other TestSteps for requests, assertions, xpath-queries, scripts, and so on.
Then you use the DataSource Loop TestStep to loop back over the previous TestSteps for each row or record in the DataSource.
Back To All Features