class TestYsy009BiotopeFee(object):

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step("获取业主房屋资源列表")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('fee_001_fee_resource'))
    def test_fee_001_fee_resource(self, case):
        self.new.test_case_method(case, 'get')

    @allure.step("待缴费列表")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('fee_002_fee_stayFee'))
    def test_fee_002_fee_stayFee(self, case):
        self.new.test_case_method(case, 'get')

    @allure.step("历史缴费")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('fee_003_fee_history'))
    def test_fee_003_fee_history(self, case):
        self.new.test_case_method(case, 'get')

    @allure.step("立即缴费")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('fee_004_immediately_Fee'))
    def test_fee_004_immediately_Fee(self, case):
        self.new.test_case_method(case, 'post')

    @allure.story('物业预缴')
    @allure.step("预存缴费")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('fee_005_get_prepay_resource_info'))
    def test_fee_004_immediately_Fee(self, case):
        self.new.test_case_method(case, 'get')
class TestYsyPro001Login(object):

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step('登录')
    @pytest.mark.parametrize('case', excel.get_excel_data('ysy_pro_001_user_login'))
    def test_ysy_pro_001_user_login(self,case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'post')

    @allure.step('我的')
    @pytest.mark.parametrize('case', excel.get_excel_data('ysy_pro_002_myself'))
    def test_ysy_pro_002_myself(self, case):
        """
            用例描述:我的--我的个人资料
        """
        self.new.test_case_method(case, 'get')

    @allure.step('忘记密码')
    @pytest.mark.parametrize('case', excel.get_excel_data('ysy_pro_002_myself'))
    def test_ysy_pro_002_myself(self, case):
        """
            用例描述:我的--我的个人资料
        """
        self.new.test_case_method(case, 'get')
