Hi Gopi,
public void testLoginLogout()
{
try
{
String un = xllib.getExcelData("Login", 1, 0);
String pw = xllib.getExcelData("Login", 1, 1);
LoginPage lp = new LoginPage(driver);
lp.login(un,pw);
EnterTimeTrackPage ettp = new EnterTimeTrackPage(driver);
ettp.logout();
Reporter.getCurrentTestResult();
Reporter.log("Log in is passed");
}
catch (Exception e)
{
Reporter.log("Log in is failed");
e.printStackTrace();
throw e;
}
}
It works for me