def test_pat_exception_hyperlink(self):
     b = pat_exception_report(self.driver)
     result1, result2, 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")
Exemplo n.º 2
0
 def test_sem_exception_Logout(self):
     b = pat_exception_report(self.driver)
     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_semester_exception()
     self.data.page_loading(self.driver)
 def test_pat_school(self):
     b = pat_exception_report(self.driver)
     res = b.check_markers_on_school_map()
     self.assertNotEqual(0,
                         res,
                         msg="markers are not present on cluster level map")
     print('Checked schoolwise markers and csv file downloading ')
     self.data.page_loading(self.driver)
 def test_DotsOnDistrictwise_map(self):
     b = pat_exception_report(self.driver)
     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_SchoolPerClusterCsvDownload(self):
     b = pat_exception_report(self.driver)
     res = b.SchoolPerClusterCsvDownload()
     self.assertEqual(0,
                      res,
                      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_ClusterPerBlockCsvDownload(self):
     b = pat_exception_report(self.driver)
     res = b.ClusterPerBlockCsvDownload()
     self.assertEqual(0,
                      res,
                      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_DistrictwiseDownload(self):
     b = pat_exception_report(self.driver)
     res = b.check_districts_csv_download()
     self.assertEqual(0,
                      res,
                      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_Data_not_recieved(self):
     b = pat_exception_report(self.driver)
     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')
Exemplo n.º 9
0
 def test_DistrictwiseDownload(self):
     b = pat_exception_report(self.driver)
     res = b.check_districts_csv_download()
     self.assertEqual(0,res,msg="Some district level csv file is not downloaded")
 def test_pat_dashboard(self):
     b = pat_exception_report(self.driver)
     res = b.test_click_on_dashboard()
     self.assertEqual(0, res, msg='Dashboard button is not working ')
 def test_pat_exception_icon(self):
     b = pat_exception_report(self.driver)
     res = b.test_icon()
     self.assertEqual(0, res, msg='pat exception report is not displayed')
     print("Pat exception icon on landing is working ")
     self.data.page_loading(self.driver)
Exemplo n.º 12
0
 def test_semester_exception_icon(self):
     b = pat_exception_report(self.driver)
     res = b.test_icon()
     self.assertEqual(0,res,msg='Semester exception report is not displayed')
Exemplo n.º 13
0
 def test_semesterschool(self):
     b = pat_exception_report(self.driver)
     res = b.check_markers_on_school_map()
     self.assertNotEqual(0,res,msg="markers are not present on cluster level map")
Exemplo n.º 14
0
 def test_Semester_Blocks(self):
     b = pat_exception_report(self.driver)
     res = b.check_markers_on_block_map()
     self.assertNotEqual(0,res,msg="markers are not present on block level map")
Exemplo n.º 15
0
 def test_DotsOnDistrictwise_map(self):
     b = pat_exception_report(self.driver)
     res = b.check_dots_on_each_districts()
     self.assertEqual(0,res,msg='Markers are not present on districtwise map ')
 def test_timeseries_overall(self):
     b = pat_exception_report(self.driver)
     res = b.check_time_series_overall()
     self.assertEqual(0,res,msg='Overall csv file is not downloaded')
     print("Checked with over all time series")
     self.data.page_loading(self.driver)
 def test_timeseries_last7days(self):
     b = pat_exception_report(self.driver)
     res = b.check_time_series_last_7_days()
     self.assertEqual(0,res,msg='last 7 days csv file is not downloaded')
     print("Checked with last 7 days time series")
     self.data.page_loading(self.driver)
Exemplo n.º 18
0
 def test_ClusterPerBlockCsvDownload(self):
     b = pat_exception_report(self.driver)
     res = b.ClusterPerBlockCsvDownload()
     self.assertEqual(0,res , msg='Some cluster level files are not downloaded')