void runAll()

in gepard-core/src/main/java/com/epam/gepard/AllTestRunner.java [223:264]


    void runAll(final String testListFile) throws Exception {
        logFolderCreator.prepareOutputFolders();
        //---------------
        GenericListTestSuite gSuite = tryToCreateTestSuiteList(testListFile);

        handleTestListLoadTestCase();
        systemUnderTestVersion = environment.getProperty(Environment.SYSTEM_UNDER_TEST_VERSION);

        //variable for multi thread results
        AllTestResults allTestResults = new AllTestResults();

        //now remember when we started the test
        long startTime = System.currentTimeMillis();
        //take care about the threads
        initiateAndStartExecutorThreads();

        //now the test is running, we have nothing else to do just prepare the summary result, first the header
        Properties props = new Properties();
        Calendar cal = Calendar.getInstance();
        DateHelper dateHelper = new DateHelper();
        props.setProperty("Date", dateHelper.getShortStringFromDate(cal));
        //set up Loggers
        LogFileWriter htmlLog = logFileWriterFactory.createSpecificLogWriter("index.html", "html", Environment.GEPARD_HTML_RESULT_PATH, environment);
        LogFileWriter csvLog = logFileWriterFactory.createSpecificLogWriter("results.csv", "csv", Environment.GEPARD_CSV_RESULT_PATH, environment);
        LogFileWriter quickLog = logFileWriterFactory.createSpecificLogWriter("results.plain", "plain", Environment.GEPARD_RESULT_PATH, environment);
        prepareHeaders(props, htmlLog, csvLog, quickLog);

        resultCollector.waitForExecutionEndAndCollectResults(allTestResults, htmlLog, csvLog);
        //Test Execution is ended
        long endTime = System.currentTimeMillis();

        //close threads, if any
        executorThreadManager.closeRunningThreads();
        //After running the tests, finalize the report
        reportFinalizer.finalizeTheReport(gSuite, allTestResults, systemUnderTestVersion, endTime - startTime, props);

        logFinalizer.finalizeLogs(props, htmlLog, csvLog, quickLog, executorThreadManager.getThreadCount());
        CONSOLE_LOG.info("\n");

        failureReporter.generateTestlistFailure(); // generate the testlist-failure.txt file to help re-execution
        CONSOLE_LOG.info("Gepard Test Done.");
    }