예제 #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());
   }
 }
예제 #2
0
 @AfterMethod(alwaysRun = true)
 public final void mandatoryAfterTestMethod() throws Exception {
   SessionManager.killSession();
 }