What is the difference between @Factory and @DataProvider annotation?
Hey Dipen,
The @Factory method is responsible for generating instances of the test class and executing all the test methods within that class using distinct sets of data. On the other hand, the @DataProvider is associated with individual test methods, executing those specific methods repeatedly with various sets of data.
I hope this clarification proves helpful for you. Feel free to reach out for any additional queries.