Package org.testng

Class SuiteRunnerWorker

  • All Implemented Interfaces:
    java.lang.Comparable<IWorker<ISuite>>, java.lang.Runnable, IWorker<ISuite>

    public class SuiteRunnerWorker
    extends java.lang.Object
    implements IWorker<ISuite>
    An IWorker that is used to encapsulate and run Suite Runners
    • Constructor Detail

      • SuiteRunnerWorker

        public SuiteRunnerWorker​(ISuite suiteRunner,
                                 org.testng.internal.invokers.SuiteRunnerMap suiteRunnerMap,
                                 int verbose,
                                 java.lang.String defaultSuiteName)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • compareTo

        public int compareTo​(@Nonnull
                             IWorker<ISuite> arg0)
        Specified by:
        compareTo in interface java.lang.Comparable<IWorker<ISuite>>
      • getTasks

        public java.util.List<ISuite> getTasks()
        Specified by:
        getTasks in interface IWorker<ISuite>
        Returns:
        list of tasks this worker is working on.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getTimeOut

        public long getTimeOut()
        Specified by:
        getTimeOut in interface IWorker<ISuite>
        Returns:
        the maximum time allowed for the worker to complete the task.
      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface IWorker<ISuite>
        Returns:
        the priority of this task.