class TestO2O001Myself:
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @pytest.mark.parametrize(
        'case', excel.get_excel_data('myself_001_get_my_three_info'))
    def test_myself_001_get_my_three_info(self, case):
        """
            用例描述:首页--每日登陆获取积分
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize('case',
                             excel.get_excel_data('myself_002_member_list'))
    def test_myself_002_member_list(self, case):
        """
            用例描述:首页--每日登陆获取积分
        """
        self.new.test_case_method(case, 'get')
Example #4
0
 def __init__(self):
     self.log = Log.MyLog()
     self.oper_j = operate_json.OperateJson()
     self.conf = Config.Config()
     self.excel = ExcelHandler.ExcelHandler()
     self.reqe = req_reload.ReqReload()
     self.test = Assert.Assertions()
Example #5
0
class TestAppSina(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 a
    '''

    excel = ExcelHandler.ExcelHandler()
    ap_sina = app_sina.AppSina()
    doc_c = doc_cmd.Doc_Cmd()
    # cs = CmdStart()
    #
    # def test_sina_001(self):
    #     '''
    #     启动服务,启动后,就case2就不能运行了
    #     :return:
    #     '''
    #     self.cs.start()

    @pytest.mark.parametrize('case', excel.get_excel_data('all'))
    def test_sina_002(self,case):
        """"
            用例描述:判断设备,运行不同
        """
        # self.app_ser.server_start()
        current_device = self.doc_c.get_devices()[0]
        if 'JTK5T19916007835' == current_device:      #华为mate30
            self.ap_sina.send_chap_02(case)
        elif 'NABDU20901006803' == current_device:   # P40
            self.ap_sina.send_chap(case)
class TestYsy005Home(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.story('今日推荐')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('home_001_today_Recommend'))
    def test_home_001_today_Recommed(self, case):
        """
            用例描述:首页--今日推荐
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize('case', excel.get_excel_data('home_002_topic'))
    def test_home_002_topic(self, case):
        """
            用例描述:首页--话题专栏
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize('case',
                             excel.get_excel_data('home_003_login_Score'))
    def test_home_003_login_Score(self, case):
        """
            用例描述:首页--每日登陆获取积分
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_004_update_Locate_City'))
    def test_home_004_update_Locate_City(self, case):
        """
            用例描述:首页--更新所属城市
        """
        self.new.test_case_method(case, 'post')

    @pytest.mark.parametrize('case',
                             excel.get_excel_data('home_005_hot_product'))
    def test_home_005_hot_product(self, case):
        """
            用例描述:首页--热门商品
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize('case',
                             excel.get_excel_data('home_006_get_Weather_Info'))
    def test_home_006_get_Weather_Info(self, case):
        """
            用例描述:首页--获取天气信息
        """
        self.new.test_case_method(case, 'get')
class TestYsy010HomeDoor(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step("人像设备是否支持")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_door_001_get_Biotope_Face'))
    def test_home_door_001_get_Biotope_Face(self, case):
        """
            用例描述:首页-智慧门禁--人像管理--人像列表
        """
        self.new.test_case_method(case, 'get')

    @allure.step("人像列表数据")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_door_002_get_Face_List'))
    def test_home_door_002_get_Face_List(self, case):
        """
            用例描述:首页-智慧门禁--人像管理--人像列表
        """
        self.new.test_case_method(case, 'get')

    @allure.step("申请理由")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_door_003_get_Face_Apply_Reason'))
    def test_home_door_003_get_Face_Apply_Reason(self, case):
        """
            用例描述:首页-智慧门禁--人像管理--人像列表
        """
        self.new.test_case_method(case, 'get')

    @allure.step("扫码开门")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_door_004_gated_open_Code'))
    def test_home_door_004_gated_open_Code(self, case):
        """
            用例描述:首页-智慧门禁--人像管理--扫码开门
        """
        self.new.test_case_method(case, 'post')

    @allure.step("远程开门")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('home_door_005_device_door_open'))
    def test_home_door_005_device_door_open(self, case):
        """
            用例描述:首页-智慧门禁--人像管理--远程开门
        """
        self.new.write_data_to_json()  # 初始化相关数据
        self.new.test_case_method(case, 'post')
Example #8
0
class TestYsy002Invitation(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()


    # 详细测试 critical级别;修改个人信息-修改不是本人的用户信息,无权限操作 这个是针对接口的功能点详细测试 critical级别
    @allure.story('訪客邀請')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @allure.step("到訪戶號:户号列表")
    @pytest.mark.parametrize('case', excel.get_excel_data('invitation_001_bind_house'))
    def test_invitation_001_bind_house(self,case):
        """
            用例描述:访客邀请--到访户号--正常
        """
        self.new.test_case_method(case, 'get')


    @allure.story('getWaitVisitor')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('invitation_002_get_Wait_Visitor'))
    def test_invitation_002_get_Wait_Visitor(self, case):
        """
            用例描述:获取验证码,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'post')


    @allure.story('getHistoryVisitor')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('invitation_003_get_History_Visitor'))
    def test_invitation_003_get_History_Visitor(self, case):
        """
            用例描述:获取验证码,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'post')


    @allure.story('invite_Visitor')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('invitation_004_invite_Visitor'))
    def test_invitation_004_invite_Visitor(self, case):
        """
            用例描述:获取验证码,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'post')

    @allure.story('invite_Visitor')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('invitation_005_share_invitation'))
    def test_invitation_005_share_invitation(self, case):
        """
            用例描述:获取验证码,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'get')
Example #9
0
class TestAppXHS(object):

    excel = ExcelHandler.ExcelHandler()
    ap_xhs = app_xhs.XHS()

    @pytest.mark.parametrize('case', excel.get_excel_data('all'))
    def test_new_001(self,case):
        """
            用例描述:发布小红书
        """
        self.ap_xhs.send_chap(case)
class TestYsy007Myself(object):
    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.story('我的信息')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('myself_001_user_info'))
    def test_myself_001_user_info(self, case):
        """
            用例描述:获取验证码
        """
        self.new.test_case_method(case, 'get')
Example #11
0
class TestAppNew(object):

    excel = ExcelHandler.ExcelHandler()
    # app_ser = appium_server.AppiumServer()
    # app_ser.server_start()
    ap_new = app_new.AppNew()

    @pytest.mark.parametrize('case', excel.get_excel_data('all'))
    def test_new_001(self, case):
        """
            用例描述:发布头条
        """
        # self.app_ser.server_start()
        self.ap_new.send_chap(case)
class TestYsy011PersonalHome(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''
    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step("头像背景")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('personal_home_001_getBack_Ground'))
    def test_personal_home_001_getBack_Ground(self, case):
        self.new.test_case_method(case, 'get')
class TestYsy006Mall(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.story('商城首页')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('mall_001_mall_index'))
    def test_mall_001_mall_index(self, case):
        """
            用例描述:首页--访问状态
        """
        self.new.test_case_method(case, 'get')
Example #14
0
class TestYsy004Health(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.story('添加成員步數')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('health_001_addMenberStep'))
    def test_invitation_001_addMenberStep(self, case):
        """
            用例描述:添加成员步数,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'post')
