INNER CODE UNIT · Java
getTestExecutionContext
AppiumTestDistribution/AppiumTestDistribution · src/main/java/com/context/SessionContext.java:37
public static synchronized TestExecutionContext getTestExecutionContext(long threadId) {
return allTestsExecutionContext.get(String.valueOf(threadId));
}
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();