Example #1
0
 def test_AMI_powersite_business_014(self):
     num = '0000000000000'
     main.element_click(self.driver, 'com.inhe.psite:id/device_reg')
     main.element_content_noclear(self.driver,
                                  'com.inhe.psite:id/old_meter_text', num,
                                  None)
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     main.element_click(self.driver, 'com.inhe.psite:id/register_back')
     pass
Example #2
0
    def test_AMI_powersite_business_020(self):

        main.element_click(self.driver, 'com.inhe.psite:id/device_reg')
        main.element_content_noclear(self.driver, '', device_num1, None)
        main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
        main.element_click(self.driver, 'com.inhe.psite:id/device_num')
        main.element_content_clear(self.driver, 'com.inhe.psite:id/content',
                                   device_num2, 'OK')
        main.element_check_byid(self.driver, 'com.inhe.psite:id/register_back')
        pass
Example #3
0
 def test_AMI_powersite_business_007(self):
     main.element_click(self.driver, 'com.inhe.psite:id/device_replace')
     main.element_content_noclear(self.driver,
                                  'com.inhe.psite:id/old_meter_text',
                                  device_num2, '')
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     main.element_click(self.driver, 'com.inhe.psite:id/device_num')
     main.element_content_clear(self.driver, 'com.inhe.psite:id/content',
                                device_num3, 'OK')
     main.element_click(self.driver, 'com.inhe.psite:id/after_change')
     pass
Example #4
0
 def test_AMI_powersite_business_019(self):
     num = '370000000000'
     main.element_click(self.driver, 'com.inhe.psite:id/device_reg')
     main.element_content_noclear(self.driver,
                                  'com.inhe.psite:id/old_meter_text', num,
                                  None)
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     element = main.element_check_byid(self.driver,
                                       'com.inhe.psite:id/old_meter_text')
     if element == 0:
         self.driver.back()
     elif element == -1:
         main.error_print(1, self.test_AMI_powersite_business_019())
         self.driver.back()
     pass
Example #5
0
 def test_AMI_powersite_business_002(self):
     main.element_click(self.driver, 'com.inhe.psite:id/device_reg')
     main.element_content_noclear(self.driver, '', device_num1, None)
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/register_back')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/upload')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_num')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/reference')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/branch')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_type')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/user_name')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/reg_date')
     main.element_check_byid(self.driver,
                             'com.inhe.psite:id/device_address')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/con_no')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/transformer')
     pass
Example #6
0
 def test_AMI_powersite_business_006(self):
     main.element_click(self.driver, 'com.inhe.psite:id/device_demolition')
     main.element_content_noclear(self.driver,
                                  'com.inhe.psite:id/old_meter_text',
                                  device_num2, '')
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     main.element_check_byid(self.driver,
                             'com.inhe.psite:id/demilition_back')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/upload')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_num')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/branch')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/RefCode')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_type')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/user_name')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/reg_date')
     main.element_check_byid(self.driver,
                             'com.inhe.psite:id/device_address')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/code_enter')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/con_no')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/transformer')
     main.element_check_byname(self.driver, device_num2)
     main.element_click(self.driver, 'com.inhe.psite:id/upload')
     pass
Example #7
0
 def test_AMI_powersite_business_004(self):
     main.element_click(self.driver, 'com.inhe.psite:id/device_replace')
     main.element_content_noclear(self.driver,
                                  'com.inhe.psite:id/old_meter_text',
                                  device_num2, '')
     main.element_click(self.driver, 'com.inhe.psite:id/enter_confirm')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/replace_back')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/after_change')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_num')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/before_branch')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/RefCode')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_type')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/user_name')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/reg_date')
     main.element_check_byid(self.driver,
                             'com.inhe.psite:id/device_address')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/code_enter')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/con_no')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/transformer')
     main.element_check_byname(self.driver, '变更前')
     main.element_check_byname(self.driver, '变更后')
     self.driver.find_element_by_name('变更后')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/replace_back')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/after_change')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_num')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/before_branch')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/RefCode')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/device_type')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/user_name')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/reg_date')
     main.element_check_byid(self.driver,
                             'com.inhe.psite:id/device_address')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/code_enter')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/con_no')
     main.element_check_byid(self.driver, 'com.inhe.psite:id/transformer')
     main.element_click(self.driver, 'com.inhe.psite:id/replace_back')
     pass