class TestYsy007Myself(object):
    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step("获取报修类型")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('repair_001_favorite_And_Types'))
    def test_repair_001_favorite_And_Types(self, case):
        """
            用例描述:获取报修类型,该用例数据源来自excel
        """
        self.new.test_case_method(case, 'get')

    @allure.step("提交报修")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('repair_002_repair_publish'))
    def test_repair_002_repair_publish(self, case):
        """
            用例描述:报修历史记录
        """
        self.new.test_case_method(case, 'post')

    @allure.step("报修历史记录")
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('repair_003_cur_Repair_List')
                             )
    def test_repair_003_cur_Repair_List(self, case):
        """
            用例描述:报修历史记录
        """
        self.new.test_case_method(case, 'get')

    @allure.step("业主取消报修订单")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('repair_004_repair_userCancel'))
    def test_repair_004_repair_userCancel(self, case):
        """
            用例描述:报修历史记录
        """
        self.new.test_case_method(case, 'post')
Example #16
0
class TestYsy003BiotopeServe(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step("首页广播")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('biotope_serve_001_notice_newest'))
    def test_biotope_serve_002_notice_newest(self, case):
        """
            用例描述:首页刷新--广播
        """
        self.new.test_case_method(case, 'get')

    @allure.step("物业管家电话")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('biotope_serve_003_phone_biotopeId'))
    def test_biotope_serve_003_phone_biotopeId(self, case):
        """
            用例描述:物业管家--电话
        """
        self.new.test_case_method(case, 'get')

    @allure.step("首页banner")
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('biotope_serve_004_list_bannerCode'))
    def test_biotope_serve_004_list_bannerCode(self, case):
        """
            用例描述:首页banner
        """
        self.new.test_case_method(case, 'get')
