INNER CODE UNIT · Java
TestExecutionContext
AppiumTestDistribution/AppiumTestDistribution · src/main/java/com/context/TestExecutionContext.java:8
public class TestExecutionContext {
private final String testName;
private final HashMap<String, Object> testExecutionState;
private final String NOT_SET = "NOT-YET-SET";
private static final Logger LOGGER = Logger.getLogger(
TestExecutionContext.class.getSimpleName());
public TestExecutionContext(String testName) {
SessionContext.addContext(Thread.currentThread().getId(), this);
this.testName = testName;
this.testExecutionState = new HashMap<>();
LOGGER.info(String.format("%s - TestExecution context created", testName));
}
public String getTestName() {
return testName;
}