Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99403

Skip Test cases based on URL

$
0
0

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:

  1. Add Item
  2. Checkout

Takeout for another client Steps:

  1. Select Location
  2. Add Item
  3. 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.


Viewing all articles
Browse latest Browse all 99403

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>