Object ODkTestLauncher

  • All Implemented Interfaces:

    
    public class ODkTestLauncher
    
                        

    Объект/статический класс с методом run, позволяющем запускать автотесты из метода "main".

    Пример:

    public class TestLauncher {
        public static void main(String[] args) {
            ODkTestLauncher.run(args);
        }
    }

    Этот механизм позволяет запускать тесты из исполняемого jar-файла.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit run(Array<String> args) Метод запускает автотесты, найденные по переданным аргументам.
      final SummaryGeneratingListener getListener()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • run

         final static Unit run(Array<String> args)

        Метод запускает автотесты, найденные по переданным аргументам.

        Аргументы передаются в формате "ключ=значение", например:

        class=your.domain.autotests.Tests
        test=your.domain.autotests.Tests#testMethod
        package=your.domain.autotests.api
        Parameters:
        args - Аргументы
        Since:

        2.1.0

      • getListener

         final SummaryGeneratingListener getListener()