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
def test_AMI_powersite_nearby_001(self): main.element_click(self.driver, 'com.inhe.psite:id/nearby') main.element_check_byid(self.driver, 'com.inhe.psite:id/neayby_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_all') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_meter') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_con') main.element_check_byid(self.driver, 'com.inhe.psite:id/nearby_tran') main.element_click(self.driver, 'com.inhe.psite:id/neayby_back') pass
def test_AMI_powersite_loginout_001(self): usename = 'admin' passwd = 'inhemeter' main.element_content_clear(self.driver, 'com.inhe.psite:id/username', usename, 'OK') main.element_content_clear(self.driver, 'com.inhe.psite:id/password', passwd, 'OK') sleep(4) main.element_check_byid(self.driver, 'com.inhe.psite:id/nearby') main.element_quit_app(self.driver) pass
def test_AMI_powersite_business_012(self): main.element_click(self.driver, 'com.inhe.psite:id/acquisition_event') main.element_check_byid(self.driver, 'com.inhe.psite:id/acquistion_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/acquistion_search') main.element_check_byid(self.driver, 'com.inhe.psite:id/undisposed_layout') main.element_check_byid(self.driver, 'com.inhe.psite:id/disposed_layout') main.element_click(self.driver, 'com.inhe.psite:id/acquistion_back') pass
def test_AMI_powersite_business_008(self): main.element_click(self.driver, 'com.inhe.psite:id/archives_device') main.element_check_byid(self.driver, 'com.inhe.psite:id/operational_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/upload') main.element_check_byid(self.driver, 'com.inhe.psite:id/op_search') main.element_click(self.driver, 'com.inhe.psite:id/operational_back') pass
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
def test_AMI_powersite_homepage_004(self): main.element_click(self.driver, 'com.inhe.psite:id/exception_msg') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_sys_notice') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_ex_notice') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_acquisition') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') main.element_click(self.driver, 'com.inhe.psite:id/exception_msg') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') main.element_click(self.driver, 'com.inhe.psite:id/exception_msg') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') main.element_click(self.driver, 'com.inhe.psite:id/exception_msg') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') main.element_click(self.driver, 'com.inhe.psite:id/exception_msg') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') pass
def test_AMI_powersite_homepage_001(self): main.element_check_byid(self.driver, 'com.inhe.psite:id/search_tv') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_type_btn') main.element_check_byid(self.driver, 'com.inhe.psite:id/exception_msg') main.element_check_byid(self.driver, 'com.inhe.psite:id/map_controll_layout') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomAdd') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomDec') main.element_check_byid(self.driver, 'com.inhe.psite:id/location_mine') main.element_check_byid(self.driver, 'com.inhe.psite:id/nearby') main.element_check_byid(self.driver, 'com.inhe.psite:id/business') main.element_check_byid(self.driver, 'com.inhe.psite:id/mine') pass
def test_AMI_powersite_homepage_007(self): main.element_click(self.driver, 'com.inhe.psite:id/search_tv') main.element_click(self.driver, 'com.inhe.psite:id/type_meter') main.element_check_byid(self.driver, 'com.inhe.psite:id/nearby_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/nearby_title') main.element_check_byid(self.driver, 'com.inhe.psite:id/scope_btn') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomAdd') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomDec') main.element_check_byid(self.driver, 'com.inhe.psite:id/location_mine') main.element_check_byid(self.driver, 'com.inhe.psite:id/meter_item') main.element_click(self.driver, 'com.inhe.psite:id/meter_item') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_tv') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_type_btn') main.element_check_byid(self.driver, 'com.inhe.psite:id/Watch_meterbtn') main.element_check_byid(self.driver, 'com.inhe.psite:id/check_bind') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomAdd') main.element_check_byid(self.driver, 'com.inhe.psite:id/zoomDec') main.element_check_byid(self.driver, 'com.inhe.psite:id/location_mine') main.element_check_byid(self.driver, 'com.inhe.psite:id/sing_concentrator_title') main.element_check_byid(self.driver, 'com.inhe.psite:id/modify') main.element_check_byid(self.driver, 'com.inhe.psite:id/record') self.driver.back() self.driver.back() pass
def test_AMI_powersite_homepage_006(self): main.element_click(self.driver, 'com.inhe.psite:id/search_tv') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_view') main.element_check_byid(self.driver, 'com.inhe.psite:id/search_btn') main.element_check_byid(self.driver, 'com.inhe.psite:id/type_meter') main.element_check_byid(self.driver, 'com.inhe.psite:id/type_con') main.element_check_byid(self.driver, 'com.inhe.psite:id/type_tran') main.element_check_byid(self.driver, 'com.inhe.psite:id/tv_tip') main.element_check_byid(self.driver, 'com.inhe.psite:id/tv_clear') main.element_click(self.driver, 'com.inhe.psite:id/search_back') pass
def test_AMI_powersite_business_010(self): main.element_click(self.driver, 'com.inhe.psite:id/exception_event') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_sys_notice') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_ex_notice') main.element_check_byid(self.driver, 'com.inhe.psite:id/msg_acquisition') main.element_click(self.driver, 'com.inhe.psite:id/msg_ex_notice') main.element_check_byid(self.driver, 'com.inhe.psite:id/exception_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/exception_upload') main.element_check_byid(self.driver, 'com.inhe.psite:id/exception_search') main.element_check_byid(self.driver, 'com.inhe.psite:id/list_mode_layout') main.element_check_byid(self.driver, 'com.inhe.psite:id/statistics_mode_layout') main.element_click(self.driver, 'com.inhe.psite:id/exception_back') main.element_click(self.driver, 'com.inhe.psite:id/msg_acquisition') main.element_check_byid(self.driver, 'com.inhe.psite:id/acquistion_back') main.element_check_byid(self.driver, 'com.inhe.psite:id/acquistion_search') main.element_check_byid(self.driver, 'com.inhe.psite:id/undisposed_layout') main.element_check_byid(self.driver, 'com.inhe.psite:id/disposed_layout') main.element_click(self.driver, 'com.inhe.psite:id/acquistion_back') main.element_click(self.driver, 'com.inhe.psite:id/msg_back') pass
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
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
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
def test_AMI_powersite_business_001(self): main.element_check_byid(self.driver, 'com.inhe.psite:id/device_reg') main.element_check_byid(self.driver, 'com.inhe.psite:id/device_replace') main.element_check_byid(self.driver, 'com.inhe.psite:id/device_demolition') main.element_check_byid(self.driver, 'com.inhe.psite:id/archives_device') main.element_check_byid(self.driver, 'com.inhe.psite:id/exception_event') main.element_check_byid(self.driver, 'com.inhe.psite:id/business_back') main.element_click(self.driver, 'com.inhe.psite:id/business_back') pass