Example #1
0
 def test_choose_district_block_cluster(self):
     dist = DistrictCsvDownload(self.driver, self.year, self.month)
     result = dist.check_districts_csv_download()
     if result == 0:
         print("Block per district csv report download is working")
         print("on selection of each district")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Block per district csv report download is working")
     block = ClusterPerBlockCsvDownload(self.driver, self.year, self.month)
     result = block.check_csv_download()
     if result == 0:
         print("Cluster per block csv report download is working")
         print("on selection of each district and block")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Cluster per block csv report download is working")
     schools = DistrictBlockCluster(self.driver, self.year, self.month)
     result = schools.check_district_block_cluster()
     if result == 0:
         print("Schools per cluster csv download report is working")
         print("on selection of each district,block and cluster")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Schools per cluster csv report download is working")
Example #2
0
 def test_block_per_district_csv_download(self):
     dist = DistrictCsvDownload(self.driver,self.year,self.month)
     result = dist.check_districts_csv_download()
     if result == 0:
         print("Block per district csv report download is working")
     else:
         raise self.failureException("Block per district csv report download is working")
Example #3
0
 def test_block_per_district_csv_download(self):
     dist = DistrictCsvDownload(self.driver, self.year, self.month)
     result = dist.check_districts_csv_download()
     if result == 0:
         print("Block per district csv report download is working")
         print("on selection of each district")
         print("The footer value of no of schools and no of students are")
         print("equals to downloaded file")
     else:
         raise self.failureException(
             "Block per district csv report download is working")
    def test_block_per_district_csv_download(self):
        self.tests.pop()
        self.logger.info("test_block_per_district_csv_download is running" + " " + "Total :" + " " + str(
            self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1))

        dist = DistrictCsvDownload(self.driver,self.year,self.month)
        result = dist.check_districts_csv_download()
        if result == 0:
            print("Block per district csv report download is working")
        else:
            raise self.failureException("Block per district csv report download is working")

        self.logger.info("test_block_per_district_csv_download is completed...")
    def test_block_per_district_csv_download(self):
        self.tests.pop()
        self.logger.info("test_block_per_district_csv_download is running" + " " + "Total :" + " " + str(
            self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1))

        dist = DistrictCsvDownload(self.driver,self.year,self.month)
        result = dist.check_districts_csv_download()
        if result == 0:
            print("Block per district csv report download is working")
            print("on selection of each district")
            print("The footer value of no of schools and no of students are")
            print("equals to downloaded file")
        else:
            raise self.failureException("Block per district csv report download is working")

        self.logger.info("test_block_per_district_csv_download is completed...")