0

I want to validate the values of the 'groups' attribute of @Test in testng. This is basically to avoid any human error. For example how can I make sure that if a test has groups attribute, the value of it must only be from a known list.

Is this possible to validate before starting the testng tests?

Sundeep Gupta
  • 1,887
  • 3
  • 24
  • 35

1 Answers1

0

Look through IMethodInterceptor or IAnnotationTransformer interfaces Here is the answer to a similar question Is it possible to put a condition to TestNG to run the test if that is member of two groups?

Community
  • 1
  • 1
user1058106
  • 530
  • 3
  • 12