Beispiel #1
0
    def Off_33_edit(self, userId_S, id, code):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/sitelayout/update'
        params = {'token': '12345678901234567890123456789012', 'id':'1','code': 'index_mobile',\
                  'image': 'https://oss.zhiyun-tech.com/zyplaytest/course_edit/1/2019-08-01-16:29:32.png'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['code'] = code
        params['id'] = id

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #2
0
    def Off_06(self, userId_S, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        type = '1'
        expectTime = '2019-04-29'
        workorderPriority = '1'
        remark = '设计备注'

        url = 'http://172.16.2.101:4006/back/feedback/createWorkorderFromFeedback?id=' + str(
            id
        ) + '&token=' + tokenData + '&type=' + type + '&expectTime=' + expectTime + '&workorderPriority=' + workorderPriority + '&remark=' + remark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #3
0
    def Off_05(self, userId_S, id, status):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/seller/agent/status'
        params = {
            'token': '12345678901234567890123456789012',
            'id': 1,
            'status': 0
        }

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['id'] = id
        params['status'] = status

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #4
0
    def Off_04(self, userId_S, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        frontWorkorderId = 19
        backWorkorderId = 27
        type = '1'
        dispatcher = 56
        workorderPriority = 1
        expectTime = '2019-08-09'
        title = '标题1'
        des = '描述1'
        attachments = 'https://zyfeedback.oss-cn-shenzhen.aliyuncs.com/feedbacktest/upload/1/2019-05-13-11:56:52.png'
        remark = '备注1'

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData


        url = 'http://172.16.2.101:4006/workorder/workorderEditSubmit?token='+tokenData+'&id='+str(id)+'&frontWorkorderId='+str(frontWorkorderId)+\
              '&backWorkorderId='+str(backWorkorderId)+'&type='+type+'&dispatcher='+str(dispatcher)+'&workorderPriority='+str(workorderPriority)+ \
              '&expectTime=' +expectTime +'&title='+title+'&des='+des+'&attachments='+attachments+'&remark='+remark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #5
0
    def Off_07(self, userId_S, dispatcher):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        id = 100
        workorderPriority = 1
        expectTime = '2020-04-29'
        title = '派发标题'
        des = '描述派发'
        remark = '备注派发'

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/workorder/workorderDispatch?token='+tokenData+'&dispatcher='+str(dispatcher)+\
              '&id='+str(id)+'&workorderPriority='+str(workorderPriority)+'&expectTime='+expectTime+'&title='+title+\
              '&des='+des+'&remark='+remark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #6
0
    def Off_10(self, userId_S, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        resolveCase = '设计原因'
        resolveVersion = 'C020010-1.1.4'
        expectTime = '2020-05-09'
        dispatcher = 67
        chainAttachments = 'https://zyfeedback.oss-cn-shenzhen.aliyuncs.com/feedbacktest/upload/1/2019-05-13-11:56:52.png'
        chainRemark = '这是备注'

        url = 'http://172.16.2.101:4006/workorder/workorderModify?token'+tokenData+'&id='+str(id)+ \
              '&resolveCase=' + resolveCase +'&resolveVersion='+resolveVersion+'&expectTime='+expectTime+\
              '&dispatcher='+str(dispatcher)+'&chainAttachments='+chainAttachments+'&chainRemark='+chainRemark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #7
0
    def Off_23_edit(self, userId_S, id, agentNo):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/seller/agent/update'

        params = {'token': '12345678901234567890123456789012', 'id':'85427','agentNo': '9121', 'name': '胡健经销商','country': '中国', \
                  'region': '广东省深圳市', 'address': '龙岗区星河World', 'phone': '075586862715', 'mail': '*****@*****.**', \
                  'url': 'https://www.baidu.com/', 'isfixed': '0'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['agentNo'] = str(agentNo)
        params['id'] = str(id)

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #8
0
    def Off_37_edit(self,userId_S,productionId,id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/production/video_update'
        params = {'token': '12345678901234567890123456789012', 'id':'1','productionId': '1','videoType':'xuanchuan',\
                  'image':'https://zhiyundata.oss-cn-shenzhen.aliyuncs.com/zyplaytest/share/1/2018-07-31-16:12:54.png',\
                  'video':'https://zhiyundata.oss-cn-shenzhen.aliyuncs.com/zyplaytest/share/1/2018-09-07-17:44:23.mp4',\
                  'title':'这是test','text':'yes','sort':'1'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['id'] = str(id)
        params['productionId'] = str(productionId)

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #9
0
    def Off_02(self, userId_S):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        frontWorkorderId = 20
        backWorkorderId = 25
        type = '1'
        dispatcher = 100
        workorderPriority = 1
        expectTime = '2019-08-09'
        title = '标题'
        des = '描述'
        attachments = 'https://zyfeedback.oss-cn-shenzhen.aliyuncs.com/feedbacktest/upload/1/2019-05-13-11:56:52.png'
        remark = '备注'

        feedbackFrom = '硬件设备'
        hardmodel = 'smooth4'
        firmwareversion = '1.1'
        platform = 'app'
        phonemodel = ''
        phoneversion = ''
        appversion = ''
        lang = 'en'

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/workorder/workorderCreate?token='+tokenData+'&frontWorkorderId='+str(frontWorkorderId)+\
              '&backWorkorderId='+str(backWorkorderId)+'&type='+type+'&dispatcher='+str(dispatcher)+'&workorderPriority='+str(workorderPriority)+ \
              '&expectTime=' +expectTime +'&title='+title+'&des='+des+'&attachments='+attachments+'&remark='+remark+'&feedbackFrom='+feedbackFrom+\
              '&hardmodel='+hardmodel+'&firmwareversion='+firmwareversion+'&platform='+platform+'&phonemodel='+phonemodel+ \
              '&phoneversion='+phoneversion+'&appversion='+appversion+'&lang='+lang

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #10
0
    def Off_04(self, userId_S, id):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)

        url = 'http://172.16.2.101:3002/v1/user/perm_get_by_id?token=' + tokenData + '&id=' + str(
            id)

        res = get_req.get_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #11
0
    def Off_12(self, userId_S):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/workorder/workorderListExcel?token=' + tokenData + '&range=&flag=2&limit=1000'

        res = get_req.get_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #12
0
    def Off_13(self, userId_S, id, flag):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/workorder/workorderDealOrNot?token=' + tokenData + '&id=' + str(
            id) + '&flag=' + flag

        res = get_req.get_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #13
0
    def Off_10(self,userId_S):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/monitor/add'
        params = {'token': '12345678901234567890123456789012', 'name': '这是HU的监控规则111', 'agentList': '1,2,3', 'ruleList':'[{"rate":"semiannual","type":"prop","expression":"=","formula":"prop","quota":2232,"operator":"43","correction":10}]','ruleRelation': 'or','status': 1,'email':'*****@*****.**'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #14
0
    def Off_04(self, userId_S, id, withdrawReason):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/back/feedback/feedbackRejectBack?id=' + str(
            id) + '&token=' + tokenData + '&withdrawReason=' + withdrawReaso

        res = get_req.get_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #15
0
    def Off_28(self,userId_S):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/updatepassword'
        params = {'token': '12345678901234567890123456789012','username':'******','password':'******'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #16
0
    def Off_29(self,userId_S):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/sitelayout/index'
        params = { 'token':'12345678901234567890123456789012'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        res = get_req.get_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #17
0
    def Off_11(self, userId_S, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/back/feedback/activeFeedbackBack?id=' + str(
            id) + '&token=' + tokenData

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #18
0
    def Off_14(self, userId_S, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        type = '1001'
        hardmodel = '5'
        firmwareversion = '1.78'
        platform = 'android'
        phonemodel = 'HUAWEI'
        phoneversion = 'v.2.3.4'
        appversion = '2.2.5'

        lang = 'en'
        frequency = '1'
        title = '编辑反馈test'
        des = '描述'
        attachments = 'https://zyfeedback.oss-cn-shenzhen.aliyuncs.com/feedbacktest/482/2019-04-28-04:08:15.mp4'
        contact = '13418483933'
        remark = '备注'

        url = 'http://172.16.2.101:4006/feedback/editFeedback?id=' + str(
            id
        ) + '&token=' + tokenData + '&type=' + type + '&hardmodel=' + hardmodel + '&firmwareversion=' + firmwareversion + '&platform=' + platform + '&phonemodel=' + phonemodel + '&phoneversion=' + phoneversion + '&appversion=' + appversion + '&lang=' + lang + '&frequency=' + frequency + '&title=' + title + '&des=' + des + '&attachments=' + attachments + '&contact=' + contact + '&remark=' + remark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #19
0
    def Off_08(self, userId, id):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        score = 100
        scoreRemark = '优秀'
        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        url = 'http://172.16.2.101:4006/workorder/workorderScore?token=' + tokenData + '&id=' + str(
            id) + '&score=' + str(score) + '&scoreRemark=' + scoreRemark

        res = post_req.post_model_a(sessionX, url)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #20
0
    def Off_13(self,userId_S,ruleId):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/monitor/up_down'
        params = {'token': '12345678901234567890123456789012', 'id': 1}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['id'] = ruleId

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #21
0
    def Off_15(self,userId_S,agentNo):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/seller/agent_perm_update'
        params = {'token': '12345678901234567890123456789012', 'agentNo': '100','userList':[]}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['agentNo'] = str(agentNo)

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #22
0
    def Off_16(self,userId_S,agentNo):
        sessionX = requests.session()
        get_req = Get.Get()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/reseller/query_sn'
        params = { 'token':'12345678901234567890123456789012','agentNo':'20','dateType':'stockoutAt'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['agentNo'] = str(agentNo)

        res = get_req.get_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #23
0
    def Off_04(self,userId_S,userId_M):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/user/update'
        params = {'token':'12345678901234567890123456789012', 'userId':1,'username':'******','nickname':'enEn','password':'******','departName':'软件研发部','permList':[{'permId':1,'permCode':'super'}]}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['userId'] = userId_M

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #24
0
    def Off_20(self,userId_S,ipList):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/whitelist/update'
        params = {'token': '12134567890121345678901213456789012', 'ipList': '192.168.0.1,192.0.0.1'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['ipList'] = ipList

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #25
0
    def Off_34(self,userId_S,productionId):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/production/user_update'
        params = {'token': '12345678901234567890123456789012', 'productionId': '1','hide':'1','price':'99'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['productionId'] = str(productionId)

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #26
0
    def Off_24(self,userId_S,agentNo):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/reseller/update_reseller_region'
        params = {'token': '12345678901234567890123456789012', 'agentNo': '911', 'addList': '[{"region_code":"CHN","region_name":"中国"}]'}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['agentNo'] = str(agentNo)

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')
Beispiel #27
0
    def Off_05(self,userId_S):
        sessionX = requests.session()
        post_req = Post.Post()
        ass = Assert.Assertions()

        url = 'http://172.16.2.101:3001/v1/user/add'
        params = {'token':'12345678901234567890123456789012','username':'******','nickname':'hjHJ','password':'******','departName':'软件研发部',\
                  'userId':'' , 'permList':[{"permId":1 ,"permCode":"super"},{"permId":2 ,"permCode":"perm_reseller_on"}]}

        data = GetMysqlDataSeller.GetMysqlDataSeller()
        tokenData = data.getTokenByUserId(userId_S)
        params['token'] = tokenData

        params['userId'] = userId_S

        res = post_req.post_model_b(sessionX, url, params)
        print(res)

        resCode = res['code']
        resText = res['text']

        assert ass.assert_code(resCode, 200)
        assert ass.assert_in_text(resText, '成功')
        Consts.RESULT_LIST.append('True')