Ejemplo n.º 1
0
 @BeforeMethod(alwaysRun = true)
 public final void mandatoryBeforeTestMethod(Method testMethod) throws Exception {
   try {
     SessionManager.startWebSession(testMethod, _customCapabilities);
   } catch (Exception e) {
     throw new Exception("Unable to create Session due to " + e.getMessage());
   }
 }
Ejemplo n.º 2
0
 @AfterMethod(alwaysRun = true)
 public final void mandatoryAfterTestMethod() throws Exception {
   SessionManager.killSession();
 }