Example #17
0
class TestYsyPro002Home(object):

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    @allure.step('抢单状态更改')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_001_receive_setting'))
    def test_ysy_pro_001_receive_setting(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'post')

    @allure.step('抢单状态获取')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_002_receive_setting_info'))
    def test_ysy_pro_002_receive_setting_info(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.step('体温检测')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('ysy_pro_003_epidemic_Info'))
    def test_ysy_pro_003_epidemic_Info(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.story('签到记录')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_003_sign_find_employees_sign'))
    def test_ysy_pro_003_sign_find_employees_sign(self, case):
        """
            用例描述:根据员工Id获取当天最近一次签到记录
        """
        self.new.test_case_method(case, 'get')

    @allure.step('顶部banner宣传')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_004_adImg_list_biotopeId'))
    def test_ysy_pro_004_adImg_list_biotopeId(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.step('顶部banner宣传')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_005_get_Property_Info'))
    def test_ysy_pro_005_get_Property_Info(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.step('我的任务')
    @pytest.mark.parametrize(
        'case',
        excel.get_excel_data('ysy_pro_006_repair_find_Index_Order_Num'))
    def test_ysy_pro_006_repair_find_Index_Order_Num(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.step('访客登记')
    @pytest.mark.parametrize(
        'case', excel.get_excel_data('ysy_pro_008_Health_Check_visitAdd'))
    def test_ysy_pro_008_Health_Check_visitAdd(self, case):
        """
            用例描述:物业app密码登录
        """
        self.new.test_case_method(case, 'post')
Example #18
0
 def __init__(self):
     '''
     获取数据源
     '''
     self.data_resource = ExcelHandler.ExcelHandler()
     self.con = Config.Config()
class TestYhz001Login:
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()
    reqe = req_reload.ReqReload()
    test = Assert.Assertions()

    @allure.story('获取验证码')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_001_register_verify'))
    def test_yhz_001_register_verify(self, case):
        """
            用例描述:获取验证码
        """
        self.new.test_case_method(case, 'post')

    @allure.story('登录')
    @pytest.mark.parametrize('case', excel.get_excel_data('yhz_002_log_in'))
    def test_login_002_log_in(self, case):
        """
            用例描述:验证码登录
        """
        self.new.test_case_method(case, 'post')

    @allure.story('我的')
    @allure.step('我的-当前家园列表')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_003_app_org_list'))
    def test_yhz_003_app_org_list(self, case):
        """
            用例描述:我的-当前家园列表
        """
        self.new.test_case_method(case, 'get')

    @allure.story('我的')
    @allure.step('我的--我的打卡记录')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_005_get_behavior_list'))
    def test_yhz_005_get_behavior_list(self, case):
        """
            用例描述:我的--我的打卡记录
        """
        self.new.test_case_method(case, 'get')

    @allure.story('我的')
    @allure.step('我的--当前家园列表--设置默认家园--设置吴山')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_004_set_default_org'))
    def test_yhz_004_set_default_org(self, case):
        """
            用例描述:我的--当前家园列表--设置默认家园
        """
        self.new.test_case_method(case, 'post')

    @allure.story('用户信息')
    @pytest.mark.parametrize('case', excel.get_excel_data('yhz_003_user_info'))
    def test_login_003_user_info(self, case):
        """
            用例描述:验证码登录
        """
        self.new.test_case_method(case, 'get')

    @allure.story('首页--菜单')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_004_get_menu_list'))
    def test_yhz_004_get_menu_list(self, case):
        """
            用例描述:获取志愿者菜单权限
        """
        self.new.test_case_method(case, 'get')

    @allure.story('首页--/公告/今日统计')
    @pytest.mark.parametrize('case', excel.get_excel_data('yhz_005_app_index'))
    def test_yhz_005_app_index(self, case):
        """
            用例描述:banner/公告/今日统计
        """
        self.new.test_case_method(case, 'get')

    @allure.story('首页--banner--bannner详情')
    @pytest.mark.parametrize('case',
                             excel.get_excel_data('yhz_006_app_banner_info'))
    def test_yhz_006_app_banner_info(self, case):
        """
            用例描述:bannner详情
        """
        self.new.test_case_method(case, 'get')

    @allure.story('首页--身份认证--七牛服务')
    @pytest.mark.parametrize('case', excel.get_excel_data('yhz_007_qiniu'))
    def test_yhz_007_qiniu(self, case):
        """
            用例描述:七牛服务
        """
        self.new.test_case_method(case, 'get')
class TestYsy001Login(object):
    '''
    # BLOCKER = 'blocker'  阻塞缺陷
    # CRITICAL = 'critical' 严重缺陷
    # NORMAL = 'normal'    一般缺陷
    # MINOR = 'minor'      次要缺陷
    # TRIVIAL = 'trivial'  轻微缺陷 
    '''

    excel = ExcelHandler.ExcelHandler()
    new = new_tool_a.New_Tool_A()

    # @allure.feature('ysy_Login')  # @allure.feature 用于定义被测试的功能,被测产品的需求点
    # @allure.severity('blocker')  # allure.severity 用于定义被测功能的用例等级,blocker--测试主流程 blocker级别;
    # # 详细测试 critical级别;修改个人信息-修改不是本人的用户信息,无权限操作 这个是针对接口的功能点详细测试 critical级别
    # @allure.story('Get_Verifycode')  # allure.story  用于定义被测功能的用户场景,即子功能点
    @pytest.mark.parametrize('case', excel.get_excel_data('login_001_get_verifycode'))
    def test_login_001_get_verifycode(self,case):
        """
            用例描述:获取验证码
        """
        self.new.write_data_to_json()       # 初始化相关数据
        self.new.test_case_method(case, 'post')

    @pytest.mark.parametrize('case', excel.get_excel_data('login_02_log_in'))
    def test_login_002_log_in(self, case):
        """
            用例描述:验证码登录
        """
        self.new.test_case_method(case, 'post')

    @pytest.mark.parametrize('case', excel.get_excel_data('login_003_get_User_Privacy_Policy'))
    def test_login_003_get_User_Privacy_Policy(self, case):
        """
            用例描述:用户隐私协议
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_004_get_Member_Order'))
    def test_login_004_get_Member_Order(self, case):
        """
            用例描述:获取成员拖动顺序
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_005_family_Info'))
    def test_login_005_family_Info(self, case):
        """
            用例描述:家庭信息
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_006_health_Plan'))
    def test_login_006_health_Plan(self, case):
        """
            用例描述:首页-健康计划
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_007_get_Not_Label_Family_User'))
    def test_login_007_get_Not_Label_Family_User(self, case):
        """
            用例描述:获取成员标签及用户信息
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_007_get_Not_Label_Family_User'))
    def test_login_007_get_Not_Label_Family_User(self, case):
        """
            用例描述:获取成员标签及用户信息
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_008_family_house_list'))
    def test_login_008_family_house_list(self, case):
        """
            用例描述:获取用户房屋列表
        """
        self.new.test_case_method(case, 'get')


    @pytest.mark.parametrize('case', excel.get_excel_data('login_009_update_Bind'))
    def test_login_009_update_Bind(self, case):
        """
            用例描述:设置默认房屋
            设置之后test_ysy_002_invitation即将使用绑定了道闸设备的小区
        """
        self.new.test_case_method(case, 'post')

    @pytest.mark.parametrize('case', excel.get_excel_data('login_010_versionInfo_android'))
    def test_login_010_versionInfo_android(self, case):
        """
            用例描述:设置默认房屋
            设置之后test_ysy_002_invitation即将使用绑定了道闸设备的小区
        """
        self.new.test_case_method(case, 'get')

    @pytest.mark.parametrize('case', excel.get_excel_data('login_011_versionInfo_ios'))
    def test_login_011_versionInfo_ios(self, case):
        """
            用例描述:设置默认房屋
            设置之后test_ysy_002_invitation即将使用绑定了道闸设备的小区
        """
        self.new.test_case_method(case, 'get')