Esempio n. 1
0
 @Test
 public void testSelectProduct() throws InterruptedException, IOException, Exception {
   try {
     System.out.println("Executing testSelectProduct Scenario");
     methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
     baseScreen.selectProduct(methodName);
   } catch (Exception t) {
     baseScreen.takesScreenshot(methodName);
     System.out.println("Exception in testSelectProduct Scenario" + t.getMessage());
   }
 }
Esempio n. 2
0
 @Test
 public void testRegistration() throws InterruptedException, IOException, Exception {
   try {
     System.out.println("Executing testRegistration Scenario");
     methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
     baseScreen.registration(methodName);
   } catch (Exception t) {
     System.out.println("Exception in testRegistration Scenario" + t.getMessage());
   }
 }
Esempio n. 3
0
 @AfterClass
 public static void tearDown() {
   baseScreen.closeBrowser();
 }