Exemplo n.º 1
0
 @Override
 public void evaluate() throws Throwable {
   driver = MethodsForTests.getDriver();
   try {
     base.evaluate();
   } finally {
     MethodsForTests.logInAsAdmin(driver);
     MethodsForTests.usersClearing(list, driver);
     driver.quit();
   }
 }
Exemplo n.º 2
0
 @Override
 public void evaluate() throws Throwable {
   Assume.assumeTrue(SignUpPage.isSingUpWorked());
   if (authorize && authorizedUserName == null) {
     authorizedUserName = MethodsForTests.createUser(list);
     new LoginPage(driver)
         .get()
         .signIn(authorizedUserName, MethodsForTests.DEFAULT_PASSWORD);
   }
   if (!authorize) {
     driver.manage().deleteAllCookies();
   }
   signUpPage = new SignUpPage(driver).get();
   base.evaluate();
 }
Exemplo n.º 3
0
 private String getExistentName() {
   if (!authorize) return MethodsForTests.createUser(list);
   return authorizedUserName;
 }