def test_7_both_facility_and_default_values(self):
     loggingFE.logger.info("Checking if the facility values are over ridden with the default level value.")
     default_data = [300025, 200069, 500036]
     alert_default = GetPutValues.putDefaultValues(self, driver=self.driver, defaultXpaths=self.defaultsXpath, defaultValues=default_data)
     facility_return_values = GetPutValues.getFacilityValues(self, driver=self.driver, facilityName=self.facility_name, click_xpath = self.click_xpath, pageNum = ClaimsFE.pageNum)
     facility_new_values = facility_return_values[0]
     default_new_values = GetPutValues.getDefaultValues(self, driver=self.driver, defaultXpaths=self.defaultsXpath)
     self.assertNotEqual(facility_new_values, default_new_values)
     self.driver.save_screenshot(self.urlName + "_step_7_both_facility_and_default_values.jpg")
Пример #2
0
 def test_8_only_default_values(self):
     loggingFE.logger.info("checking for the facility to get overridden with the default numbers.")
     facility_data = ['', '', '']
     alert_facility = GetPutValues.putFacilityValues(self, driver=self.driver, facilityName=self.facility_name, facilityValues=facility_data, click_xpath = self.click_xpath, pageNum = DenialsFE.pageNum)
     facility_return_values = GetPutValues.getFacilityValues(self, driver=self.driver, facilityName=self.facility_name, click_xpath = self.click_xpath, pageNum = DenialsFE.pageNum)
     facility_new_values = facility_return_values[0]
     default_new_values = GetPutValues.getDefaultValues(self, driver=self.driver, defaultXpaths=self.defaultsXpath)
     self.assertEqual(facility_new_values, default_new_values)
     self.driver.save_screenshot(self.urlName + "_step_8_only_default_values.jpg")
 def test_02_fetch_existing_values(self):
     loggingFE.logger.info("extracting the data from the current page for the first time")
     facility_return_values = GetPutValues.getFacilityValues(self, driver=self.driver,
                                                             facilityName=self.facility_name,
                                                             click_xpath=self.click_xpath, pageNum=CashFE.pageNum)
     CashFE.facility_existing_values = facility_return_values[0]
     CashFE.pageNum = facility_return_values[1]
     CashFE.default_existing_values = GetPutValues.getDefaultValues(self, driver=self.driver,
                                                                    defaultXpaths=self.defaultsXpath)
     self.driver.save_screenshot(self.urlName + "_step_2_fetch_existing_values.jpg")
 def test_6_only_facility_values(self):
     facility_data = [500000, 200000, 900000]
     alert_facility = GetPutValues.putFacilityValues(self, driver=self.driver, facilityName=self.facility_name, facilityValues=facility_data, click_xpath = self.click_xpath, pageNum = ManagementFE.pageNum)
     facility_return_values = GetPutValues.getFacilityValues(self, driver=self.driver, facilityName=self.facility_name, click_xpath = self.click_xpath, pageNum = ManagementFE.pageNum)
     facility_new_values = facility_return_values[0]
     formatted_facility_data = []
     for incr in facility_data:
         if '$' in facility_new_values[0]:
             formatted_facility_data.append('$ {:,.2f}'.format(incr/100) )
         else:
             formatted_facility_data.append(incr)
 def test_6_only_facility_values(self):
     facility_data = [500000, 200000, 900000]
     default_data = ['', '', '']
     alert_facility = GetPutValues.putFacilityValues(self, driver=self.driver, facilityName=self.facility_name, facilityValues=facility_data, click_xpath = self.click_xpath, pageNum = ClaimsFE.pageNum)
     alert_default = GetPutValues.putDefaultValues(self, driver=self.driver, defaultXpaths=self.defaultsXpath, defaultValues=default_data)
     facility_return_values = GetPutValues.getFacilityValues(self, driver=self.driver, facilityName=self.facility_name, click_xpath = self.click_xpath, pageNum = ClaimsFE.pageNum)
     facility_new_values = facility_return_values[0]
     formatted_facility_data = []
     for incr in facility_data:
         if '$' in facility_new_values[0]:
             formatted_facility_data.append('$ {:,.2f}'.format(incr/100) )
         else:
             formatted_facility_data.append(incr/10000)