INNER CODE UNIT · Java

loadReportPortalProperties

AppiumTestDistribution/AppiumTestDistribution · src/main/java/com/context/SessionContext.java:46

    private static Properties loadReportPortalProperties() {
        Properties properties = new Properties();
        try {
            String reportPortalPropertiesFile = "src/test/resources/reportportal.properties";
            getOverriddenStringValue("REPORT_PORTAL_FILE", reportPortalPropertiesFile);
            LOGGER.info("Using reportportal.properties file from "
                    + reportPortalPropertiesFile);
            File reportPortalFile = new File(reportPortalPropertiesFile);
            String absolutePath = reportPortalFile.getAbsolutePath();
            if (reportPortalFile.exists()) {
                properties.load(new FileInputStream(absolutePath));
                LOGGER.info("Loaded reportportal.properties file - " + absolutePath);
            } else {
                LOGGER.info("reportportal.properties file NOT FOUND - " + absolutePath);
            }

        } catch (IOException e) {
            LOGGER.info("ERROR in loading reportportal.properties file\n" + e.getMessage());

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…