I am learning selenium. I am trying to get into more and more automation.
Scenario (example): We are working in agile 2 week sprints. We have a release after every 3 sprints.
In our framework we have used the hybrid approach (combination of data driven and POM). Every test class has 40 test cases and we have 20 test classes. In total of 3 sprints, there are 800 test cases out of which we need to select 500 test cases for regression.
Question: which method we should use
1: using testNG annotation groupBy to give a name as a regression and then create a testng.XML file (or regression.XML) and pass with the group. If yes then how to declare in our XML file?
2: is there any better approach?