INNER CODE UNIT · Java

remove

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

    public static synchronized void remove(long threadId) {
        LOGGER.info(String.format("Removing context for thread - %s", threadId));
        allTestsExecutionContext.remove(String.valueOf(threadId));
    }

    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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…