Example #1
0
 def test_logout(self):
     print("checking logout functionality")
     b = schoolinfra_logout(self.driver)
     res = b.test_logout()
     self.assertNotIn(" School Infrastructure report for: ", self.driver.page_source,
                      msg="School infrastructure report not exist ")
     self.assertEqual("Log in to cQube", self.driver.title, msg="logout is not working ")
     self.data.login_cqube(self.driver)
     self.data.navigate_to_school_infrastructure()
     self.data.page_loading(self.driver)
Example #2
0
 def test_logout(self):
     self.tests.pop()
     self.logger.info("test_logout" + " " + "Total :" + " " + str(
         self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1))
     print("checking logout functionality is working or not ")
     b=schoolinfra_logout(self.driver)
     res = b.test_logout()
     self.assertNotIn(" School Infrastructure report for: ",self.driver.page_source,msg="School infrastructure report not exist ")
     self.assertEqual("Log in to cQube",self.driver.title,msg="logout is not working ")
     self.data.login_cqube(self.driver)
     self.data.navigate_to_school_infrastructure()
     self.logger.info("test_logout is completed...")
     self.data.page_loading(self.driver)