Commit bbaf55fa authored by jinfang.liu's avatar jinfang.liu

flow testcase

parent 3cc66dcf
...@@ -5,19 +5,20 @@ fundcorpid = 100010 ...@@ -5,19 +5,20 @@ fundcorpid = 100010
merchantid = 27 merchantid = 27
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'} 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
finalenv = 0
[baseinfo] [baseinfo]
usered = qa usered = qa
defaluttime = 2 defaluttime = 2
timeout = 20 timeout = 20
phone_no = 13273352435 phone_no = 13255741029
environment = qa3 environment = qa3
term = 6 term = 6
amount = 10000 amount = 10000
productid = 1 productid = 1
repaymenttype = 微信 repaymenttype = 微信
bancode = {'ICBC':'62220202'} bancode = {'ICBC':'62220202'}
terms = [1,2,3,6,9,12] terms = [3,6,9,12]
amounts = [2000,4000,6000,10000,20000,30000] amounts = [2000,4000,6000,10000,20000,30000]
productids = [1,4] productids = [1,4]
repaymenttypes = [微信,支付宝,银行卡] repaymenttypes = [微信,支付宝,银行卡]
...@@ -26,8 +27,8 @@ totalamount = 4208.35 ...@@ -26,8 +27,8 @@ totalamount = 4208.35
loanid = 18 loanid = 18
totalloanamount = 1666.67 totalloanamount = 1666.67
termno = 4 termno = 4
verificationid = BK745365420998003790342278 verificationid = BK756638588823735987518160
applyno = AN000000143379103697887232 applyno = AN000000145772523616616448
[globalvar] [globalvar]
password = 123456aaa password = 123456aaa
...@@ -40,16 +41,16 @@ apitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e ...@@ -40,16 +41,16 @@ apitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e
mapitoken = 75d2421775d0b74ca27b28677bfa63410285 mapitoken = 75d2421775d0b74ca27b28677bfa63410285
quotarecordorderno = {'msg': None, 'code': '0000', 'data': []} quotarecordorderno = {'msg': None, 'code': '0000', 'data': []}
hetongtoken = a758d7e9323225494c74a52b3a43af3e hetongtoken = a758d7e9323225494c74a52b3a43af3e
cardno = 6222020247877570170 cardno = 6222020250206050660
msgtoken = {token} msgtoken = {token}
sceneid = 5 sceneid = 5
deadline = 1589364499000 deadline = 1590479021000
paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5 paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5
requestid = 63119890137088 requestid = 63119890137088
vcode = 238345 vcode = 238345
applyno = AN000000143183669801000960 applyno = AN000000143183669801000960
voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI
logindata = {'uuid': 'a973c6ba-a521-4530-bb10-786d8395ea70', 'channelId': 159866, 'productId': '1', 'channelType': '1', 'source': 2, 'phoneNo': '13273352435', 'idCard': '150627196406225967', 'name': '富嘉胜', 'compatibleExtData': {}} logindata = {'uuid': '1ba1de90-172c-4f2d-a2be-a6771962a063', 'channelId': 159866, 'productId': '1', 'channelType': '1', 'source': 2, 'phoneNo': '13255741029', 'idCard': '152500193108182914', 'name': '周丹', 'compatibleExtData': {}}
[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]}]
...@@ -57,7 +58,7 @@ cases_number1 = [816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399 ...@@ -57,7 +58,7 @@ cases_number1 = [816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399
case_number_fengkong = [509, 510, 511, 512, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549] case_number_fengkong = [509, 510, 511, 512, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549]
case_number3 = [358, 359, 360,323,382, 383,399, 385,407,367,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] case_number3 = [358, 359, 360,323,382, 383,399, 385,407,367,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]
case_number_usercenter = [504, 494, 508,479, 477, 498, 476, 499, 495, 483, 505, 488, 471, 502, 484, 492, 493, 503, 470, 489, 473, 490, 486, 500, 501, 487, 491, 472, 496, 480, 506, 475, 474, 507, 481, 497, 478,482,485] case_number_usercenter = [504, 494, 508,479, 477, 498, 476, 499, 495, 483, 505, 488, 471, 502, 484, 492, 493, 503, 470, 489, 473, 490, 486, 500, 501, 487, 491, 472, 496, 480, 506, 475, 474, 507, 481, 497, 478,482,485]
person_test_number = case_number_case_fengkong person_test_number = case_number_case_tixian
cases_number_temp = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368] cases_number_temp = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368]
case_number_33 = [358, 359, 360,323,383,385,399,367,372,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 389, 390, 394, 395, 396, 397] case_number_33 = [358, 359, 360,323,383,385,399,367,372,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 389, 390, 394, 395, 396, 397]
case_number_newhetong = [416, 420, 421, 417, 426, 427, 431, 424, 432, 428, 425, 414, 422, 418, 419, 423, 415] case_number_newhetong = [416, 420, 421, 417, 426, 427, 431, 424, 432, 428, 425, 414, 422, 418, 419, 423, 415]
...@@ -81,9 +82,11 @@ case_number_ka_koala_loan = [{'ka_koala_loan':['803','802','801','800','798','79 ...@@ -81,9 +82,11 @@ case_number_ka_koala_loan = [{'ka_koala_loan':['803','802','801','800','798','79
case_number_ka_koala_repay = [{'ka_koala_repay':['791','789','790','786','787','788']}] case_number_ka_koala_repay = [{'ka_koala_repay':['791','789','790','786','787','788']}]
case_number_test = [{'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_funding_plan = [{'passportapi':[816,817]}] 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_fengkong = [{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,753,671]}]
case_number_case_fangkuan = [{'ka_koala_loan':[801,818,798,799,800,802,820]}] case_number_case_fengkong_refuse = [{'koala_risk':[699]},{'usercenter':[500]},{'risk':[651]},{'koala_risk':[709,753,705]}]
case_number_case_tixian = [{'ka_koala_loan':[801,818,798,799,800,802,820]}]
case_number_case_fangkuan = [{'ka_koala_loan':[835]},{'zijin':[824,822]}]
[sqldata] [sqldata]
sqldata = ['success', '159866', 'a973c6ba-a521-4530-bb10-786d8395ea70', 0, 'true', 1606752000000, 100010] sqldata = [373, '325,326,327', '测试借款用途']
...@@ -76,10 +76,18 @@ funding_plan={'testnumer':'case_number_funding_plan', ...@@ -76,10 +76,18 @@ funding_plan={'testnumer':'case_number_funding_plan',
case_fengkong={'testnumer':'case_number_case_fengkong', case_fengkong={'testnumer':'case_number_case_fengkong',
'casename':'case_fengkong','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7} 'casename':'case_fengkong','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7}
case_fengkong_refuse={'testnumer':'case_number_case_fengkong_refuse',
'casename':'case_fengkong_refuse','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7}
case_tixian={'testnumer':'case_number_case_tixian',
'casename':'case_tixian','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7}
case_fangkuan={'testnumer':'case_number_case_fangkuan', case_fangkuan={'testnumer':'case_number_case_fangkuan',
'casename':'case_fangkuan','platform':'KA','reportname':'KA串流程','projectId':43,'psid':7} '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}
...@@ -105,7 +113,7 @@ project_mapping={ ...@@ -105,7 +113,7 @@ project_mapping={
'usercenter':usercenter, 'usercenter':usercenter,
'funding_plan':funding_plan, 'funding_plan':funding_plan,
'case_fengkong':case_fengkong, 'case_fengkong':case_fengkong,
'case_fangkuan':case_fangkuan 'case_tixian':case_tixian,
'case_fengkong_refuse':case_fengkong_refuse,
'case_fangkuan': case_fangkuan
} }
\ No newline at end of file
...@@ -166,10 +166,13 @@ if __name__ == '__main__': ...@@ -166,10 +166,13 @@ if __name__ == '__main__':
# name='sidecar' # name='sidecar'
#'account' or 'configuration_center'or #'account' or 'configuration_center'or
# 串流程 # 串流程
# name='funding_plan' # name='funding_plan'
name='case_fengkong' # name='case_fengkong'
# name='case_fangkuan' # name = 'case_fengkong_refuse'
name='case_tixian'
# name = 'case_fangkuan'
# ############ # ############
......
...@@ -13,7 +13,7 @@ from blueprints.tools.dealScene import dealScene ...@@ -13,7 +13,7 @@ from blueprints.tools.dealScene import dealScene
from blueprints.tools.dealbody import requesturl,dealbodyHeaderType,deal_globalParam,setGloablValue,setup_step from blueprints.tools.dealbody import requesturl,dealbodyHeaderType,deal_globalParam,setGloablValue,setup_step
from blueprints.tools.rwKeyData import rwKeyData from blueprints.tools.rwKeyData import rwKeyData
import requests,jsonpath,re,json,os,pickle import requests,jsonpath,re,json,os,pickle
from blueprints.settings import testConfig,qaConfig,ka2Config,qa2Config,test1Config,qa3Config,msgConfig from blueprints.settings import testConfig,qaConfig,ka2Config,qa2Config,test1Config,qa3Config,msgConfig,config as kconfig
import warnings,demjson,base64,urllib3,time,html import warnings,demjson,base64,urllib3,time,html
from blueprints.tools.debugtalk import finalexecaql from blueprints.tools.debugtalk import finalexecaql
from urllib.parse import urlencode from urllib.parse import urlencode
...@@ -29,6 +29,9 @@ class requestResult: ...@@ -29,6 +29,9 @@ class requestResult:
self.casefile=readCaseFile(casefile) self.casefile=readCaseFile(casefile)
self.keydata = rwKeyData(config) self.keydata = rwKeyData(config)
self.config = config self.config = config
if not int(self.keydata.readKeyData("channnel","finalenv")):
self.config=kconfig.get(self.casefile.get('env')) or self.config
print(self.config)
#setGloablValue(self.keydata,self.casefile) #setGloablValue(self.keydata,self.casefile)
self.casefile=deal_globalParam(self.config,self.casefile) self.casefile=deal_globalParam(self.config,self.casefile)
#print(self.casefile) #print(self.casefile)
...@@ -681,7 +684,14 @@ if __name__ == '__main__': ...@@ -681,7 +684,14 @@ 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=[753]
# case_number_case_fengkong = [{'koala_risk': [699]}, {'usercenter': [500]}, {'risk': [651]},
# {'koala_risk': [709, 753, 671]}]
# cases_number=[753]
cases_number=[800]
#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]
...@@ -689,7 +699,7 @@ if __name__ == '__main__': ...@@ -689,7 +699,7 @@ if __name__ == '__main__':
# 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 =[{'koala_risk': t.split(',')}] casefile =[{'ka_koala_loan': t.split(',')}]
#casefile = [{'passportapi': t.split(',')}] #casefile = [{'passportapi': t.split(',')}]
......
...@@ -128,7 +128,7 @@ class test1Config(baseConfig): ...@@ -128,7 +128,7 @@ class test1Config(baseConfig):
charset="utf8" charset="utf8"
class test11Config(baseConfig): class btestConfig(baseConfig):
namespace='test1' namespace='test1'
type="mysql" type="mysql"
host = "172.18.3.85" host = "172.18.3.85"
...@@ -156,7 +156,8 @@ config={ ...@@ -156,7 +156,8 @@ config={
"test1":test1Config, "test1":test1Config,
"qa3":qa3Config, "qa3":qa3Config,
"msg":msgConfig, "msg":msgConfig,
'pre':preConfig 'pre':preConfig,
'btest':btestConfig
} }
......
...@@ -17,11 +17,11 @@ class maintest(unittest.TestCase): ...@@ -17,11 +17,11 @@ class maintest(unittest.TestCase):
suite.addTest(testcase_klass(name, config=config)) suite.addTest(testcase_klass(name, config=config))
return suite return suite
class koala_risk0(maintest): class ka_koala_loan0(maintest):
def test_100(self): def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/699.json') res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/801.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/699.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/801.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',)
...@@ -38,12 +38,10 @@ class koala_risk0(maintest): ...@@ -38,12 +38,10 @@ class koala_risk0(maintest):
else : else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据' msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg) self.assertEqual(0, 0,msg=msg)
def test_101(self):
class usercenter1(maintest): res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/818.json')
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/usercenter/500.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/usercenter/500.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/818.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',)
...@@ -60,12 +58,10 @@ class usercenter1(maintest): ...@@ -60,12 +58,10 @@ class usercenter1(maintest):
else : else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据' msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg) self.assertEqual(0, 0,msg=msg)
def test_102(self):
class risk2(maintest): res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/798.json')
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/risk/651.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/risk/651.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/798.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',)
...@@ -82,12 +78,10 @@ class risk2(maintest): ...@@ -82,12 +78,10 @@ class risk2(maintest):
else : else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据' msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg) self.assertEqual(0, 0,msg=msg)
def test_103(self):
class koala_risk3(maintest): res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/799.json')
def test_100(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/709.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/709.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/799.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',)
...@@ -104,10 +98,10 @@ class koala_risk3(maintest): ...@@ -104,10 +98,10 @@ class koala_risk3(maintest):
else : else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据' msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg) self.assertEqual(0, 0,msg=msg)
def test_101(self): def test_104(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/753.json') res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/800.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/753.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/800.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',)
...@@ -124,10 +118,30 @@ class koala_risk3(maintest): ...@@ -124,10 +118,30 @@ class koala_risk3(maintest):
else : else :
msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据' msg='断言成功,预期结果:'+str(t)+',实际结果查看响应数据'
self.assertEqual(0, 0,msg=msg) self.assertEqual(0, 0,msg=msg)
def test_102(self): def test_105(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/671.json') res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/802.json')
res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/802.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_106(self):
res1=requestResult(self.config,'/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/820.json')
res,finalresult=res1.requestJson() res,finalresult=res1.requestJson()
t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/koala_risk/671.json').get('result') t=readCaseFile('/Users/jiazhaopu/QGjobs/autointerface/testCase/ka_koala_loan/820.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',)
......
...@@ -258,8 +258,8 @@ if __name__ == "__main__": ...@@ -258,8 +258,8 @@ if __name__ == "__main__":
names=['ka_koala_repay','koala_risk','ka_koala_loan','risk'] names=['ka_koala_loan','koala_risk','risk']
# names = ['risk'] # names = ['ka_koala_loan','zijin']
# names=['zhongtai_hetong','msg','configuration_center'] # names=['zhongtai_hetong','msg','configuration_center']
......
No preview for this file type
...@@ -9,13 +9,14 @@ ...@@ -9,13 +9,14 @@
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "btest",
"sleep": "3", "sleep": "3",
"rule": { "rule": {
"bankCardNumber": "fakeinfo('cardNo',flag=0)" "bankCardNumber": "fakeinfo('cardNo',flag=0)"
}, },
"body": { "body": {
"applyNumber": "{{applyno}}", "applyNumber": "{{applyno}}",
"bankCode": "ICBC", "bankCode": "{{cardnoprovider}}",
"bankCardNumber": "%s", "bankCardNumber": "%s",
"reservePhoneNumber": "{{phone_no}}", "reservePhoneNumber": "{{phone_no}}",
"userId": "%s" "userId": "%s"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"casename": "token", "casename": "token",
"sql": "select '000000' as verificationCode;\r\n", "sql": "select '000000' as verificationCode;\r\n",
"db": "xyqb", "db": "xyqb",
"env": "btest",
"result": { "result": {
"code": "0" "code": "0"
}, },
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "btest",
"setup": { "setup": {
"a": "clear_redis()" "a": "clear_redis()"
}, },
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"notmustexist": "['code', 'businessCode', 'businessFlag', 'success']" "notmustexist": "['code', 'businessCode', 'businessFlag', 'success']"
}, },
"type": "koala", "type": "koala",
"env": "btest",
"param": { "param": {
"amount": "%s", "amount": "%s",
"term": "%s", "term": "%s",
......
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
"commit": "查卡-获取渠道卡列表(GET)", "commit": "查卡-获取渠道卡列表(GET)",
"url": "/v1/card/channel/query", "url": "/v1/card/channel/query",
"casename": "token", "casename": "token",
"sql": "select a.`created_from`,a.`user_id`,1 as action , b.loan_id,a.`order_no`\r\nfrom xyqb.ka_bind_card_record a\r\ninner join xyqb.`loan_account_ext` b\r\ninner join xyqb_user.user c\r\non a.`order_no`=b.`order_no`\r\nand c.id=a.`user_id`\r\nwhere c.`phone_no`='{{phone_no}}'; ", "sql": "select a.`created_from`,a.`user_id`,1 as action , b.loan_id,a.`order_no`\r\nfrom xyqb.ka_bind_card_record a\r\ninner join xyqb.`loan_account_ext` b\r\ninner join xyqb_user.user c\r\non a.`order_no`=b.`order_no`\r\nand c.id=a.`user_id`\r\nwhere c.`phone_no`='{{phone_no}}'\r\norder by a.id desc limit 1; ",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "btest",
"body": { "body": {
"channel": "%s", "channel": "%s",
"userId": "%s", "userId": "%s",
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "btest",
"param": { "param": {
"orderNo": "{{applyno}}" "orderNo": "{{applyno}}"
}, },
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"casename": "token", "casename": "token",
"sql": "select a.`loan_application_history_id`\r\nfrom xyqb.loan_application_manifest_history a\r\ninner join xyqb_user.user b\r\non a.`user_id`=b.`id`\r\nwhere b.`phone_no`='{{phone_no}}'; ", "sql": "select a.`loan_application_history_id`\r\nfrom xyqb.loan_application_manifest_history a\r\ninner join xyqb_user.user b\r\non a.`user_id`=b.`id`\r\nwhere b.`phone_no`='{{phone_no}}'; ",
"db": "xyqb", "db": "xyqb",
"env": "btest",
"result": { "result": {
"code": "0" "code": "0"
}, },
......
{
"method": "POST",
"commit": "考拉通知资金系统准备待放款的确认单接口(POST)",
"url": "/v1/dummy/clotho/notify",
"casename": "token",
"sql": "select a.`created_from`, c.`uuid`,a.id\r\nfrom xyqb.`loan_application_history` a\r\ninner join xyqb.`loan_account_ext` b\r\ninner join xyqb.`apply_quota_record` c\r\non a.id=b.`loan_id`\r\nand b.`order_no`=c.`order_no`\r\nwhere b.`order_no`='{{applyno}}';",
"db": "xyqb",
"result": {
"code": "0"
},
"type": "koala",
"body": {
"code": "0",
"msg": "success",
"bizChannel": "%s",
"uuid": "%s",
"bizType": "0",
"auditResult": "true",
"deadLine": "1591545600000",
"bizNo": "%s"
},
"header": {
"Content-Type": "application/json"
}
}
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"casename": "token", "casename": "token",
"sql": "select a.`business_flow_no`,b.`loan_application_history_id`,b.`term_no`\r\nfrom xyqb.`pay_order` a \r\ninner join xyqb.`repayment_record` b\r\ninner join xyqb.`loan_application_manifest_history` c\r\non a.`pay_order_no`=b.`repayment_plan_id`\r\nand b.`loan_application_history_id`=c.`loan_application_history_id`\r\nwhere b.`loan_application_history_id`={{sqldata_0}}\r\norder by rand() limit 1;", "sql": "select a.`business_flow_no`,b.`loan_application_history_id`,b.`term_no`\r\nfrom xyqb.`pay_order` a \r\ninner join xyqb.`repayment_record` b\r\ninner join xyqb.`loan_application_manifest_history` c\r\non a.`pay_order_no`=b.`repayment_plan_id`\r\nand b.`loan_application_history_id`=c.`loan_application_history_id`\r\nwhere b.`loan_application_history_id`={{sqldata_0}}\r\norder by rand() limit 1;",
"db": "xyqb", "db": "xyqb",
"sleep": "300",
"result": { "result": {
"code": "0" "code": "0"
}, },
......
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "test1",
"rule": {
"amount": "getrandomOne([10000,20000,50000])",
"term": "getrandomOne([6,9,12])"
},
"body": { "body": {
"code": "0", "code": "0",
"msg": "%s", "msg": "%s",
...@@ -17,13 +22,14 @@ ...@@ -17,13 +22,14 @@
"bizNo": "{{applyno}}", "bizNo": "{{applyno}}",
"sceneId": "%s", "sceneId": "%s",
"auditResult": "%s", "auditResult": "%s",
"amount": "10000", "amount": "%s",
"term": "12", "term": "%s",
"deadLine": "%s", "deadLine": "%s",
"extData": "{'ces':'测试'}", "extData": "{'ces':'测试'}",
"financeProducts": "[{'min':10000,'max':10000,'terms':[{'fundInfo':[{'rateType':1,'fundId':%s,'rate':'0','priority':1,'feeType':1,'fundProductId':100000}],'term':12}]}]" "financeProducts": "[{'min':10000,'max':10000,'terms':[{'fundInfo':[{'rateType':1,'fundId':%s,'rate':'0','priority':1,'feeType':1,'fundProductId':100000}],'term':6}]}]",
"validity": "30"
}, },
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"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.phone_no={{phone_no}};", "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",
"env": "test1",
"result": { "result": {
"code": "0" "code": "0"
}, },
...@@ -23,4 +24,4 @@ ...@@ -23,4 +24,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('20200701')*1000 as deadline\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('20201201')*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"
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
"auditResult": "%s", "auditResult": "%s",
"deadLine": "%s", "deadLine": "%s",
"extData": "{'ces':'测试'}", "extData": "{'ces':'测试'}",
"refuseReason": "{'ces':'测试审核拒绝'}" "refuseReason": "{'ces':'测试审核拒绝'}",
"validity": "30"
}, },
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"uuid": "%s", "uuid": "%s",
"orderNo": "{{applyno}}", "orderNo": "{{applyno}}",
"status": "REJECT", "status": "REJECT",
"refuseReason": "%s" "refuseReason": "%s",
"quotaExpiredAt": ""
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"casename": "token", "casename": "token",
"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;", "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",
"env": "test1",
"result": { "result": {
"code": "0" "code": "0"
}, },
...@@ -21,4 +22,4 @@ ...@@ -21,4 +22,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
{ {
"method": "GET", "method": "GET",
"commit": "触发定时任务(GET)", "commit": "触发定时任务(GET)",
"url": "/v1/risk_management/audit/credit_application/start_condition_check_job?orderNo={{applyno}}", "url": "/v1/credit_order/job/submission/test/{{applyno}}",
"casename": "token", "casename": "token",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"env": "test1",
"sleep": "5", "sleep": "5",
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"aftersql": "saveuserId(\\'user_id\\')", "aftersql": "saveuserId(\\'user_id\\')",
"beforasql": "select id from xyqb_user.user where phone_no='%s'" "beforasql": "select id from xyqb_user.user where phone_no='%s'"
} }
} }
\ No newline at end of file
...@@ -39,4 +39,4 @@ ...@@ -39,4 +39,4 @@
"address": "fakeinfo('address')", "address": "fakeinfo('address')",
"email": "fakeinfo('email')" "email": "fakeinfo('email')"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
}, },
"db": "xyqb", "db": "xyqb",
"sql": "select u.uuid,l.id from xyqb_user.user u inner join xyqb.loan_application_history l on u.id=l.user_id where u.phone_no='%s' order by l.id desc limit 1;" "sql": "select u.uuid,l.id from xyqb_user.user u inner join xyqb.loan_application_history l on u.id=l.user_id where u.phone_no='%s' order by l.id desc limit 1;"
} }
\ No newline at end of file
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"resule": { "resule": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "api" "type": "api"
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
}, },
"db": "payment_center", "db": "payment_center",
"sql": "select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}'));" "sql": "select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}'));"
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
}, },
"db": "payment_center", "db": "payment_center",
"sql": "select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}');" "sql": "select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}');"
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"db": "payment_center", "db": "payment_center",
"sql": "select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}')) order by id desc limit 1;", "sql": "select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}')) order by id desc limit 1;",
"isurl": "1" "isurl": "1"
} }
\ No newline at end of file
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{NAMESPACE}}" "namespace": "{{NAMESPACE}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
"isAutoAssign": "true", "isAutoAssign": "true",
"isAutoLoan": "true", "isAutoLoan": "true",
"isAutoFetch": "true", "isAutoFetch": "true",
"autoLoanFetch": "true" "autoLoanFetch": "true",
"updatedAt": "%s"
}, },
"sql": "SELECT funding_corp_id from xyqb.funding_corp_policy order by rand() limit 1;", "sql": "SELECT NOW() ;",
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded", "Content-Type": "application/x-www-form-urlencoded",
"x-auth-token": "opapitoken" "x-auth-token": "opapitoken"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"code": "0" "code": "0"
}, },
"type": "scapi", "type": "scapi",
"env": "test1",
"rule": { "rule": {
"auditResult,": "getCircle([1])", "auditResult,": "getCircle([1])",
"nextAppTime": "gettime(1,format=1)" "nextAppTime": "gettime(1,format=1)"
...@@ -24,4 +25,4 @@ ...@@ -24,4 +25,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
{
"method": "POST",
"commit": "公用风控数据导入-不带借款用途(POST)",
"url": "/spider-center/middle_office/ex/import/risk_infos",
"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 a.`apply_no`='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb_user",
"result": {
"code": "0"
},
"type": "scapi",
"rule": {
"auditResult,": "getCircle([1])",
"nextAppTime": "gettime(1,format=1)"
},
"param": {
"uuid": "%s",
"applyNo": "{{applyno}}",
"productType": "%s",
"channelId": "%s",
"riskInfos": "{\r\n'auditAmount': 5000.0,\r\n'auditTerm': 3,\r\n'sourceType': '0',\r\n'ocrData': {\r\n'agency': '北京市朝阳区**派出所',\r\n'birthday': '2014.01.01',\r\n'gender': '男',\r\n'name': '量化派',\r\n'nation': '汉',\r\n'idCardAddress': '北京市海淀区丹棱街1号',\r\n'idCardValidEndTime': '9999.01.01',\r\n'idCardValidStartTime': '2014.01.01',\r\n'idNumber': '110102198006259999',\r\n'imgType': '1','isNeedDownloadParam':'false',\r\n'idCardFrontImgBase64Str': 'MQ==',\r\n'idCardBackImgBase64Str': 'MQ==',\r\n},\r\n'faceLiveData': {\r\n'confidence': 99.9,\r\n'thresholds': {\r\n'1e-3': 89.0,\r\n'1e-4': 89.0,\r\n'1e-5': 89.0,\r\n'1e-6': 89.0\r\n}\r\n},\r\n'linkFaceLiveData': {\r\n'confidence': 89.0\r\n},\r\n'shangTangLiveData': {\r\n'ref_score': 90.8,\r\n'security_score': 91.0\r\n},\r\n'tencentLiveData': {\r\n'liveRate': 91.9,\r\n'similarity': 98.9}}"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
\ No newline at end of file
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
}, },
"type": "passportapi", "type": "passportapi",
"body": "{}", "body": "{}",
"env": "test1",
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
......
{
"method": "POST",
"commit": "支付中心通知资金系统放款成功结果(POST)",
"url": "/middle_office/pay/notify",
"casename": "token",
"sql": "select loan_id as orderNo,loan_id as payOrderNo, concat(UNIX_TIMESTAMP(now())*1000) \r\nfrom xyqb.`loan_account_ext` where order_no='{{applyno}}';",
"db": "xyqb",
"result": {
"code": "0"
},
"type": "zijin",
"body": {
"orderNo": "%s",
"payOrderNo": "%s",
"payTime": "%s",
"payStatus": "3"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "POST",
"commit": "支付中心通知资金系统放款失败结果(POST)",
"url": "/middle_office/pay/notify",
"casename": "token",
"sql": "select loan_id as orderNo,loan_id as payOrderNo, concat(UNIX_TIMESTAMP(now())*1000) \r\nfrom xyqb.`loan_account_ext` where order_no='{{applyno}}';",
"db": "xyqb",
"result": {
"code": "0"
},
"type": "zijin",
"body": {
"orderNo": "%s",
"payOrderNo": "%s",
"payTime": "%s",
"payStatus": "4"
},
"header": {
"Content-Type": "application/json"
}
}
\ No newline at end of file
{
"method": "GET",
"commit": "资金系统推送放款(GET)",
"url": "/middle_office/kaola/loan",
"casename": "token",
"sql": "select loan_id from xyqb.`loan_account_ext` where order_no='{{applyno}}';",
"db": "xyqb",
"result": {
"code": "0"
},
"type": "zijin",
"sleep": "3",
"param": {
"loanId": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
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