Esempio n. 1
0
  public static SessionMap<Object, Object> getCurrentSession() {

    if (testSessionThreadLocal.get() == null) {
      testSessionThreadLocal.set(new TestSessionVariables());
    }
    return testSessionThreadLocal.get();
  }
Esempio n. 2
0
 private static void initStepListener() {
   Configuration configuration = Injectors.getInjector().getInstance(Configuration.class);
   File outputDirectory = configuration.getOutputDirectory();
   StepListener listener = new BaseStepListener(outputDirectory, getPages());
   stepListenerThreadLocal.set(listener);
   StepEventBus.getEventBus().registerListener(getStepListener());
 }
Esempio n. 3
0
 public static FirefoxProfile getFirefoxProfile() {
   return firefoxProfileThreadLocal.get();
 }
Esempio n. 4
0
 public static void useFirefoxProfile(FirefoxProfile profile) {
   firefoxProfileThreadLocal.set(profile);
 }
Esempio n. 5
0
 public static StepListener getStepListener() {
   return stepListenerThreadLocal.get();
 }
Esempio n. 6
0
 private static void setupWebdriverManager(WebdriverManager webdriverManager) {
   webdriverManagerThreadLocal.set(webdriverManager);
 }
Esempio n. 7
0
 public static StepFactory getStepFactory() {
   return stepFactoryThreadLocal.get();
 }
Esempio n. 8
0
 public static WebdriverManager getWebdriverManager() {
   return webdriverManagerThreadLocal.get();
 }
Esempio n. 9
0
 protected static Pages getPages() {
   return pagesThreadLocal.get();
 }
Esempio n. 10
0
 private static void initStepFactoryUsing(final Pages pagesObject) {
   StepFactory stepFactory = new StepFactory(pagesObject);
   stepFactoryThreadLocal.set(new StepFactory(pagesObject));
 }
Esempio n. 11
0
 private static void initPagesObjectUsing(final WebDriver driver) {
   pagesThreadLocal.set(new Pages(driver));
 }
Esempio n. 12
0
 private static void setupWebDriverFactory() {
   factoryThreadLocal.set(Injectors.getInjector().getInstance(WebDriverFactory.class));
 }