def test_customer_visit_supplement(self): """常规拜访-补录""" logging.info('******************** 常规拜访-补录 ********************') c = Customer(self.driver) c.enter_ccloud() c.go_func_group_page() c.customer_visit_supplement() c.return_home_page()
def test_customer_visit(self): """常规拜访""" logging.info('******************** 常规拜访 ********************') c = Customer(self.driver) c.enter_ccloud(flag=False) c.go_func_group_page() c.customer_visit(flag=False) c.return_home_page()
def test_add_customer_without_photo(self): """新增客户-不带照片""" logging.info('******************** 新增客户-不带照片 ********************') c = Customer(self.driver) c.enter_ccloud() c.add_customer(photo=False) self.assertEqual(self.driver.title, '客户列表')
def test_add_customer_with_photo(self): """新增客户-带照片""" logging.info('******************** 新增客户-带照片 ********************') c = Customer(self.driver) c.enter_ccloud(flag=False) c.add_customer() sleep(3) self.assertEqual(self.driver.title, '客户列表')