Commit 369d8be8 authored by 桂秋月's avatar 桂秋月

兼容env,可通过jsoncase临时选取config

parents db0d958a ee402134
./testCase
./blueprints/KeyData ./blueprints/KeyData
./blueprints/testcases.py
\ No newline at end of file
[channnel] [channnel]
a = 1 a = 1
channnelid = 214 channnelid = 159866
fundcorpid = 480 fundcorpid = 100010
merchantid = 27 merchantid = 27
execjsonversion = {'configuration_center':'1.0.1','account':'2.0','risk':'2.0','trade':'2.0','zijin':'2.0'} execjsonversion = {} # {'configuration_center':'1.0.1','zhongtai_hetong':'1.0.1','account':'2.0','risk':'2.0','trade':'2.0','zijin':'2.0','msg':'1.0.1'}
issimple = 0 issimple = 0
[baseinfo] [baseinfo]
usered = qa usered = qa
defaluttime = 2 defaluttime = 2
timeout = 20 timeout = 20
phone_no = 13700000001 phone_no = 13683241404
environment = test1 environment = qa3
term = 6 term = 6
amount = 10000 amount = 10000
productid = 1 productid = 1
...@@ -22,15 +22,16 @@ amounts = [2000,4000,6000,10000,20000,30000] ...@@ -22,15 +22,16 @@ amounts = [2000,4000,6000,10000,20000,30000]
productids = [1,4] productids = [1,4]
repaymenttypes = [微信,支付宝,银行卡] repaymenttypes = [微信,支付宝,银行卡]
counter = 0 counter = 0
totalamount = 10182.07 totalamount = 4208.35
loanid = 320 loanid = 18
totalloanamount = 882.88 totalloanamount = 1666.67
termno = 1 termno = 4
verificationid = BK744588885171192830848411
applyno = AN000000143208211244130304
[globalvar] [globalvar]
password = 123456aaa password = 123456aaa
biztype = 0 biztype = 0
logindata = None
token = eb298e58-b438-4437-ab29-70973e7210a2 token = eb298e58-b438-4437-ab29-70973e7210a2
passportapitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e passportapitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e
opapitoken = 5375b6c5-527e-4c3a-8c66-b9ef96a7412d opapitoken = 5375b6c5-527e-4c3a-8c66-b9ef96a7412d
...@@ -48,6 +49,7 @@ requestid = 63119890137088 ...@@ -48,6 +49,7 @@ requestid = 63119890137088
vcode = 238345 vcode = 238345
applyno = AN000000143183669801000960 applyno = AN000000143183669801000960
voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI
logindata = {'uuid': '3bf78c41-458a-40a1-88ba-d31f3afbcbcf', 'channelId': '214', 'productType': '0', 'channelType': '0', 'source': 1, 'extData': {'ces': '测试测试'}, 'phoneNo': '13683241404', 'idCard': '620122199107076436', 'name': '李淑华'}
[testsuit] [testsuit]
cases_numbertemp = [{'passportapi':[816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,574,575,577,576,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397]}] cases_numbertemp = [{'passportapi':[816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,574,575,577,576,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397]}]
...@@ -75,11 +77,13 @@ case_number_sidecar = [{'sidecar':[807,806,810]}] ...@@ -75,11 +77,13 @@ case_number_sidecar = [{'sidecar':[807,806,810]}]
case_number_koala_risk = [{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,671,707]},{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,671,708]}] case_number_koala_risk = [{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,671,707]},{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,671,708]}]
case_number_koala_loan = [{'koala_loan':[672, 673, 674, 675, 676, 677, 678, 697, 698, 704]}] case_number_koala_loan = [{'koala_loan':[672, 673, 674, 675, 676, 677, 678, 697, 698, 704]}]
case_number_koala_repay = [{'koala_repay':[679, 680]}] case_number_koala_repay = [{'koala_repay':[679, 680]}]
case_number_ka_koala_loan = [{'ka_koala_loan':['803','802','801','800','798','799']}] case_number_ka_koala_loan = [{'ka_koala_loan':['803','802','801','800','798','799',808,818,820]}]
case_number_ka_koala_repay = [{'ka_koala_repay':['791','786','787','788','789','790']}] case_number_ka_koala_repay = [{'ka_koala_repay':['791','789','790','786','787','788']}]
case_number_test11 = [{'passportapi':[323,382,383,384]},{'koala_repay':[679, 680]},{'passportapi':[323,382,383,384]}] case_number_test = [{'passportapi':[323,382,383,384]},{'koala_repay':[679, 680]},{'passportapi':[323,382,383,384]}]
case_number_test = [{'zhongtai_hetong':['277']}] case_number_funding_plan = [{'passportapi':[816,817]}]
case_number_case_fengkong = [{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,671]}]
case_number_case_fangkuan = [{'ka_koala_loan':[801,818,802,798,799,800,820]}]
[sqldata] [sqldata]
sqldata = None sqldata = ['3bf78c41-458a-40a1-88ba-d31f3afbcbcf', 214, '0', '0', '13683241404', '620122199107076436', '李淑华']
...@@ -69,6 +69,17 @@ msg={'testnumer':'case_number_msg', ...@@ -69,6 +69,17 @@ msg={'testnumer':'case_number_msg',
'casename':'msg','platform':'中台','reportname':'消息中心','projectId':33,'psid':5} 'casename':'msg','platform':'中台','reportname':'消息中心','projectId':33,'psid':5}
# 串流程
funding_plan={'testnumer':'case_number_funding_plan',
'casename': 'funding_plan', 'platform': 'KA', 'reportname': 'KA串流程', 'projectId': 43, 'psid': 7}
case_fengkong={'testnumer':'case_number_case_fengkong',
'casename':'case_fengkong','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7}
case_fangkuan={'testnumer':'case_number_case_fangkuan',
'casename':'case_fangkuan','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7}
# zhongtai_hetong={'testnumer':'case_number_msg', # zhongtai_hetong={'testnumer':'case_number_msg',
# 'casename':'msg','platform':'中台','reportname':'消息中心','projectId':33,'psid':5} # 'casename':'msg','platform':'中台','reportname':'消息中心','projectId':33,'psid':5}
...@@ -88,12 +99,13 @@ project_mapping={ ...@@ -88,12 +99,13 @@ project_mapping={
'passportapi':passportapi, 'passportapi':passportapi,
'newhetong':newhetong, 'newhetong':newhetong,
'test':test, 'test':test,
'voice':voice, 'voice':voice,
'sidecar':sidecar, 'sidecar':sidecar,
'msg':msg, 'msg':msg,
'usercenter':usercenter,
'usercenter':usercenter 'case_number_funding_plan':funding_plan,
'case_fengkong':case_fengkong,
'case_fangkuan':case_fangkuan
} }
\ No newline at end of file
...@@ -163,8 +163,13 @@ if __name__ == '__main__': ...@@ -163,8 +163,13 @@ if __name__ == '__main__':
# name='account' # name='account'
############### ###############
#name='sidecar' #'account' or 'configuration_center'or
# name='ka_koala_repay' # name='sidecar'
#'account' or 'configuration_center'or
# 串流程
name='case_fengkong'
# name='case_fangkuan'
# ############ # ############
......
...@@ -87,7 +87,7 @@ class requestResult: ...@@ -87,7 +87,7 @@ class requestResult:
sql=self.afterdeallsql(self.casefile.get("sql"),section) sql=self.afterdeallsql(self.casefile.get("sql"),section)
#print(sql) #print(sql)
sqlData=delDatabase(self.config,sql,db) sqlData=delDatabase(self.config,sql,db)
#print("从表里查到的数据===",sqlData,sql) # print("从表里查到的数据===",sqlData,sql)
return sqlData return sqlData
...@@ -114,8 +114,10 @@ class requestResult: ...@@ -114,8 +114,10 @@ class requestResult:
#print("==="*10,sql) #print("==="*10,sql)
sqlData=delDatabase(self.config,sql,db) sqlData=delDatabase(self.config,sql,db)
self.keydata.writeKeyData('sqldata','sqldata',sqlData) self.keydata.writeKeyData('sqldata','sqldata',sqlData)
#print("从表里查到的数据===", sqlData,self.casefile,sql) #print("从表里查到的数据===", sqlData,self.casefile,sql)
casejson = dealbodyHeaderType(self.config, self.casefile, sqlData) casejson = dealbodyHeaderType(self.config, self.casefile, sqlData)
casejson =dealSign(casejson) casejson =dealSign(casejson)
#print(casejson) #print(casejson)
...@@ -149,11 +151,13 @@ class requestResult: ...@@ -149,11 +151,13 @@ class requestResult:
return _url, method, body, header,casejson.get('param'),commit,isurl return _url, method, body, header,casejson.get('param'),commit,isurl
def writeKeyDatafile(self,name,data): def writeKeyDatafile(self,name,data):
#print(data,name) #print(data,name)
try: try:
if data: if data:
if isinstance(data,list): if isinstance(data,list):
self.keydata.writeKeyData('baseinfo', name, data[0] if data else None) self.keydata.writeKeyData('baseinfo', name, data[0] if data else None)
else: else:
self.keydata.writeKeyData('baseinfo', name, data if data else None) self.keydata.writeKeyData('baseinfo', name, data if data else None)
...@@ -164,6 +168,7 @@ class requestResult: ...@@ -164,6 +168,7 @@ class requestResult:
def saveKeyData(self,v,savevalue='token',flag=False): def saveKeyData(self,v,savevalue='token',flag=False):
#v可以是请求body,也可以是响应数据 #v可以是请求body,也可以是响应数据
url, type = requesturl(self.config, self.casefile) url, type = requesturl(self.config, self.casefile)
...@@ -192,6 +197,12 @@ class requestResult: ...@@ -192,6 +197,12 @@ class requestResult:
vcode=jsonpath.jsonpath(v,'$..vcode') vcode=jsonpath.jsonpath(v,'$..vcode')
totalAmount=jsonpath.jsonpath(v,'$..totalAmount') totalAmount=jsonpath.jsonpath(v,'$..totalAmount')
# verificationid
verificationId=jsonpath.jsonpath(v,'$..verificationId')
#print(verificationId)
self.writeKeyDatafile('verificationId', verificationId)
#考拉还款 #考拉还款
totalLoanAmount=jsonpath.jsonpath(v,'$..requiredRepayment') totalLoanAmount=jsonpath.jsonpath(v,'$..requiredRepayment')
...@@ -207,6 +218,7 @@ class requestResult: ...@@ -207,6 +218,7 @@ class requestResult:
self.writeKeyDatafile('termno', termno) self.writeKeyDatafile('termno', termno)
self.writeKeyDatafile('repaymentstatus', repaymentStatus) self.writeKeyDatafile('repaymentstatus', repaymentStatus)
loanid = jsonpath.jsonpath(v, '$..loanId') loanid = jsonpath.jsonpath(v, '$..loanId')
#print(vcode) #print(vcode)
...@@ -672,13 +684,17 @@ if __name__ == '__main__': ...@@ -672,13 +684,17 @@ if __name__ == '__main__':
#cases_number= [323, 382, 383, 384, 385,361, 402, 403, 404, 405,401] #cases_number= [323, 382, 383, 384, 385,361, 402, 403, 404, 405,401]
cases_number=[790]
cases_number=[667]
#cases_number = [369,370,409,373] #cases_number = [369,370,409,373]
#cases_number=[358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368,371,372,374,375,376,378,363,364,369,370] #cases_number=[358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368,371,372,374,375,376,378,363,364,369,370]
t = '.json,'.join([str(i) for i in cases_number]) + ".json" t = '.json,'.join([str(i) for i in cases_number]) + ".json"
# casefile = [{'passportapi':['323.json', '382.json','383.json', '384.json', '385.json']},{'payment': t.split(',')}] # casefile = [{'passportapi':['323.json', '382.json','383.json', '384.json', '385.json']},{'payment': t.split(',')}]
casefile =[{'ka_koala_repay': t.split(',')}]
casefile =[{'koala_risk': t.split(',')}]
#casefile = [{'passportapi': t.split(',')}] #casefile = [{'passportapi': t.split(',')}]
......
...@@ -17,11 +17,126 @@ class maintest(unittest.TestCase): ...@@ -17,11 +17,126 @@ class maintest(unittest.TestCase):
suite.addTest(testcase_klass(name, config=config)) suite.addTest(testcase_klass(name, config=config))
return suite return suite
class zhongtai_hetong0(maintest):
class koala_risk0(maintest):
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/699.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/699.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r:
self.detail=res1.keyoption()+('Success',)
else:
if isinstance(res,dict):
self.detail=res1.keyoption()+(res.__str__(),)
elif len(res.text)>5000 :
self.detail=res1.keyoption()+('响应数据过长',)
else:
self.detail=res1.keyoption()+(res.text,)
if r==0:
msg='断言失败,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(1, 0,msg=msg)
else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg)
class usercenter1(maintest):
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/usercenter/500.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/usercenter/500.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r:
self.detail=res1.keyoption()+('Success',)
else:
if isinstance(res,dict):
self.detail=res1.keyoption()+(res.__str__(),)
elif len(res.text)>5000 :
self.detail=res1.keyoption()+('响应数据过长',)
else:
self.detail=res1.keyoption()+(res.text,)
if r==0:
msg='断言失败,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(1, 0,msg=msg)
else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg)
class risk2(maintest):
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/risk/651.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/risk/651.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r:
self.detail=res1.keyoption()+('Success',)
else:
if isinstance(res,dict):
self.detail=res1.keyoption()+(res.__str__(),)
elif len(res.text)>5000 :
self.detail=res1.keyoption()+('响应数据过长',)
else:
self.detail=res1.keyoption()+(res.text,)
if r==0:
msg='断言失败,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(1, 0,msg=msg)
else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg)
class koala_risk3(maintest):
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/709.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/709.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r:
self.detail=res1.keyoption()+('Success',)
else:
if isinstance(res,dict):
self.detail=res1.keyoption()+(res.__str__(),)
elif len(res.text)>5000 :
self.detail=res1.keyoption()+('响应数据过长',)
else:
self.detail=res1.keyoption()+(res.text,)
if r==0:
msg='断言失败,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(1, 0,msg=msg)
else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg)
def test_101(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/753.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/753.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r:
self.detail=res1.keyoption()+('Success',)
else:
if isinstance(res,dict):
self.detail=res1.keyoption()+(res.__str__(),)
elif len(res.text)>5000 :
self.detail=res1.keyoption()+('响应数据过长',)
else:
self.detail=res1.keyoption()+(res.text,)
if r==0:
msg='断言失败,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(1, 0,msg=msg)
else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg)
def test_102(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/671.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/671.json').get('result')
class passportapi0(maintest):
def test_100(self): def test_100(self):
res1=requestResult(self.config,'/Users/dm/Desktop/python_script/autoInterface/testCase/zhongtai_hetong/277.json') res1=requestResult(self.config,'/Users/dm/Desktop/python_script/autoInterface/testCase/zhongtai_hetong/277.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/dm/Desktop/python_script/autoInterface/testCase/zhongtai_hetong/277.json').get('result') t=readCaseFile('/Users/dm/Desktop/python_script/autoInterface/testCase/zhongtai_hetong/277.json').get('result')
r=0 if 0 in finalresult and len(finalresult)>0 else 1 r=0 if 0 in finalresult and len(finalresult)>0 else 1
if r: if r:
self.detail=res1.keyoption()+('Success',) self.detail=res1.keyoption()+('Success',)
......
...@@ -20,6 +20,7 @@ def readCaseFile(filename): ...@@ -20,6 +20,7 @@ def readCaseFile(filename):
#return f #return f
except Exception as e: except Exception as e:
#当f没数据的时候,load也会出错 #当f没数据的时候,load也会出错
print(filename)
print("读json文件处理出现错误>>",e) print("读json文件处理出现错误>>",e)
else: else:
raise Exception("json文件为空") raise Exception("json文件为空")
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
@date::14:26 @date::14:26
@file:dealbody.py @file:dealbody.py
@project:appQutoInfo @project:appQutoInfo
@project:appQutoInfo
""" """
import base64 import base64
......
...@@ -376,9 +376,11 @@ def clear_redis(): ...@@ -376,9 +376,11 @@ def clear_redis():
if __name__ == '__main__': if __name__ == '__main__':
t=fakeinfo('cardNo',flag=0) t=fakeinfo('cardNo',flag=0)
print(t) print(t)
# print(t,type(t))
# # tt=fakeinfo('cardNoProvider') # # tt=fakeinfo('cardNoProvider')
# # print(tt,type(tt)) # # print(tt,type(tt))
# print(getBankInfo('cardNoProvider')) # print(getBankInfo('cardNoProvider'))
...@@ -386,7 +388,7 @@ if __name__ == '__main__': ...@@ -386,7 +388,7 @@ if __name__ == '__main__':
#print(fakeinfo('username')) #print(fakeinfo('username'))
# a=momeyRate('900',6,10000,2) # a=momeyRate('900',6,10000,2)
# print(a) print(t)
# #
# print(2) # print(2)
#t=fakeinfo('ip') #t=fakeinfo('ip')
......
...@@ -257,8 +257,16 @@ def zentaopms_data(panda_name,projectId,psid): ...@@ -257,8 +257,16 @@ def zentaopms_data(panda_name,projectId,psid):
if __name__ == "__main__": if __name__ == "__main__":
<<<<<<< HEAD
names=['ka_koala_loan','payment','ka_koala_repay'] names=['ka_koala_loan','payment','ka_koala_repay']
#names=['zhongtai_hetong','msg','configuration_center'] #names=['zhongtai_hetong','msg','configuration_center']
=======
names=['ka_koala_repay','koala_risk','ka_koala_loan','risk']
# names = ['risk']
# names=['zhongtai_hetong','msg','configuration_center']
>>>>>>> ee402134f1fab864790224405b2f08bedc2823af
for name in names: for name in names:
projectname=project_mapping.get(name) projectname=project_mapping.get(name)
......
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,13 @@ ...@@ -3,7 +3,13 @@
"commit": "提现(支持绑卡)(POST)", "commit": "提现(支持绑卡)(POST)",
"url": "/v1/loan/submit", "url": "/v1/loan/submit",
"casename": "token", "casename": "token",
<<<<<<< HEAD
"sql": "select b.`user_id`,c.`tmpl_path`,\r\n'测试借款用途'\r\n as loanPurpose \r\nfrom `xyqb`.`quota_credit` b\r\ninner join xyqb.funding_contract c\r\nwhere b.`order_no`='{{applyno}}'\r\nand c.`funding_corp_id`=100010;", "sql": "select b.`user_id`,c.`tmpl_path`,\r\n'测试借款用途'\r\n as loanPurpose \r\nfrom `xyqb`.`quota_credit` b\r\ninner join xyqb.funding_contract c\r\nwhere b.`order_no`='{{applyno}}'\r\nand c.`funding_corp_id`=100010;",
=======
"sql": "select b.`user_id`,c.`tmpl_path`,\r\n'测试借款用途'\r\n as loanPurpose \r\nfrom `xyqb`.`quota_credit` b\r\ninner join xyqb.funding_contract c\r\nwhere b.`order_no`='{{applyno}}'\r\nand c.`funding_corp_id`=100010;",
>>>>>>> ee402134f1fab864790224405b2f08bedc2823af
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -26,4 +32,4 @@ ...@@ -26,4 +32,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,6 @@ ...@@ -13,4 +13,6 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
}
\ No newline at end of file }
...@@ -15,4 +15,8 @@ ...@@ -15,4 +15,8 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} <<<<<<< HEAD
\ No newline at end of file }
=======
}
>>>>>>> ee402134f1fab864790224405b2f08bedc2823af
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "风控结果通过(POST)", "commit": "风控结果通过(POST)",
"url": "/v1/risk_management/audit/receive_risk_control_result", "url": "/v1/risk_management/audit/receive_risk_control_result",
"casename": "token", "casename": "token",
"sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','true',unix_timestamp('20200501')*1000 as deadline, 710 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';", "sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','true',unix_timestamp('20201201')*1000 as deadline, 100010 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
"term": "12", "term": "12",
"deadLine": "%s", "deadLine": "%s",
"extData": "{'ces':'测试'}", "extData": "{'ces':'测试'}",
"financeProducts": "[{'min':10000,'max':10000,'terms':[{'term':12,'fundInfo':[{'fundId':'%s','rate':'0','rateType':1,'priority':'1','feeType':'1'}]}]}]" "financeProducts": "[{'min':10000,'max':10000,'terms':[{'fundInfo':[{'rateType':1,'fundId':%s,'rate':'0','priority':1,'feeType':1,'fundProductId':100000}],'term':12}]}]"
}, },
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "KA创建申请单(POST)", "commit": "KA创建申请单(POST)",
"url": "/v1/credit_order/create", "url": "/v1/credit_order/create",
"casename": "token", "casename": "token",
"sql": "select a.`uuid`,'1','1',a.`phone_no`,b.`id_no`,b.`name` from xyqb_user.user a\r\njoin xyqb_user.user_detail b\r\non a.`phone_no`=b.`phone_no`\r\nwhere a.registered_from = 100001\r\norder by rand() limit 1;", "sql": "select a.`uuid`,'1','1',a.`phone_no`,b.`id_no`,b.`name` from xyqb_user.user a\r\njoin xyqb_user.user_detail b\r\non a.`phone_no`=b.`phone_no`\r\nwhere a.phone_no={{phone_no}};",
"db": "xyqb_user", "db": "xyqb_user",
"result": { "result": {
"code": "0" "code": "0"
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "风控结果拒绝(POST)", "commit": "风控结果拒绝(POST)",
"url": "/v1/risk_management/audit/receive_risk_control_result", "url": "/v1/risk_management/audit/receive_risk_control_result",
"casename": "token", "casename": "token",
"sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','false',unix_timestamp('20200501')*1000 as deadline, 710 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';", "sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','false',unix_timestamp('20200701')*1000 as deadline\r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
"refuseReason": "{'ces':'测试审核拒绝'}" "refuseReason": "{'ces':'测试审核拒绝'}"
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -3,16 +3,17 @@ ...@@ -3,16 +3,17 @@
"commit": "接收资方审核结果-审核通过(POST)", "commit": "接收资方审核结果-审核通过(POST)",
"url": "/v1/risk_management/mo_clotho/receive_funding_party_audit_result", "url": "/v1/risk_management/mo_clotho/receive_funding_party_audit_result",
"casename": "token", "casename": "token",
"sql": "select `uuid`\r\nfrom xyqb.`apply_quota_record` a\r\nwhere a.apply_status='{{applyno}}' order by a.id desc limit 1;", "sql": "select id from xyqb.apply_quota_record where order_no='{{applyno}}' order by id desc limit 1;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"body": { "body": {
"uuid": "%s", "applyId": "%s",
"orderNo": "{{applyno}}", "orderNo": "{{applyno}}",
"status": "ASSIGN_SUCCESS" "status": "ASSIGN_SUCCESS",
"amount": "10000"
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
......
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
"commit": "提交授信申请 ( 给考拉 ) (POST)", "commit": "提交授信申请 ( 给考拉 ) (POST)",
"url": "/v1/risk_management/audit/credit_application/submit", "url": "/v1/risk_management/audit/credit_application/submit",
"casename": "token", "casename": "token",
"sql": "select 214 as channel_id,a.uuid\r\nfrom business_flow.apply_list a\r\nwhere a.apply_no='{{applyno}}'\r\norder by a.id desc limit 1;", "sql": "select a.`channel_id`,a.uuid\r\nfrom business_flow.apply_list a\r\ninner join `xyqb_user`.user b\r\non a.`uuid`=b.`uuid`\r\nwhere a.apply_no='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"sleep": "3",
"body": { "body": {
"channelId": "%s", "channelId": "%s",
"productId": "1", "productId": "1",
...@@ -20,4 +21,4 @@ ...@@ -20,4 +21,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -11,8 +11,4 @@ ...@@ -11,8 +11,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
<<<<<<< HEAD
} }
=======
}
>>>>>>> 3d8e005ec0cf8077584962695e1dcd2ab39c7343
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "公用风控数据导入(POST)", "commit": "公用风控数据导入(POST)",
"url": "/spider-center/middle_office/ex/import/risk_infos", "url": "/spider-center/middle_office/ex/import/risk_infos",
"casename": "token", "casename": "token",
"sql": "select a.uuid,a.product_type,a.channel_id \r\nfrom business_flow.apply_list a\r\ninner join xyqb_user.user b\r\non a.`uuid`=b.`uuid`\r\nwhere b.`phone_no`='{{phone_no}}'\r\norder by a.id desc limit 1;", "sql": "select a.uuid,a.product_type,a.channel_id \r\nfrom business_flow.apply_list a\r\ninner join xyqb_user.user b\r\non a.`uuid`=b.`uuid`\r\nwhere a.`apply_no`='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb_user", "db": "xyqb_user",
"result": { "result": {
"code": "0" "code": "0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment