@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()); } }
@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()); } }
@AfterClass public static void tearDown() { baseScreen.closeBrowser(); }