def test_teacher_school(self): b = teacher_exception_report(self.driver,self.year, self.month) res1, res2 = b.check_markers_on_block_map() self.assertNotEqual(0, res1, msg="markers are not present on school level map") self.assertEqual(0, res2, msg='Footer mis match found at school level') print('Checked schoolwise markers and csv file downloading ') self.data.page_loading(self.driver)
def test_ClusterPerBlockCsvDownload(self): b = teacher_exception_report(self.driver,self.year, self.month) res1,res2 = b.ClusterPerBlockCsvDownload() self.assertNotEqual(res1,0,msg='Markers are not present') self.assertEqual(0,res2 , msg='Some cluster level files are not downloaded') print('Checking each cluster markers and csv file downloading ') self.data.page_loading(self.driver)
def test_SchoolPerClusterCsvDownload(self): b = teacher_exception_report(self.driver,self.year, self.month) res1,res2 = b.SchoolPerClusterCsvDownload() self.assertNotEqual(0,res1,msg='Markers are not present') self.assertEqual(0, res2, msg='Some School level files are not downloaded') print('Checking each school wise markers and csv file downloading ') self.data.page_loading(self.driver)
def test_school_btn_records(self): b = teacher_exception_report(self.driver, self.year, self.month) res1, res2 = b.check_markers_on_school_map() self.assertNotEqual(0, res1, msg="School level markers are not present") self.assertEqual(0, res2, msg='Schoolwise csv file is not downloaded') print('Checked with schoolwise map records') self.data.page_loading(self.driver)
def test_DistrictwiseDownload(self): b = teacher_exception_report(self.driver,self.year, self.month) res1,res2 = b.check_districts_csv_download() self.assertNotEqual(res1,0,msg='Markers are not present') self.assertEqual(0, res2, msg="Some district level csv file is not downloaded") print('Checking each districtwise markers and csv file downloading ') self.data.page_loading(self.driver)
def test_teacher_exception_icon(self): b = teacher_exception_report(self.driver, self.year, self.month) res = b.test_icon() self.assertEqual(0, res, msg='teacher exception report is not displayed') print("Pat exception icon on landing is working ")
def test_teacher_exception_Logout(self): b = teacher_exception_report(self.driver,self.year, self.month) res = b.click_on_logout() self.assertEqual(res,'Log in to cQube',msg="logout button is not working") self.data.login_cqube(self.driver) self.data.navigate_to_teacher_exception() print("Logout button is working fine ") self.data.page_loading(self.driver)
def test_DotsOnDistrictwise_map(self): b = teacher_exception_report(self.driver, self.year, self.month) res = b.check_dots_on_each_districts() self.assertEqual(0, res, msg='Markers are not present on districtwise map ') print('Checking each districtwise markers') self.data.page_loading(self.driver)
def test_teacher_exception_hyperlink(self): b = teacher_exception_report(self.driver, self.year, self.month) choose_dist = b.click_on_hyperlinks() # if result1 == False and result2 == False and choose_dist == "Choose a District": # print("hyperlinks are working") # else: # raise self.failureException("hyperlinks are not working") print('Checked with hyperlink functional test') self.data.page_loading(self.driver)
def test_Data_not_recieved(self): b = teacher_exception_report(self.driver, self.year, self.month) res, r1, r2, r3 = b.test_total_not_recieved_data() self.assertEqual( res, r1, msg='Block level data not recieved count mismatch found') self.assertEqual( res, r2, msg='cluster level data not recieved count mismatch found') self.assertEqual( res, r3, msg='School level data not recieved count mismatch found')
def test_teacher_dashboard(self): b = teacher_exception_report(self.driver, self.year, self.month) res = b.test_click_on_dashboard() self.assertEqual(0, res, msg='Dashboard button is not working ')