Commit ce13d751347a836f755dc06810e4f5fb2dbda415

Authored by wenleiming
1 parent efe21dc5

添加备注

testcase/FeedbackCustomerController/test_fc_add.py
@@ -21,6 +21,7 @@ class test_fc_add(unittest.TestCase): @@ -21,6 +21,7 @@ class test_fc_add(unittest.TestCase):
21 self.cardnb = db.mysql_selectOne('''SELECT card_no FROM `dili_account`.`account_user_card` WHERE state = 1 21 self.cardnb = db.mysql_selectOne('''SELECT card_no FROM `dili_account`.`account_user_card` WHERE state = 1
22 AND firm_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY id LIMIT 1''')[0] 22 AND firm_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY id LIMIT 1''')[0]
23 def test_fc_add_01(self): 23 def test_fc_add_01(self):
  24 + "新增返还人"
24 body = fc.body.replace("18828281176",ra.phone_number()).\ 25 body = fc.body.replace("18828281176",ra.phone_number()).\
25 replace("你好",ra.name()).\ 26 replace("你好",ra.name()).\
26 replace("888810054630",str(self.cardnb)) 27 replace("888810054630",str(self.cardnb))
testcase/FeedbackCustomerController/test_fc_edit.py
@@ -34,9 +34,7 @@ class test_fc_edit(unittest.TestCase): @@ -34,9 +34,7 @@ class test_fc_edit(unittest.TestCase):
34 FROM `dili_jmsf`.`feedback_customer` WHERE market_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''') 34 FROM `dili_jmsf`.`feedback_customer` WHERE market_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''')
35 # print(self.mesg) 35 # print(self.mesg)
36 def test_fc_edit_01(self): 36 def test_fc_edit_01(self):
37 - "id=40&name=农交&mobile=18828281176&cardNumber=888810054630&\  
38 - relationCardTemp=210720133001&relationalCard[0].cardNumber=210720131533"  
39 - 37 + "修改返还人"
40 body = fc.body.replace("id=40","id="+str(self.mesg[0])).\ 38 body = fc.body.replace("id=40","id="+str(self.mesg[0])).\
41 replace("农交",str(self.mesg[1])).\ 39 replace("农交",str(self.mesg[1])).\
42 replace("18828281176",str(self.mesg[2])).\ 40 replace("18828281176",str(self.mesg[2])).\
testcase/FeedbackCustomerController/test_fc_view.py
@@ -27,7 +27,7 @@ class test_fc_view(unittest.TestCase): @@ -27,7 +27,7 @@ class test_fc_view(unittest.TestCase):
27 27
28 # @unittest.case_mark(my.mark()) 28 # @unittest.case_mark(my.mark())
29 def test_fc_view_01(self): 29 def test_fc_view_01(self):
30 - 30 + "查看返还人"
31 # 请求url中的需要替换为新增返还人的id 31 # 请求url中的需要替换为新增返还人的id
32 url = vi.url.replace("40", str(self.code)) 32 url = vi.url.replace("40", str(self.code))
33 # print("数据处理后的url", url) 33 # print("数据处理后的url", url)
testcase/FeedbackCustomerController/test_feedback_customer_disable.py
@@ -23,6 +23,7 @@ class test_feedback_customer_disable(unittest.TestCase): @@ -23,6 +23,7 @@ class test_feedback_customer_disable(unittest.TestCase):
23 # print("查询出返还人id", self.id) 23 # print("查询出返还人id", self.id)
24 24
25 def test_feedback_customer_disable_01(self): 25 def test_feedback_customer_disable_01(self):
  26 + "返还人禁用"
26 url = fcd.url.replace("44", str(self.ids)) 27 url = fcd.url.replace("44", str(self.ids))
27 re = sy1.post(url=url, headers=fcd.header) 28 re = sy1.post(url=url, headers=fcd.header)
28 # print(re.headers) 29 # print(re.headers)
testcase/FeedbackCustomerController/test_feedback_customer_enable.py
@@ -24,7 +24,7 @@ class test_feedback_customer_enable(unittest.TestCase): @@ -24,7 +24,7 @@ class test_feedback_customer_enable(unittest.TestCase):
24 market_id='''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''')[0] 24 market_id='''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY `id` DESC LIMIT 1''')[0]
25 print(self.ids) 25 print(self.ids)
26 def test_feedback_customer_enable_01(self): 26 def test_feedback_customer_enable_01(self):
27 - 27 + "返还人启用"
28 url = fce.url.replace("49",str(self.ids)) 28 url = fce.url.replace("49",str(self.ids))
29 re = sy1.post(url = url, headers = fce.header) 29 re = sy1.post(url = url, headers = fce.header)
30 # print(fce.url) 30 # print(fce.url)
testcase/FeedbackCustomerController/test_feedback_customer_query.py
@@ -20,6 +20,7 @@ class test_feedback_customer_query(unittest.TestCase): @@ -20,6 +20,7 @@ class test_feedback_customer_query(unittest.TestCase):
20 self.name1 = db.mysql_selectOne('''SELECT name FROM `dili_jmsf`.`feedback_customer` 20 self.name1 = db.mysql_selectOne('''SELECT name FROM `dili_jmsf`.`feedback_customer`
21 WHERE market_id = ''' + str(sy1.user["sy_user01"]["firmId"]) + ''' ORDER BY `id` DESC LIMIT 1''')[0] 21 WHERE market_id = ''' + str(sy1.user["sy_user01"]["firmId"]) + ''' ORDER BY `id` DESC LIMIT 1''')[0]
22 def test_feedback_customer_query_01(self): 22 def test_feedback_customer_query_01(self):
  23 + "返还人列表查询"
