Data

Data-driven testing is when you store test data (input, expected output, etc.) in some external storage (spreadsheet, XML, etc) and then use that data iteratively in your tests when running them. 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 NG Pro, creating data-driven tests comprise three basic elements:

Data source

SoapUI NG 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 NG Pro properties.

TestSteps

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.

DataSource Loop

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
Questions? Email us at sales@smartbear.com or call us +1 617-684-2600