Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a Java/TestNG UI automation framework and having some difficulties with test data management.

I use TestNG's DataProvider to pass data to the test method. I need to pass about 30 variables to test an end to end scenario and I have about 150 scenarios to test.

I saved each variable in a cell in an excel sheet and treat each row as a scenario. (150 rows, 30 cells in each row)

So I read the items in one row, create my Java object using those variables and pass that object to my test method to test one scenario.

Managing this data is a little difficult. Is there a preferred approach for this kind of problem?

share|improve this question

Excel is one of the ways to store your input data.

  1. You can also use .properties file as in a key-value pair for the same purpose.
  2. Or you create a BaseClass (or TestData Class) which you can extend(inherit) into your Test class.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.