Пример #1
0
 def test_01(self):
     logging.info('======注册===')
     r = registerView(self.driver)
     username = '******' + 'FLY' + str(random.randint(1000, 9000))
     password = '******' + str(random.randint(1000, 9000))
     email = '51zxw' + str(random.randint(1000, 9000)) + '@163.com'
     self.assertTrue(r.registerView_action(username, password, email))
Пример #2
0
 def test_0register_ownerdeldep(self):
     logging.info('===========test_register_ownerdeldep==========')
     re = registerView(self.driver)
     re.register_action(owner_del_dep)
     self.assertTrue(re.check_register_success())
Пример #3
0
 def test_0register_ownernotpass(self):
     logging.info('===========test_register_ownernotpass==========')
     re = registerView(self.driver)
     re.register_action(owner_not_pass)
     self.assertTrue(re.check_register_success())
Пример #4
0
 def test_0register_ownerbedeleted(self):
     logging.info('===========test_register_ownerbedeleted==========')
     re = registerView(self.driver)
     re.register_action(owner_be_deleted)
     self.assertTrue(re.check_register_success())
Пример #5
0
            self.find_element(*self.owner_be_deleted_elem)
        except NoSuchElementException:
            logging.info('家属列表中按预期未找到:%s' % owner_be_deleted['name'])
            return True
        else:
            logging.info('家属列表中错误的找到:%s' % owner_be_deleted['name'])
            self.getscreenshot('家属中错误的找到业主—被删除')
            return False


if __name__ == '__main__':
    driver=appium_desired()
    v=committee_verify_View(driver)
    l = loginView(driver)
    b = bindhouseView(driver)
    reg = registerView(driver)
    reg.register_action(owner_dependents)
    reg.check_register_success()
    b.bindhouse_action(owner_dependents)
    b.check_bind_result(113)
    b.logout_after_bind()
    reg.register_action(owner_have_dep)
    reg.check_register_success()
    b.bindhouse_action(owner_have_dep)
    b.check_bind_result(113)
    b.logout_after_bind()
    l.login_action('15500001010', '111111')
    time.sleep(5)
    v.committee_verify_action()
    v.verify_owner_dependents_action()
    v.check_owner_dependents_result()