I have different projects for web ordering. I have POM framework with TestNG and maven. I have multiple test cases that I have automated in different projects depending upon flows.
Flows can be:
Takeout for one client Steps:
- Add Item
- Checkout
Takeout for another client Steps:
- Select Location
- Add Item
- Checkout
As we can see there is an additional step to select location for second client. So, what I want to do is have one project and that contains test cases for both the client separately in different folders and package and run it using testng.xml ? If I add all the test case in testng.xml and run it, then i will have many failed test cases which I don't want. So is there any way how to run only specific test cases depending on url or depending upon clients name? There is a way to do with IAnnotationTransformer but I can't think of the logic. Help will be much appreciated.
Thank you in advance.