def test_pat_file_summary(self):
     self.records = summary_records()
     self.data.page_loading(self.driver)
     x = []
     rows = self.driver.find_elements_by_xpath(
         "//*[@id='table12']/tbody/tr[2]/td")
     for i in range(len(rows)):
         x.append(rows[i].text)
     count = 0
     self.data.page_loading(self.driver)
     y = []
     y.append(self.records.get_pat_filename())
     y.append(self.records.get_pat_totalrec())
     y.append(self.records.get_pat_blank_records())
     y.append(self.records.get_pat_duplicate_records())
     y.append(self.records.get_pat_datamismatch())
     y.append(self.records.get_pat_student_id())
     y.append(self.records.get_pat_school_id())
     y.append(self.records.get_pat_semester())
     y.append(self.records.get_pat_grade())
     y.append(self.records.get_pat_processed_records())
     z = x[:-2]
     print('Screen showing', z)
     print('In config file', y)
     if z == y:
         print('periodic [pat] file summary is fine')
     else:
         print("Some values are mismatching on table ")
         count = count + 1
     self.assertEqual(0, count, msg="Records mismatch found ")
     self.data.page_loading(self.driver)
    def test_inspection_summary(self):
        self.records = summary_records()
        self.data.page_loading(self.driver)
        x = []
        rows = self.driver.find_elements_by_xpath("//*[@id='table5']/tbody/tr[1]/td")
        for i in range(len(rows)):
            x.append(rows[i].text)
        count = 0
        self.data.page_loading(self.driver)
        y = []
        y.append(self.records.get_inspection_master())
        y.append(self.records.get_insp_totalrecords())
        y.append(self.records.get_insp_blank_records())
        y.append(self.records.get_insp_duplicate_records())
        y.append(self.records.get_insp_datatypemismatch())
        y.append(self.records.get_insp_school_id())
        y.append(self.records.get_insp_inspection())
        y.append(self.records.get_insp_createon())
        y.append(self.records.get_insp_processedrec())

        z = x[:-2]
        print('Screen showing',z)
        print('In config file',y)
        if  z == y:
            print('Inspection summary is fine')
        else:
            print("Some values are mismatching on table ")
            count = count + 1
        self.assertEqual(0,count,msg="Records mismatch found ")
        self.data.page_loading(self.driver)
    def test_static_school_file(self):
        self.records = summary_records()
        self.data.page_loading(self.driver)
        x = []
        rows = self.driver.find_elements_by_xpath(
            "//*[@id='table9']/tbody/tr[1]/td")
        for i in range(len(rows)):
            x.append(rows[i].text)
        count = 0
        self.data.page_loading(self.driver)
        y = []
        y.append(self.records.get_static_school_filename())
        y.append(self.records.get_static_school_totalrec())
        y.append(self.records.get_static_school_blank_records())
        y.append(self.records.get_static_school_duplicate_records())
        y.append(self.records.get_static_school_datatype())
        y.append(self.records.get_static_school_name())
        y.append(self.records.get_static_school_latitude())
        y.append(self.records.get_static_school_longitude())
        y.append(self.records.get_static_school_processedrec())

        z = x[:-2]
        print('Screen showing', z)
        print('In config file', y)
        if z == y:
            print('Static School file summary is fine')
        else:
            print("Some values are mismatching on table ")
            count = count + 1
        self.assertEqual(0, count, msg="Records mismatch found ")
        self.data.page_loading(self.driver)
