def test_add_entry(self, projcode="ARUBAUTO", type="Meet", hrs=8, mins=0, description="hjhg"):
     ttime_logger.info("Testing add entry")
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     timesheet.add_entry(driver, projcode, type, hrs, mins, description)
 def test_add_btn_visibility(self):
     ttime_logger.info("Testing next_btn visibility")
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     assert timesheet.check_add_btn_visible()
 def test_logged_in_user_by_name(self):
     ttime_logger.info("Testing logged in username")
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     assert timesheet.check_login_name()
 def test_login_failed_username(self, username, password):
     tlogin_logger.info("Now running test_login TestCase")
     tlogin_logger.info("UserName :: {}\nPassword :: {}".format(username, password))
     highway = HighWay(driver)
     tlogin_logger.info("HighWay Page Object Created")
     highway.open_highway(driver)
     tlogin_logger.info("Opening HighWay Page")
     highway.click_big_red_btn()
     tlogin_logger.info("Big Red Button Clicked")
     google_login = GoogleLogin(driver)
     tlogin_logger.info("Google Login Page Object Created")
     val = google_login.enter_username(username)
     tlogin_logger.info("Username sent to UserName Field")
     if val == -1:
         tlogin_logger.info("Entered UserName was Wrong")
         tlogin_logger.info("TestCase Wrong UserName SuccessFull")
         return
     tlogin_logger.info("UserName SuccessFully Entered")
     val = google_login.enter_password(password)
     tlogin_logger.info("Password sent to password Field")
     if val == -1:
         tlogin_logger.info("Entered Password was Wrong")
         tlogin_logger.info("TestCase Wrong Password SuccessFull")
         return
     msg = highway.welcome_msg()
     tlogin_logger.info("Highway Welcome Msg")
     tlogin_logger.info("TestCase correct Login SuccessFull")
     assert msg == success_out_msg
 def test_timesheet_opened_in_current_date(self):
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     assert timesheet.check_date_for_today()
 def test_color_orange_to_blue(self):
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     assert timesheet.orange_to_blue()
 def test_delete_btn(self):
     highway = HighWay(driver)
     highway.open_highway(driver)
     timesheet = TimeSheet(driver)
     timesheet.open_timesheet()
     assert timesheet.deleting_entry()