private void execute()

in gepard-core/src/main/java/com/epam/gepard/AllTestRunner.java [137:182]


    private void execute(final String[] args) {
        ConsoleWriter consoleWriter = new ConsoleWriter(environment);
        String propFileList;
        String testListFile = null;
        try {
            consoleWriter.printApplicationInfoBlock();
            if ((args.length < 1) || "/?".equals(args[0]) || "--help".equalsIgnoreCase(args[0]) || "help".equalsIgnoreCase(args[0])) {
                consoleWriter.printStartFailureBlock();
                exitFromGepard(ExitCode.EXIT_CODE_WRONG_NUMBER_OF_PARAMETERS_OR_HELP_REQUEST);
            }

            propFileList = args[0];
            initProperties(environment, propFileList);

            consoleWriter.printParameterInfoBlock(propFileList);
            testListFile = environment.getProperty(Environment.GEPARD_TESTLIST_FILE);

            //initiate the remote control if requested
            if (environment.getBooleanProperty(Environment.GEPARD_REMOTE_ENABLED)) {
                int gepardPort = Integer.parseInt(environment.getProperty(Environment.GEPARD_REMOTE_PORT));
                AllTestRunner.gepardRemote = new RemoteControlHandlerThread(getRemoteControlHandler(), new ServerSocketFactory(), gepardPort);
                AllTestRunner.gepardRemote.setName("GEPARD Remote Control"); //set its name
                AllTestRunner.gepardRemote.start(); //start remote control
            }

            //if full remote control, then wait for the kill sign
            if (environment.getBooleanProperty(Environment.GEPARD_REMOTE_FULL_CONTROL)) {
                initiateGepardRemoteControl();
            }
            //not remote control driven, so run the tests
        } catch (Throwable exc) {
            exitFromGepardWithCriticalException("\n--- GEPARD EXCEPTION, PLEASE CHECK THE CONFIGURATION! ---", exc, true,
                    ExitCode.EXIT_CODE_BAD_SETUP);
        }
        try {
            runAll(testListFile);
        } catch (ShutDownException e) {
            exitFromGepard(e.getExitCode());
        } catch (ComplexGepardException e) {
            exitFromGepardWithCriticalException(e.getMessage(), e.getCause(), e.isShouldExit(), e.getExitCode());
        } catch (Throwable exc) {
            exitFromGepardWithCriticalException("\n--- GEPARD EXCEPTION, PLEASE REPORT IT TO THE MAINTAINERS! ---", exc, true,
                    ExitCode.EXIT_CODE_UNKNOWN_ERROR);
        }
        exitFromGepard();
    }