Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Need to skip test cases at run time in testng.xml

Hi all , This is what i have to achieve in my selenium framework

  1. Read the Test cases to be run from test run section of test rail and get their external id ex ABC001. Store it .
  2. All the class file names would be like in selenium project and same would be mentioned in testng.xml as well
  3. Search all the test cases needs to be run that are read in step 1 from test rail and pass it to testng.xml at run time and skip rest of the test cases .

I am able to complete step 1 but do not know how to do step 3 .
Request your help for this