How to create independent test cases with data varaitons


If I have scenario where I need to execute same test case against different sets of data

Each data might result in different exceptions or can pass.

I m trying to attach the data set to the test case using excel file.

After executing, in the event of failure/exception for one set of data the test execution stops (I m executing this from studio)

For example : I have 3 rows of data

  1. Pass
  2. Invalid data - test fails
  3. Test cases is not executed as the previous one is failed.

How should I design cases to be independent?

You can do this using data driven testing where you can add variations of your data in an excel file and run your test case with data variations. Attaching the documentation below: