Commit cfd30cc97cff0171ac9ffe1e808f423f3462a08d
Merge remote-tracking branch 'origin/master'
Showing
13 changed files
with
71 additions
and
28 deletions
commons/api/entranceFeeBillList.py
... | ... | @@ -249,7 +249,7 @@ def do_doPay(host="",autocompletecartype=None,fee_str="",**kwargs): |
249 | 249 | |
250 | 250 | |
251 | 251 | |
252 | -a = listPage(host="http://test.jmsf.diligrp.com:8385",attrName="收费单号",attrValue="202108060900019") | |
252 | +a = listPage(host="http://test.jmsf.diligrp.com:8385",attrName="收费单号",attrValue="202108060900028") | |
253 | 253 | print("listPage",a.json()) |
254 | 254 | orderId = a.json()["rows"][0]["id"] |
255 | 255 | number = a.json()["rows"][0]["number"] |
... | ... | @@ -303,11 +303,13 @@ carTypeName= re.findall('name="carTypeName" id="carTypeName" value="(.*?)" ',res |
303 | 303 | carTypeCode = re.findall('name="carTypeCode" id="carTypeCode" value="(.*?)" ',resOrderDetails.text)[0] |
304 | 304 | carTypeId = re.findall('name="carTypeId" id="carTypeId" value="(.*?)" ',resOrderDetails.text)[0] |
305 | 305 | carTypeWeight = "333" |
306 | -proveTypeCode = "1621" | |
307 | -proveType = proveTypeCode | |
306 | +# proveTypeCode = "1621" | |
307 | +proveType = re.findall(' value="(.*?)" id="proveType" name="proveType"',resOrderDetails.text)[0] | |
308 | +proveTypeCode = proveType | |
308 | 309 | # grossWeight="353" |
309 | 310 | grossWeight = re.findall('name="grossWeight" id="grossWeight" value="(.*?)"',resOrderDetails.text)[0] |
310 | -newWeight="20" | |
311 | +# newWeight="20" | |
312 | +newWeight = re.findall('name="weight" readonly value="(.*?)" id="weight"',resOrderDetails.text)[0] | |
311 | 313 | # tareWeight="333" |
312 | 314 | tareWeight=re.findall('name="tareWeight" id="tareWeight" value="(.*?)"',resOrderDetails.text)[0] |
313 | 315 | # depName="接车部" |
... | ... | @@ -327,8 +329,11 @@ weight = re.findall('name="weight" readonly value="(.*?)"',resOrderDetails.text) |
327 | 329 | calcDepId=re.findall('name="calcDepId" value="(.*?)"',resOrderDetails.text)[0] |
328 | 330 | categoryName="水果" |
329 | 331 | categoryId="14436" |
330 | -inGreeterName="通用测试" | |
331 | -inGreeterId="274" | |
332 | +# inGreeterName="通用测试" | |
333 | +inGreeterName = re.findall('id="inGreeterName" value="(.*?)"',resOrderDetails.text)[0] | |
334 | +# inGreeterId="274" | |
335 | +inGreeterId = re.findall('name="inGreeterId" id="inGreeterId" value="(.*?)"',resOrderDetails.text)[0] | |
336 | + | |
332 | 337 | |
333 | 338 | autocompletecartype = f"{carTypeCode}({carTypeName})" |
334 | 339 | print(autocompletecartype) | ... | ... |
commons/api/feedback_customer_query.py
... | ... | @@ -62,7 +62,7 @@ class feedback_customer_query(): |
62 | 62 | self.url = feedback_customer_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) |
63 | 63 | self.header = feedback_customer_query.header |
64 | 64 | self.body = feedback_customer_query.body |
65 | - print(self.body) | |
65 | + # print(self.body) | |
66 | 66 | # feedback_customer_query = urllib.parse.urlencode(feedback_customer_query()) |
67 | 67 | |
68 | 68 | # fcq = feedback_customer_query | ... | ... |
commons/api/feedback_order_settlement_query.py
... | ... | @@ -38,7 +38,7 @@ class feedback_order_settlement_query(): |
38 | 38 | self.url = feedback_order_settlement_query.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) |
39 | 39 | self.header = feedback_order_settlement_query.header |
40 | 40 | self.body = feedback_order_settlement_query.body |
41 | - print(self.body) | |
41 | + # print(self.body) | |
42 | 42 | |
43 | 43 | # fosq = feedback_order_settlement_query |
44 | 44 | # print(fosq.body) | ... | ... |
report/test.log
1 | +[2021-08-06 15:48:12] [INFO] : ====================================================================================== | |
2 | +[2021-08-06 15:48:12] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb | |
3 | +{'data': None, 'json': {'userName': 'sy_chen', 'password': 'VTOTPkEIxvmtuO8zWAmUxzEJRCclqyDB4PzmKnOTpX86q20urQX6IRUZPGHh4g5JDryMvrFYBWufCB9kTnOzHmN1rHx5CIpV8yR6bX0+lQAk2hFlPcZbsWoDgK31CsPr4epTirwTf3WX1lhpMh45oZCYWgaR9PctTb4vAbVJ4m0='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}} | |
4 | + | |
5 | +[2021-08-06 15:48:13] [INFO] : ====================================================================================== | |
6 | +[2021-08-06 15:48:13] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb | |
7 | +{'data': None, 'json': {'userName': 'sygangda', 'password': 'kflO1Y7sTjw7YW/y91OMEKKuxKDQCZHNpvL6CUTRMcYg5AJkoN+B1OJW6z5K2vHDeNiJC0+cEnZYcPYsBmFxWgVIiUjf/XAWhd2dsh1HcOQ/HK65PmUFPVOAWlMqFnmkPCgBpd8OYMYUHn6/gHqpyh+MUDi++TSDQcswcgKbY8E='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}} | |
8 | + | |
9 | +[2021-08-06 15:48:13] [INFO] : ====================================================================================== | |
10 | +[2021-08-06 15:48:13] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/listPage.action | |
11 | +{'rows': '10', 'page': '1', 'sort': 'et.created', 'order': 'desc', 'metadata[created]': '{"provider": "datetimeProvider", "index": 10, "field": "created"}', 'metadata[totalPrice]': '{"provider": "moneyProvider", "index": 20, "field": "totalPrice"}', 'metadata[paymentTime]': '{"provider": "datetimeProvider", "index": 30, "field": "paymentTime"}', 'metadata[type]': '{"provider": "entranceFeeBillTypeProvider", "index": 40, "field": "type"}', 'metadata[status]': '{"provider": "entranceFeeBillStateProvider", "index": 50, "field": "status"}', 'attr': 'number', 'attrValue': '202108060900019'} | |
12 | +{} | |
13 | + | |
14 | +[2021-08-06 15:48:13] [INFO] : ====================================================================================== | |
15 | +[2021-08-06 15:48:13] [INFO] : http://test.jmsf.diligrp.com:8385/entranceFeeBill/pay/3745.action | |
16 | +None | |
17 | +{} | |
18 | + | |
19 | +[2021-08-06 15:48:15] [INFO] : ====================================================================================== | |
20 | +[2021-08-06 15:48:15] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/icCheck?ic=888810032426 | |
21 | +None | |
22 | +{} | |
23 | + | |
24 | +[2021-08-06 15:48:20] [INFO] : ====================================================================================== | |
25 | +[2021-08-06 15:48:20] [INFO] : http://test.jmsf.diligrp.com:8385/api/jmsf/ajax/city/?name=万州&query=万州 | |
26 | +None | |
27 | +{} | |
28 | + | |
29 | +[2021-08-06 15:48:20] [INFO] : ====================================================================================== | |
30 | +[2021-08-06 15:48:20] [INFO] : http://test.jmsf.diligrp.com:8385/calculate/index.action | |
31 | +{'protocolId': '', 'pwd': '', 'clientRedirectTag': '', 'viewType': 'pay', 'optType': '0', 'optUrl': '', 'correctInfo': '1', 'weightType': '1', 'id': 3745, 'goodsId': '3759', 'number': '202108060900019', 'modified': '2021-08-06 15:48:20', 'status': '2', 'source': '1', 'updateFeeItems': '', 'correctDiscount': '1', 'totalAmount': '', 'customerId': '0', 'fundAccount': '', 'accountId': '', 'ic': '', 'customerName': '', 'customerPhone': '', 'payway': '刷卡', 'plate': '川B00001', 'autocomplete-cartype': '003(板车)', 'carTypeName': '板车', 'carTypeCode': '003', 'carTypeId': '53', 'carTypeWeight': '333', 'storeTareWeight': '', 'proveType': '1621', 'grossWeight': '353', 'tareWeight': '333', 'weight': '20', 'goodsNum': '', 'itemWeight': '', 'productPrice': '1.00000', 'unitPrice': '100.0', 'depName': '接车部', 'calcDepId': '103', 'regionName': '', 'regionId': '0', 'productName': '雪莲果', 'productId': '14158', 'productArea': '重庆,重庆市,万州区', 'parentId': '', 'levelType': '', 'originId': 500101, 'tradeTypeId': '71', 'chargeTotalAmount': '', 'chargeTotalAmountYuan': '', 'freezeMoneySymbol': '', 'comparisonFreezeAmount': '', 'created': '2021-08-06 15:47:54', 'remark': 'false', 'goodsTagIds': '1900', 'shareRatio': '0', 'handlingTeam': '', 'handlingRatio': '', 'handActualAmount': '', 'handManageAmount': '', 'handCollectionAmount': '', 'receivableAmount': '', 'categoryName': '水果', 'categoryId': '14436', 'driverTel': '', 'grossWeightDate': '2021-08-06 15:47:54', 'tareWeightDate': '2021-08-06 15:47:54', 'grossPathName': '', 'grossPathId': '', 'tarePathId': '', 'goodsRemark': '', 'inGreeterName': '通用测试', 'inGreeterId': '274', 'outGreeterId': '', 'sumPrice': '2000', 'shipperName': '', 'shipperId': '', 'shipperPhone': '', 'feeDepName': '', 'calcFeeDepId': ''} | |
32 | +{} | |
33 | + | |
34 | +[2021-08-06 15:48:21] [INFO] : ====================================================================================== | |
35 | +[2021-08-06 15:48:21] [INFO] : http://test.jmsf.diligrp.com:8385/entranceTrade/doPay.action | |
36 | +protocolId=&pwd=111111&clientRedirectTag=&viewType=pay&optType=0&optUrl=&correctInfo=1&weightType=1&id=3745&goodsId=3759&number=202108060900019&modified=2021-08-06%2015%3A47%3A54&status=2&source=1&updateFeeItems=&correctDiscount=1&totalAmount=800&customerId=389&fundAccount=105847&ic=888810032426&customerName=%E9%95%BF%E6%AD%8C%E4%B9%B0%E5%AE%B6%E7%9C%81%E5%86%85%E5%95%8A%E5%95%8A%E5%95%8A%E5%98%BF&customerPhone=18011501258&payway=%E5%88%B7%E5%8D%A1&plate=%E5%B7%9DB00001&autocomplete-cartype=003%28%E6%9D%BF%E8%BD%A6%29&carTypeName=%E6%9D%BF%E8%BD%A6&carTypeCode=003&carTypeId=53&carTypeWeight=333&storeTareWeight=&proveType=1621&grossWeight=353&tareWeight=333&weight=20&goodsNum=&itemWeight=&productPrice=1.00000&unitPrice=100.0&depName=%E6%8E%A5%E8%BD%A6%E9%83%A8&calcDepId=103&dep=103®ionName=A1%E5%8C%BA®ionId=72&productName=%E9%9B%AA%E8%8E%B2%E6%9E%9C&productId=14158&productArea=%E9%87%8D%E5%BA%86%2C%E9%87%8D%E5%BA%86%E5%B8%82%2C%E4%B8%87%E5%B7%9E%E5%8C%BA&parentId=&levelType=&originId=500101&tradeTypeId=71&chargeTotalAmount=800&chargeTotalAmountYuan=8&freezeMoneySymbol=13&comparisonFreezeAmount=13&created=2021-08-06%2015%3A47%3A54&remark=&goodsTagIds=1900&marketFlag=sy&totalMoney=800&receivable=1300&collectionPrice=0&discountAmount=500&handReceivableAmount=0&itemReceivableAmount=1300&shareRatio=0&handlingTeam=&handActualAmount=0&handManageAmount=0&handCollectionAmount=0&receivableAmount=1300&categoryName=%E6%B0%B4%E6%9E%9C&categoryId=53&driverTel=&grossWeightDate=2021-08-06%2015%3A47%3A54&tareWeightDate=2021-08-06%2015%3A47%3A54&grossPathName=&grossPathId=&tarePathId=&goodsRemark=&inGreeterName=&inGreeterId=0&outGreeterId=&sumPrice=2000&shipperName=&shipperId=&shipperPhone=&feeDepName=&calcFeeDepId=&feeDepId=&accountId=105847&correctDiscount=1&billItems=&billItemsDic=&billItemCheckIds=103&103=10.00&billItems=%7B%22discount%22%3A500%2C%22id%22%3A103%2C%22name%22%3A%22%E4%BA%A4%E6%98%93%E7%AE%A1%E7%90%86%E8%B4%B9%22%2C%22receivable%22%3A1000%2C%22require%22%3A1%7D&billItemDicCheckIds=105&billItemsDic=%7B%22discount%22%3A0%2C%22id%22%3A105%2C%22name%22%3A%22%E4%BC%98%E6%83%A0%E6%94%B6%E8%B4%B9%22%2C%22receivable%22%3A500%2C%22require%22%3A0%7D&billItemCheckIds=106&106=3.00&billItems=%7B%22discount%22%3A0%2C%22id%22%3A106%2C%22name%22%3A%22%E6%A3%80%E6%B5%8B%E8%B4%B9%22%2C%22receivable%22%3A300%2C%22require%22%3A1%7D | |
37 | +{} | |
38 | + | ... | ... |
testcase/FeedbackCustomerController/test_fc_add.py
... | ... | @@ -18,10 +18,10 @@ class test_fc_add(unittest.TestCase): |
18 | 18 | body = fc.body.replace("888810054630","888810054630").replace("你好",ra.name()).replace("relation\ |
19 | 19 | CardTemp=888810054630","relationCardTemp=888810054630").replace("relationalCard[0].cardNumber\ |
20 | 20 | =888810054630","relationalCard[0].cardNumber=888810054630") |
21 | - print(body) | |
21 | + # print(body) | |
22 | 22 | re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8')) |
23 | - print(re.headers) | |
24 | - print(re.json()) | |
23 | + # print(re.headers) | |
24 | + # print(re.json()) | |
25 | 25 | self.assertTrue("操作成功" in str(re.json())) |
26 | 26 | return re |
27 | 27 | ... | ... |
testcase/FeedbackCustomerController/test_fc_edit.py
... | ... | @@ -17,10 +17,10 @@ class test_fc_edit(unittest.TestCase): |
17 | 17 | |
18 | 18 | body = fc.body.replace("relationalCard[0].cardNumber=210720131533",\ |
19 | 19 | "relationalCard[0].cardNumber=210720125142") |
20 | - print(body) | |
20 | + # print(body) | |
21 | 21 | re = sy1.post(url=fc.url, headers=fc.header, data=body.encode('utf-8')) |
22 | - print(re.headers) | |
23 | - print(re.json()) | |
22 | + # print(re.headers) | |
23 | + # print(re.json()) | |
24 | 24 | self.assertTrue("操作成功" in str(re.json())) |
25 | 25 | |
26 | 26 | @classmethod | ... | ... |
testcase/FeedbackCustomerController/test_fc_view.py
... | ... | @@ -22,7 +22,7 @@ class test_fc_view(unittest.TestCase): |
22 | 22 | my.post(url=ad.url, headers=ad.header, data=ad.body.encode('utf-8')) |
23 | 23 | # 获取数据:从MYSQL获取新增返还人的id号 |
24 | 24 | self.code = db.mysql_selectOne("SELECT * FROM `dili_jmsf`.`feedback_customer` ORDER BY `id` DESC LIMIT 1")[0] |
25 | - print("查询出返还人id", self.code) | |
25 | + # print("查询出返还人id", self.code) | |
26 | 26 | |
27 | 27 | # @unittest.case_mark(my.mark()) |
28 | 28 | def test_fc_view_01(self): |
... | ... | @@ -33,7 +33,7 @@ class test_fc_view(unittest.TestCase): |
33 | 33 | # 进行GET请求 |
34 | 34 | re = sy1.get(url=url, headers=vi.header) |
35 | 35 | # 打印请求结果(可删除该代码,一般只在调试时使用) |
36 | - print(re.text) | |
36 | + # print(re.text) | |
37 | 37 | # 断言响应数据中是否存在期望字符串 |
38 | 38 | self.assertTrue('关联交费卡号' in str(re.text)) |
39 | 39 | ... | ... |
testcase/FeedbackCustomerController/test_feedback_customer_disable.py
... | ... | @@ -19,8 +19,8 @@ class test_feedback_customer_disable(unittest.TestCase): |
19 | 19 | def test_feedback_customer_disable_01(self): |
20 | 20 | url = fcd.url.replace("44", str(self.ids)) |
21 | 21 | re = sy1.post(url=url, headers=fcd.header) |
22 | - print(re.headers) | |
23 | - print(re.json()) | |
22 | + # print(re.headers) | |
23 | + # print(re.json()) | |
24 | 24 | self.assertTrue("操作成功" in str(re.json())) |
25 | 25 | |
26 | 26 | @classmethod | ... | ... |
testcase/FeedbackCustomerController/test_feedback_customer_enable.py
... | ... | @@ -21,9 +21,9 @@ class test_feedback_customer_enable(unittest.TestCase): |
21 | 21 | |
22 | 22 | url = fce.url.replace("49",str(self.ids)) |
23 | 23 | re = sy1.post(url = url, headers = fce.header) |
24 | - print(fce.url) | |
25 | - print(re.headers) | |
26 | - print(re.json()) | |
24 | + # print(fce.url) | |
25 | + # print(re.headers) | |
26 | + # print(re.json()) | |
27 | 27 | self.assertTrue("操作成功" in str(re.json())) |
28 | 28 | @classmethod |
29 | 29 | def tearDownClass(cls): | ... | ... |
testcase/FeedbackCustomerController/test_feedback_customer_query.py
... | ... | @@ -17,8 +17,8 @@ class test_feedback_customer_query(unittest.TestCase): |
17 | 17 | 2021-08-02 00:00:00").replace("2021-08-03 23:59:59", "2021-08-08 23:59:59") |
18 | 18 | |
19 | 19 | re = sy1.post(url = fcq.url, data = body.encode('utf-8'),headers = fcq.header) |
20 | - print(re.headers) | |
21 | - print(re.json()) | |
20 | + # print(re.headers) | |
21 | + # print(re.json()) | |
22 | 22 | self.assertTrue("孟莹" in str(re.json())) |
23 | 23 | |
24 | 24 | @classmethod | ... | ... |
testcase/FeedbackOrderController/test_feedback_order_settlement.py
... | ... | @@ -32,9 +32,9 @@ class test_feedback_order_settlement(unittest.TestCase): |
32 | 32 | replace("settledAmounts=2","settledAmounts=2") |
33 | 33 | |
34 | 34 | re = sy1.post(url = fos.url, headers = fos.header, data = body.encode('utf-8')) |
35 | - print(re.headers) | |
35 | + # print(re.headers) | |
36 | 36 | |
37 | - print(re.json()) | |
37 | + # print(re.json()) | |
38 | 38 | self.assertTrue("操作成功" in str(re.json())) |
39 | 39 | return re |
40 | 40 | ... | ... |
testcase/FeedbackOrderController/test_feedback_order_settlement_query.py
... | ... | @@ -17,8 +17,8 @@ class test_feedback_order_settlement_query(unittest.TestCase): |
17 | 17 | 2021-07-03 00:00:00").replace("2021-08-03 23:59:59", "2021-08-03 23:59:59") |
18 | 18 | |
19 | 19 | re = sy1.post(url = fosq.url, data = body,headers = fosq.header) |
20 | - print(re.headers) | |
21 | - print(re.json()) | |
20 | + # print(re.headers) | |
21 | + # print(re.json()) | |
22 | 22 | self.assertTrue("新爱心园婚介所的总公司" in str(re.json())) |
23 | 23 | |
24 | 24 | @classmethod | ... | ... |
testcase/feedbackOrderController_settlementlist/test_feedbackOrderController_settlementlist.py
... | ... | @@ -20,7 +20,7 @@ class test_feedbackOrderController_settlementlist(unittest.TestCase): |
20 | 20 | .replace("feedbackCustomerId=25", "feedbackCustomerId=26") |
21 | 21 | |
22 | 22 | re = sy1.post(url=focsl.url, data=body, headers=focsl.header) |
23 | - print(re.json()) | |
23 | + # print(re.json()) | |
24 | 24 | |
25 | 25 | @classmethod |
26 | 26 | def tearDownClass(cls): | ... | ... |