public static void initReportData ( List < ISuite > suites ) { logger . entering ( suites ) ; if ( ! isReportInitialized ) { for ( ISuite suite : suites ) { Map < String , ISuiteResult > r = suite . getResults ( ) ; for ( ISuiteResult r2 : r . values ( ) ) { ITestContext tc = r2 . getTestContext ( ) ; ITestNGMethod [ ] methods = tc . getAllTestMethods ( ) ; for ( ITestNGMethod method : methods ) { method . setId ( UUID . randomUUID ( ) . toString ( ) ) ; } } } isReportInitialized = true ; } logger . exiting ( ) ; }
init the uniques id for the methods needed to create the navigation .