public static TestCaseStartedEvent withExecutorInfo ( TestCaseStartedEvent event ) { event . getLabels ( ) . add ( createHostLabel ( getHostname ( ) ) ) ; event . getLabels ( ) . add ( createThreadLabel ( format ( "%s.%s(%s)" , ManagementFactory . getRuntimeMXBean ( ) . getName ( ) , Thread . currentThread ( ) . getName ( ) , Thread . currentThread ( ) . getId ( ) ) ) ) ; return event ; }
Add information about host and thread to specified test case started event