コード例 #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());
   }
 }