Wednesday, March 17, 2010

What is the best place to store test data for your automated tests?

You need test data to execute your tests. The test data is used to provide inputs to the application under test and/ or verify the test results. Test data may be used to check if the application works normally with expected inputs, handles incorrect inputs gracefully and (optionally) if the application works with multiple test data values. You can source the test data from an existing data store, create the test data by hand or automate the creation of the test data. First, view my Test Data tutorial. Then read below.

Now, the question arises where should you store test data once you have generated it? There are numerous data stores possible. Go through the table below to see a comparison of the data stores.

Ease of setupMaintainabilityRe-useCost
Text filesGood
(but it is not simple to secure the text files and it is not possible to store images in them)
(it is easy to make mistakes while creating or editing the test data)
(since you are likely quite comfortable with spreadsheets)
(since you may end up with test data in multiple sheets of multiple spreadsheets)
(requires at least the spreadsheet viewer to read the spreadsheet)
(since you first need to design the table structure to store your test data)
(due to permanent storage and the availability of tools to view and edit the test data)
(if the test data design is generic enough)
(owing to the possible high cost of the RDBMS)
Test data management toolExcellent
(due to the features provided by the tool)
Average to Excellent
(depending on the features of the tool)
(possibly, if porting to another test data management tool)
Poor to Excellent
(depending on the cost of the tool license)
(you need to know XML but it is good
for defining hierarchies)
(debugging test data may be challenging)
Application configuration filesGood
(you can take the help of developers to set up your test data)
(due to the presence of other data that is related to application settings)
(if porting to other applications under test)
Poor to Excellent
(depending on the cost of the development license)
Now, you know the different types of data stores for your automated tests.

No comments:

Post a Comment