INNER CODE UNIT · Java
addContext
AppiumTestDistribution/AppiumTestDistribution · src/main/java/com/context/SessionContext.java:32
static synchronized void addContext(long threadId, TestExecutionContext testExecutionContext) {
allTestsExecutionContext.put(String.valueOf(threadId), testExecutionContext);
LOGGER.info(String.format("Adding context for thread - %s", threadId));
}
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";