23 print(fcq.url) 24 print(fcq.url)
24 body = fcq.body\ 25 body = fcq.body\
25 .replace("潘婷婷", str(self.name1))\ 26 .replace("潘婷婷", str(self.name1))\
testcase/FeedbackOrderController/test_feedback_order_settlement.py
@@ -42,6 +42,7 @@ class test_feedback_order_settlement(unittest.TestCase): @@ -42,6 +42,7 @@ class test_feedback_order_settlement(unittest.TestCase):
42 #查询出结账单的id、name、cardnumber 42 #查询出结账单的id、name、cardnumber
43 43
44 def test_feedback_order_settlement_01(self): 44 def test_feedback_order_settlement_01(self):
  45 + "选择需要返点的订单进行结账"
45 body = fos.body.replace("id=25","id="+str(self.idd)).\ 46 body = fos.body.replace("id=25","id="+str(self.idd)).\
46 replace("888810057654",str(self.cardNumber)).\ 47 replace("888810057654",str(self.cardNumber)).\
47 replace("settleAmount=2","settleAmount="+str(self.Amount)).\ 48 replace("settleAmount=2","settleAmount="+str(self.Amount)).\
testcase/FeedbackOrderController/test_feedback_order_settlement_query.py
@@ -17,6 +17,7 @@ class test_feedback_order_settlement_query(unittest.TestCase): @@ -17,6 +17,7 @@ class test_feedback_order_settlement_query(unittest.TestCase):
17 pass 17 pass
18 18
19 def test_feedback_order_settlement_query_01(self): 19 def test_feedback_order_settlement_query_01(self):
  20 + "根据返还人和缴费时间进行查询"
20 print(fosq.url) 21 print(fosq.url)
21 body = fosq.body.replace("feedbackCustomerId=25", "feedbackCustomerId=16").\ 22 body = fosq.body.replace("feedbackCustomerId=25", "feedbackCustomerId=16").\
22 replace("2021-07-22 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\ 23 replace("2021-07-22 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
testcase/feedbackAccounrecordController_list/test_feedbackAccounrecordController_list.py
@@ -24,6 +24,7 @@ WHERE market_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY dili_jms @@ -24,6 +24,7 @@ WHERE market_id = '''+str(sy1.user["sy_user01"]["firmId"])+''' ORDER BY dili_jms
24 print("查询出查询时间和交易流水号:", self.body[0],self.body[1]) 24 print("查询出查询时间和交易流水号:", self.body[0],self.body[1])
25 25
26 def test_feedbackAccounrecordController_list_01(self): 26 def test_feedbackAccounrecordController_list_01(self):
  27 + "根据交易时间和交易流水号查询"
27 body = farcl.body.replace("2021-08-05 00:00:00", str(self.body[0])).\ 28 body = farcl.body.replace("2021-08-05 00:00:00", str(self.body[0])).\
28 replace("2021-08-05 23:59:59", str(self.body[0])).\ 29 replace("2021-08-05 23:59:59", str(self.body[0])).\
29 replace("1075782308694007808", self.body[1]) 30 replace("1075782308694007808", self.body[1])
testcase/feedbackOrderController_settlementlist/feedbackOrderController_querySumAmount.py
@@ -19,6 +19,7 @@ class test_feedbackOrderController_querySumAmount(unittest.TestCase): @@ -19,6 +19,7 @@ class test_feedbackOrderController_querySumAmount(unittest.TestCase):
19 pass 19 pass
20 20
21 def test_feedbackOrderController_querySumAmount_01(self): 21 def test_feedbackOrderController_querySumAmount_01(self):
  22 + "查询已结账笔数和已结账金额"
22 body = qsa.body.replace("2021-07-05 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\ 23 body = qsa.body.replace("2021-07-05 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
23 replace("2021-08-05 09:46:25", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")) 24 replace("2021-08-05 09:46:25", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
24 25
testcase/feedbackOrderController_settlementlist/test_feedbackOrderController_settlementlist.py
@@ -20,6 +20,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase): @@ -20,6 +20,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase):
20 pass 20 pass
21 21
22 def test_feedbackOrderController_settlementlist_01(self): 22 def test_feedbackOrderController_settlementlist_01(self):
  23 + "根据返还人和结算时间进行查询"
23 body = focsl.body.replace("2021-08-04 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\ 24 body = focsl.body.replace("2021-08-04 00:00:00", (datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
24 replace("2021-08-05 23:59:59", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")).\ 25 replace("2021-08-05 23:59:59", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")).\
25 replace("feedbackCustomerId=25", "feedbackCustomerId=26") 26 replace("feedbackCustomerId=25", "feedbackCustomerId=26")