Пример #4
0
    def test_student_attendance_summary1(self):
        self.records = summary_records()
        self.data.page_loading(self.driver)
        x = []
        rows = self.driver.find_elements_by_xpath(
            "//*[@id='table1']/tbody/tr[1]/td")
        for i in range(len(rows)):
            x.append(rows[i].text)
        count = 0
        self.data.page_loading(self.driver)
        y = []
        y.append(self.records.get_std_file_name())
        y.append(self.records.get_std_total_records())
        y.append(self.records.get_std_blank_records())
        y.append(self.records.get_duplicate_records())
        y.append(self.records.get_dtypemismatch_records())
        y.append(self.records.get_std_attendance_id_records())
        y.append(self.records.get_std_student_id_records())
        y.append(self.records.get_std_school_id_records())
        y.append(self.records.get_std_year_in_records())
        y.append(self.records.get_std_month_in_records())
        y.append(self.records.get_std_processed_records())

        z = x[:-2]
        if z == y:
            print('Student attendance summary is fine')
        else:
            print("Some values are mismatching on table ")
            count = count + 1
        self.assertEqual(0, count, msg="Records mismatch found ")
        self.data.page_loading(self.driver)
    def test_diksha_file_summary(self):
        self.records = summary_records()
        self.data.page_loading(self.driver)
        x = []
        rows = self.driver.find_elements_by_xpath(
            "//*[@id='table10']/tbody/tr[1]/td")
        for i in range(len(rows)):
            x.append(rows[i].text)
        count = 0
        self.data.page_loading(self.driver)
        y = []
        y.append(self.records.get_diksha_filename())
        y.append(self.records.get_diksha_totalrec())

        y.append(self.records.get_diksha_blank_records())
        y.append(self.records.get_diksha_duplicate_records())
        y.append(self.records.get_diksha_datamismatch())
        y.append(self.records.get_diksha_contentview())
        y.append(self.records.get_diksha_dimpdata())
        y.append(self.records.get_diksha_dimension_pid())
        y.append(self.records.get_diksha_contentname())
        y.append(self.records.get_diksha_contentboard())
        y.append(self.records.get_diksha_contentmimetype())
        y.append(self.records.get_diksha_contentmedium())
        y.append(self.records.get_diksha_contentgradelevel())
        y.append(self.records.get_diksha_contentsubject())
        y.append(self.records.get_diksha_objectid())
        y.append(self.records.get_diksha_objrollup())
        y.append(self.records.get_diksha_locstate())
        y.append(self.records.get_diksha_locdistrict())
        y.append(self.records.get_diksha_usersignin())
        y.append(self.records.get_diksha_userlogintype())
        y.append(self.records.get_diksha_collectiontype())
        y.append(self.records.get_diksha_totalcount())
        y.append(self.records.get_diksha_totaltimespent())
        y.append(self.records.get_diksha_processedrec())

        z = x[:-2]
        print('Screen showing', z)
        print('In config file', y)
        if z == y:
            print('Diksha file summary is fine')
        else:
            print("Some values are mismatching on table ")
            count = count + 1
        self.assertEqual(0, count, msg="Records mismatch found ")
        self.data.page_loading(self.driver)
Пример #6
0
    def test_udise_file_summary(self):
        self.records = summary_records()
        self.data.page_loading(self.driver)
        x = []
        rows = self.driver.find_elements_by_xpath("//*[@id='table11']/tbody/tr[1]/td")
        for i in range(len(rows)):
            x.append(rows[i].text)
        count = 0
        self.data.page_loading(self.driver)
        y = []
        y.append(self.records.get_udise_filename())
        y.append(self.records.get_udise_totalrec())
        y.append(self.records.get_udise_blank_records())
        y.append(self.records.get_udise_duplicate_records())
        y.append(self.records.get_udise_schcode())
        y.append(self.records.get_udise_sectorno())
        y.append(self.records.get_udise_itemid())
        y.append(self.records.get_udise_classid())
        y.append(self.records.get_udise_streamid())
        y.append(self.records.get_udise_grade())
        y.append(self.records.get_udise_incentives())
        y.append(self.records.get_udise_casteid())
        y.append(self.records.get_udise_disability())
        y.append(self.records.get_udise_medinstr())
        y.append(self.records.get_udise_ageid())
        y.append(self.records.get_udise_itemgrp())
        y.append(self.records.get_udise_tchcode())
        y.append(self.records.get_udise_marks_range())
        y.append(self.records.get_udise_nsqf())
        y.append(self.records.get_udise_processedrec())



        z = x[:-2]
        print('Screen showing',z)
        print('In config file',y)
        if  z == y:
            print('Udise file summary is fine')
        else:
            print("Some values are mismatching on table ")
            count = count + 1
        self.assertEqual(0,count,msg="Records mismatch found ")
        self.data.page_loading(self.driver)