Commit f575d5357d2a8ecf638cb4d6d09d65f73ecd6958

Authored by lixi
1 parent a0762179

更新文件

commons/api/hg/loan_generalCustomer/generalCustomerLoan_delete.py
@@ -16,6 +16,7 @@ class generalCustomerLoan_delete(): @@ -16,6 +16,7 @@ class generalCustomerLoan_delete():
16 "Accept-Encoding" :"gzip, deflate" 16 "Accept-Encoding" :"gzip, deflate"
17 } 17 }
18 18
  19 + #返回借款单的id
19 self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";' 20 self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";'
20 21
21 22
commons/api/hg/loan_generalCustomer/generalCustomerLoan_enforce.py
@@ -15,6 +15,7 @@ class generalCustomerLoan_enforce(): @@ -15,6 +15,7 @@ class generalCustomerLoan_enforce():
15 "Accept-Language" :"zh-CN,zh;q=0.9", 15 "Accept-Language" :"zh-CN,zh;q=0.9",
16 "Accept-Encoding" :"gzip, deflate" 16 "Accept-Encoding" :"gzip, deflate"
17 } 17 }
  18 + # 返回借款单的id
18 self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";' 19 self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";'
19 20
20 21
testcase/hg/loan_generalCustomer/test_generalCustomerLoan.py
@@ -19,7 +19,7 @@ c=createAndTrade() @@ -19,7 +19,7 @@ c=createAndTrade()
19 19
20 20
21 class test_generalCustomerLoan(unittest.TestCase): 21 class test_generalCustomerLoan(unittest.TestCase):
22 - "杭果市场-借款管理-客户借款" 22 + "杭果市场-借款管理-普通客户借款"
23 23
24 @classmethod 24 @classmethod
25 def setUpClass(cls) : 25 def setUpClass(cls) :
@@ -39,7 +39,7 @@ class test_generalCustomerLoan(unittest.TestCase): @@ -39,7 +39,7 @@ class test_generalCustomerLoan(unittest.TestCase):
39 39
40 @unittest.case_mark(my.mark()) 40 @unittest.case_mark(my.mark())
41 def test_generalCustomerLoan_01_save(self): 41 def test_generalCustomerLoan_01_save(self):
42 - "普通借款-新增预支款:根据批次号新增预支款" 42 + "新增预支款:根据批次号新增预支款"
43 #生成两个普通借款单 43 #生成两个普通借款单
44 for i in range(2): 44 for i in range(2):
45 #替换批次号 45 #替换批次号
@@ -55,7 +55,7 @@ class test_generalCustomerLoan(unittest.TestCase): @@ -55,7 +55,7 @@ class test_generalCustomerLoan(unittest.TestCase):
55 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save") 55 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save")
56 @unittest.case_mark(my.mark()) 56 @unittest.case_mark(my.mark())
57 def test_generalCustomerLoan_02_list(self): 57 def test_generalCustomerLoan_02_list(self):
58 - "普通借款-列表查询:执行状态,客户,批号和结算日期都输入合法值,查询指定借款数据" 58 + "列表-查询:执行状态,客户,批号和结算日期都输入合法值,查询指定借款数据"
59 #修改查询的值 59 #修改查询的值
60 body=l.body.copy() 60 body=l.body.copy()
61 body["batch"] = self.batch[0] 61 body["batch"] = self.batch[0]
@@ -73,7 +73,7 @@ class test_generalCustomerLoan(unittest.TestCase): @@ -73,7 +73,7 @@ class test_generalCustomerLoan(unittest.TestCase):
73 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save") 73 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save")
74 @unittest.case_mark(my.mark()) 74 @unittest.case_mark(my.mark())
75 def test_generalCustomerLoan_03_delete(self): 75 def test_generalCustomerLoan_03_delete(self):
76 - "普通借款-撤销:撤销一个未执行的借款单" 76 + "列表-撤销:撤销一个未执行的借款单"
77 #查询批次号对应id 77 #查询批次号对应id
78 batch_id=db.mysql_selectOne(d.sql.replace("2109000088",self.batch[0]))[0] 78 batch_id=db.mysql_selectOne(d.sql.replace("2109000088",self.batch[0]))[0]
79 #替换url的批次id 79 #替换url的批次id
@@ -89,7 +89,7 @@ class test_generalCustomerLoan(unittest.TestCase): @@ -89,7 +89,7 @@ class test_generalCustomerLoan(unittest.TestCase):
89 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save") 89 @unittest.skipDepend(depend="test_generalCustomerLoan_01_save")
90 @unittest.case_mark(my.mark()) 90 @unittest.case_mark(my.mark())
91 def test_generalCustomerLoan_04_enforce(self): 91 def test_generalCustomerLoan_04_enforce(self):
92 - "普通借款-执行:执行一个未执行的借款单" 92 + "列表-执行:执行一个未执行的借款单"
93 #查询批次号对应id 93 #查询批次号对应id
94 batch_id=db.mysql_selectOne(d.sql.replace("2109000088",self.batch[1]))[0] 94 batch_id=db.mysql_selectOne(d.sql.replace("2109000088",self.batch[1]))[0]
95 #替换url的批次id 95 #替换url的批次id
testcase/hg/loan_vipCustomer/test_getSingleWithoutValidate.py
@@ -13,7 +13,7 @@ class test_getSingleWithoutValidate(unittest.TestCase): @@ -13,7 +13,7 @@ class test_getSingleWithoutValidate(unittest.TestCase):
13 13
14 @unittest.case_mark(my.mark()) 14 @unittest.case_mark(my.mark())
15 def test_getSingleWithoutValidate_01(self): 15 def test_getSingleWithoutValidate_01(self):
16 - "大客户借款-新增-刷卡:刷卡查询园区卡信息" 16 + "新增-刷卡:刷卡查询园区卡信息"
17 re=hg.post(url=g.url,headers=g.header,json=g.body) 17 re=hg.post(url=g.url,headers=g.header,json=g.body)
18 print(re.json()) 18 print(re.json())
19 self.assertEqual(re.status_code, 200) 19 self.assertEqual(re.status_code, 200)
testcase/hg/loan_vipCustomer/test_specialLoanQuery.py
@@ -13,7 +13,7 @@ class test_specialLoanQuery(unittest.TestCase): @@ -13,7 +13,7 @@ class test_specialLoanQuery(unittest.TestCase):
13 13
14 @unittest.case_mark(my.mark()) 14 @unittest.case_mark(my.mark())
15 def test_specialLoanQuery_01(self): 15 def test_specialLoanQuery_01(self):
16 - "大客户借款-新增-查询:查询客户的订单信息" 16 + "新增借款页-查询:点击新增,查询客户的订单信息"
17 #获取当天时间 17 #获取当天时间
18 body=s.body.copy() 18 body=s.body.copy()
19 body["tradeDateStart"]=com.dates() 19 body["tradeDateStart"]=com.dates()
testcase/hg/loan_vipCustomer/test_vipCustomerLoan_details.py
@@ -13,7 +13,7 @@ class test_vipCustomerLoan_details(unittest.TestCase): @@ -13,7 +13,7 @@ class test_vipCustomerLoan_details(unittest.TestCase):
13 13
14 @unittest.case_mark(my.mark()) 14 @unittest.case_mark(my.mark())
15 def test_vipCustomerLoan_details_01(self): 15 def test_vipCustomerLoan_details_01(self):
16 - "大客户借款-详情:选择指定大客户借款数据,点击查看" 16 + "借款详情:选择指定大客户借款数据,点击查看"
17 re=hg.post(url=vip.url,headers=vip.header,json=vip.body) 17 re=hg.post(url=vip.url,headers=vip.header,json=vip.body)
18 print(re.json()) 18 print(re.json())
19 self.assertEqual(re.status_code, 200) 19 self.assertEqual(re.status_code, 200)
testcase/hg/loan_vipCustomer/test_vipCustomerLoan_list.py
@@ -13,7 +13,7 @@ class test_vipCustomerLoan_list(unittest.TestCase): @@ -13,7 +13,7 @@ class test_vipCustomerLoan_list(unittest.TestCase):
13 13
14 @unittest.case_mark(my.mark()) 14 @unittest.case_mark(my.mark())
15 def test_vipCustomerLoan_list_01(self): 15 def test_vipCustomerLoan_list_01(self):
16 - "大客户借款-查询:客户,卡号和结算日期查输入合法值,查询一条指定数据" 16 + "列表查询:客户,卡号和结算日期查输入合法值,查询一条指定数据"
17 re=hg.post(url=vip.url,headers=vip.header,json=vip.body) 17 re=hg.post(url=vip.url,headers=vip.header,json=vip.body)
18 print(re.json()) 18 print(re.json())
19 self.assertEqual(re.status_code, 200) 19 self.assertEqual(re.status_code, 200)