What is the best approaches to handle data in Test Automation?

(Viral) #1

For the handling the Data in the test automation script, I’m aware about the two approaches

  • Creating a data generation scripts,

  • Predefine the data and direct use that in script

  • In the first approach, We are developing the scripts, that will run before the test and generate the data

  • In Second approach, We manually create the data like User or some configuration for user and then use that data directly into the scripts

So In the long run of the projects, What are the best approaches to handle the data that will have less maintenance ?