@ SuppressWarnings ( "rawtypes" ) @ Override public void transform ( ITestAnnotation annotation , Class testClass , Constructor testConstructor , Method testMethod ) { annotation . setInvocationCount ( StringUtils . countMatches ( getBrowser ( ) , "," ) + 1 ) ; }
overrides the basic TestNG transform function to provide dynamic access to an invocation count