Commit 45e5d14d4627104e3a8614acd1f67ba7176ab2c7

Authored by liujiqiang
1 parent 62fbebb0

接口访问设计模式新增

commons/scripts/createIdNum.py
@@ -29,4 +29,5 @@ def cIN(): @@ -29,4 +29,5 @@ def cIN():
29 num = num + basecCode[i] * int(idNum_str[i]) 29 num = num + basecCode[i] * int(idNum_str[i])
30 return f"{idNum_str}{checkCode[num % 11]}" 30 return f"{idNum_str}{checkCode[num % 11]}"
31 # 31 #
32 -# print(cIN())  
33 \ No newline at end of file 32 \ No newline at end of file
  33 +# for i in range(5):
  34 +# print(cIN())
34 \ No newline at end of file 35 \ No newline at end of file
report/test.log
1 -[2021-08-25 14:39:39] [INFO] : ======================================================================================  
2 -[2021-08-25 14:39:39] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb  
3 -{'data': None, 'json': {'userName': 'sy_chen', 'password': 'EIaxG+f1VUEQibQpzyz0YSlez2QPmPYEMaJthVoYDLPcQQMDwXAMfThLBd2T1+G6Nm++yHofziwZmwfDy/ltUC2SB30GqMyhkjW2/JaPB/a+mCzvF9oC1NMMaYCBRTwqS6YzRq13adQqa75XEsNSaUurdQ9Z4kBfeArHVZdPBU4='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}} 1 +[2021-09-03 15:17:36] [INFO] : ======================================================================================
  2 +[2021-09-03 15:17:36] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  3 +{'data': None, 'json': {'userName': 'sy_chen', 'password': 'QbL2cEw/S5UxOMjDa/p7H2ZGf1XqK0lmvb/E++SZNsrMhKZwaOG/wzWVqHFmqqm2GJ3Xhe/ymRQOfUYxGRnS4/Ta/BFoRfdSSHVQpIlVjw3Ko07lilHepoD/TtDGZCKlDNmHqUer5m5mgym/QTaYPJpQ3xUn3PYt2BQEecCLDXg='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
4 4
5 -[2021-08-25 14:39:39] [INFO] : ======================================================================================  
6 -[2021-08-25 14:39:39] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb  
7 -{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'c9eliLrD+s2ST1qqUiIE/TcAn2JpSpzWdlAQwj7le1Bc5TR5INlfU3+mxM2dRQZEYOpQW+jyo8gCeTuXhvgdNHhEG4XVpGb9FYgCGephox8rDV3lRtjSDVoUGqNxTKBaVLh14FUPYRmTLske7UGevRQyKCz/BO61t46yA1OXRdQ='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}} 5 +[2021-09-03 15:17:36] [INFO] : ======================================================================================
  6 +[2021-09-03 15:17:36] [INFO] : http://test.uap.diligrp.com/api/authenticationApi/loginWeb
  7 +{'data': None, 'json': {'userName': '哈尔滨田太子', 'password': 'Zxq2xEVOVYogcjju8N/Y+4NOCrIwRFyzG93+PWHY8cNa8Ypmj00G7fIPxJ+9WDyjyZ/ZB7716iG7RdvzOsbCcA1/QZrZqFDx6214/BdvTbTQfpz5mJXKPecNJVR5dyUXcCP8TcIK8SCCLkjUCWrQqMsZiUgs1MiEDFTvRoy+a3U='}, 'headers': {'Content-Type': 'text/plain;charset=utf-8', 'Host': 'test.uap.diligrp.com', 'Content-Length': '209', 'Expect': '100-continue'}}
8 8
9 -[2021-08-25 14:39:40] [INFO] : ======================================================================================  
10 -[2021-08-25 14:39:40] [INFO] : http://test.uap.diligrp.com/login/login.action  
11 -{'data': b'userName=sy_chen&password=123456', 'json': None, 'headers': {'Host': 'test.uap.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '33', 'Cache-Control': 'max-age=0', 'Upgrade-Insecure-Requests': '1', 'Origin': 'http://test.uap.diligrp.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Referer': 'http://test.uap.diligrp.com/login/index.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7', 'Cookie': 'UAP_accessToken=;UAP_refreshToken=;UAP_loginPath='}, 'allow_redirects': False}  
12 -  
13 -[2021-08-25 14:39:40] [INFO] : ======================================================================================  
14 -[2021-08-25 14:39:40] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action  
15 -{'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Host': 'test.gateway.diligrp.com:8285', 'Connection': 'Keep-Alive'}, 'allow_redirects': True}  
16 -  
17 -[2021-08-25 14:39:40] [INFO] : ======================================================================================  
18 -[2021-08-25 14:39:40] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType  
19 -{'data': None, 'json': {'businessCode': 'jmsf'}, 'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '23'}}  
20 -  
21 -[2021-08-25 14:39:41] [INFO] : ======================================================================================  
22 -[2021-08-25 14:39:41] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/weighingServiceSave  
23 -{'data': None, 'json': {'carTypeId': 53, 'carTypeName': '板车', 'carTypeCode': '003', 'driverTel': '16111111111', 'fee': '18.00', 'greeterId': 0, 'greeterName': None, 'plate': '京A666666', 'remark': 'test_称重服务接口测试', 'weighImgs': [], 'weight': 10.0, 'weightDate': '2021-07-29 15:50:26', 'pathAddress': '40-5B-D8-DF-CA-C7', 'entryPlateInputType': 1, 'customerType': 0, 'carryStatus': 0, 'customerName': None, 'pwd': '', 'totalPrice': 18.0, 'ic': '', 'customerId': 0, 'accountId': 0, 'protocolId': None}, 'headers': {'jmsf_duplicate_commit_token': '229bf1bca2474ab8b471a5c74927d199', 'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '453'}}  
24 -  
25 -[2021-08-25 14:39:42] [INFO] : ======================================================================================  
26 -[2021-08-25 14:39:42] [INFO] : http://test.jmsf.diligrp.com:8385/weightBizBill/doRefund.action  
27 -{'data': b'id=665&reason=\xe9\x80\x80\xe6\xac\xbe\xe5\x8e\x9f\xe5\x9b\xa0_test_123', 'json': None, 'headers': {'Connection': 'keep-alive', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept-Language': 'zh-CN,zh;q=0.9', 'Accept-Encoding': 'gzip, deflate'}}  
28 -  
29 -[2021-08-25 14:39:42] [INFO] : ======================================================================================  
30 -[2021-08-25 14:39:42] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action  
31 -{'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Host': 'test.gateway.diligrp.com:8285', 'Connection': 'Keep-Alive'}, 'allow_redirects': True}  
32 -  
33 -[2021-08-25 14:39:43] [INFO] : ======================================================================================  
34 -[2021-08-25 14:39:43] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType  
35 -{'data': None, 'json': {'businessCode': 'jmsf'}, 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8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '23'}}  
36 -  
37 -[2021-08-25 14:39:43] [INFO] : ======================================================================================  
38 -[2021-08-25 14:39:43] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/weighingServiceSave  
39 -{'data': None, 'json': {'carTypeId': 53, 'carTypeName': '板车', 'carTypeCode': '003', 'driverTel': '16111111111', 'fee': '18.00', 'greeterId': 0, 'greeterName': None, 'plate': '京A666666', 'remark': 'test_称重服务接口测试', 'weighImgs': [], 'weight': 10.0, 'weightDate': '2021-07-29 15:50:26', 'pathAddress': '40-5B-D8-DF-CA-C7', 'entryPlateInputType': 1, 'customerType': 0, 'carryStatus': 0, 'customerName': None, 'pwd': '', 'totalPrice': 18.0, 'ic': '', 'customerId': 0, 'accountId': 0, 'protocolId': None}, 'headers': {'jmsf_duplicate_commit_token': '4e481680fc9746ebb8612bd8a4584218', 'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '453'}}  
40 -  
41 -[2021-08-25 14:39:44] [INFO] : ======================================================================================  
42 -[2021-08-25 14:39:44] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType  
43 -{'data': None, 'json': {'businessCode': 'jmsf'}, 'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '23'}}  
44 -  
45 -[2021-08-25 14:39:44] [INFO] : ======================================================================================  
46 -[2021-08-25 14:39:44] [INFO] : http://test.jmsf.diligrp.com:8385/weightBizBill/listPage.action  
47 -{'data': 'rows=10&page=1&sort=id&order=desc&metadata[fee]={"provider":"moneyProvider","index":10,"field": "fee"}&metadata[created]={"provider":"datetimeProvider","index":20,"field": "created"}&metadata[payTime]={"provider":"datetimeProvider","index":30,"field":"payTime"} &metadata[status]={"provider":"weightPayStateProvider","index":40,"field":"status"} &metadata[refundTime]={"provider":"datetimeProvider","index":50,"field":"refundTime"} &metadata[payType]={"provider":"weightPayTypeProvider","index":60,"field":"payType"} &attr=number&attrValue=202108250900025&carTypeId=53&depId=139&status=2 &startCreateDate=2020-08-03 00:00:00&endCreateDate=2029-08-03 23:59:59 &startPayTime=2020-08-03 00:00:00&endPayTime=2029-08-03 23:59:59', 'json': None, 'headers': {'Connection': 'keep-alive', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded', 'Accept-Language': 'zh-CN,zh;q=0.9', 'Accept-Encoding': 'gzip, deflate'}}  
48 -  
49 -[2021-08-25 14:39:44] [INFO] : ======================================================================================  
50 -[2021-08-25 14:39:44] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/appCommon/duplicateToken.action  
51 -{'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Host': 'test.gateway.diligrp.com:8285', 'Connection': 'Keep-Alive'}, 'allow_redirects': True}  
52 -  
53 -[2021-08-25 14:39:44] [INFO] : ======================================================================================  
54 -[2021-08-25 14:39:44] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType  
55 -{'data': None, 'json': {'businessCode': 'jmsf'}, 'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEi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8285', 'Content-Length': '23'}}  
56 -  
57 -[2021-08-25 14:39:45] [INFO] : ======================================================================================  
58 -[2021-08-25 14:39:45] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/entrace/weighingServiceSave  
59 -{'data': None, 'json': {'carTypeId': 53, 'carTypeName': '板车', 'carTypeCode': '003', 'driverTel': '16111111111', 'fee': '18.00', 'greeterId': 0, 'greeterName': None, 'plate': '京A666666', 'remark': 'test_称重服务接口测试', 'weighImgs': [], 'weight': 10.0, 'weightDate': '2021-07-29 15:50:26', 'pathAddress': '40-5B-D8-DF-CA-C7', 'entryPlateInputType': 1, 'customerType': 0, 'carryStatus': 0, 'customerName': None, 'pwd': '', 'totalPrice': 18.0, 'ic': '', 'customerId': 0, 'accountId': 0, 'protocolId': None}, 'headers': {'jmsf_duplicate_commit_token': '6adf62d1147f44a09ebf1b49207b122e', 'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '453'}}  
60 -  
61 -[2021-08-25 14:39:46] [INFO] : ======================================================================================  
62 -[2021-08-25 14:39:46] [INFO] : http://test.gateway.diligrp.com:8285/jmsf-web/api/jmsf/query/listCarType  
63 -{'data': None, 'json': {'businessCode': 'jmsf'}, 'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjk4NzM1NzksImRhdGEiOiJ7XCJjYXJkTnVtYmVyXCI6XCI4ODg4MTAwODQ0NThcIixcImNlbGxwaG9uZVwiOlwiMTUwMDI4Mzg4ODhcIixcImNyZWF0ZWRcIjoxNTkzNDg3NTcxMDAwLFwiZGVwYXJ0bWVudElkXCI6MTM5LFwiZW1haWxcIjpcImNoZW56aGl3ZWlAZGlsaWdycC5jb21cIixcImZpcm1Db2RlXCI6XCJzeVwiLFwiZmlybUlkXCI6OSxcImZpcm1OYW1lXCI6XCLmsojpmLPlnLDliKnlhpzmibnluILlnLrlrqLmiLfnlLXlrZDnu5PnrpfkuK3lv4NcIixcImlkXCI6NzYsXCJsYXN0TG9naW5UaW1lXCI6MTYyOTg3MzU3OTczMixcIm1ldGFkYXRhXCI6e30sXCJtb2RpZmllZFwiOjE2MjYxNjMwMDQwMDAsXCJwYXNzd29yZFwiOlwiMzk0OUJBNTlBQkJFNTZFMDU3XCIsXCJwb3NpdGlvbklkXCI6NyxcInJlYWxOYW1lXCI6XCLmsojpmLPpmYjlv5fkvJ9cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzeV9jaGVuXCJ9IiwiaXNzIjoiVUFQX0FVVEgwIiwiZXhwIjoxNjI5ODc1Mzc5LCJpYXQiOjE2Mjk4NzM1NzksImp0aSI6IjRhMDJiMDRlLWM4ZGEtNDI3Mi1hYTVlLTY4OTRhMWUxZTA2OSJ9.dmOz_RrgUIoEDKQdKun_9Gi8SH6tYaXGx4fTBP5sWqeq1PvNrzgMwbw6ASn82ArK_g85MTQmXl4bI60ORHwilkPWRxagk343CdagMZuJm8s7o-C0qsI18VjuSnGugL7zc94XLZ-e5lAWwR_UU1VNUyO0-BZc8Jf8lVTczXvGz1s', 'UAP_refreshToken': 'c9f0c62d-6bca-4328-a81c-70ad9f25c58c', 'UAP_firmId': '9', 'Content-Type': 'application/json', 'Host': 'test.gateway.diligrp.com:8285', 'Content-Length': '23'}}  
64 -  
65 -[2021-08-25 14:39:46] [INFO] : ======================================================================================  
66 -[2021-08-25 14:39:46] [INFO] : http://test.jmsf.diligrp.com:8385/weightBizBill/listPage.action  
67 -{'data': b'rows=10&page=1&sort=id&order=desc&metadata[fee]={"provider":"moneyProvider","index":10,"field": "fee"}&metadata[created]={"provider":"datetimeProvider","index":20,"field": "created"}&metadata[payTime]={"provider":"datetimeProvider","index":30,"field":"payTime"} &metadata[status]={"provider":"weightPayStateProvider","index":40,"field":"status"} &metadata[refundTime]={"provider":"datetimeProvider","index":50,"field":"refundTime"} &metadata[payType]={"provider":"weightPayTypeProvider","index":60,"field":"payType"} &attr=plate&attrValue=\xe4\xba\xacA666666&carTypeId=53&depId=139&status=2 &startCreateDate=2021-08-25 14:39:44&endCreateDate=2029-08-03 23:59:59 &startPayTime=2021-08-25 14:39:44&endPayTime=2029-08-03 23:59:59', 'json': None, 'headers': {'Connection': 'keep-alive', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded', 'Accept-Language': 'zh-CN,zh;q=0.9', 'Accept-Encoding': 'gzip, deflate'}}  
68 -  
69 -[2021-08-25 14:39:46] [INFO] : 发送邮件  
70 -[2021-08-25 14:39:49] [INFO] : 邮件发送完毕  
testcase/heb/test_ZC/demo.py
@@ -59,5 +59,13 @@ import random @@ -59,5 +59,13 @@ import random
59 # exec(str) 59 # exec(str)
60 60
61 # do_ass([1],"==",'[1]',"测试失败") 61 # do_ass([1],"==",'[1]',"测试失败")
62 -assert True  
63 62
  63 +
  64 +def demoApi(a=None,*args,c=None,**kwargs):
  65 + print(a)
  66 + print(args)
  67 + print(c)
  68 + print(kwargs)
  69 +
  70 +
  71 +demoApi(1,2,3,4,5,c=6,e=7)
64 \ No newline at end of file 72 \ No newline at end of file
testcase/sy/test_ZC/demo_b.py
@@ -9,55 +9,29 @@ @@ -9,55 +9,29 @@
9 整车进门但创建测试 9 整车进门但创建测试
10 """ 10 """
11 11
12 -import json  
13 -import unittest  
14 -from commons.scripts.readConf import rC  
15 -from commons.api import zcApi as zcA  
16 -from commons.api.entranceFeeBillList import apiDemo  
17 -import time,random 12 +import requests
  13 +import xml.etree.ElementTree as ET
18 14
19 -from commons.MySession import mysession  
20 -session = mysession().cliLogin() 15 +url = "http://10.28.1.155:6789"
21 16
22 -global mk_sign  
23 -mk_sign = "hb" 17 +payload="""
  18 +<?xml version="1.0" encoding="GBK"?>
  19 +<stream>
  20 + <action>DLBALQRY</action>
  21 + <userName>11100165758310248856</userName>
  22 + <list name="userDataList">
  23 + <row>
  24 + <accountNo>8113101013600080147</accountNo>
  25 + </row>
  26 + </list>
  27 +</stream>""".encode("gbk")
24 28
25 -class test_ZCCreate(unittest.TestCase): 29 +# print(payload)
26 30
  31 +headers = {
  32 + 'Content-Type':'text/xml;charset=GBK'
  33 +}
27 34
28 - """沈阳市场-整车-创建整车进门单"""  
29 - def setUp(self) -> None:  
30 - pass 35 +response = requests.request("POST", url, headers=headers, data=payload)
31 36
32 - def tearDown(self) -> None:  
33 - pass  
34 -  
35 -  
36 - @classmethod  
37 - def setUpClass(cls) -> None:  
38 - cls.gatewayHost = rC.returnOptionsItems("host", "gatewayHost")  
39 - cls.jmsfHost = rC.returnOptionsItems("host", "jmsfHost")  
40 -  
41 - @classmethod  
42 - def tearDownClass(cls) -> None:  
43 - pass  
44 -  
45 - def test_creZC(self):  
46 - """整车-整车创建:按接车员名称信息查询接车员"""  
47 - """整车-整车创建:获取车型接口调用测试"""  
48 - # 依赖数据  
49 - plate = "川A12323"  
50 - productState = "1"  
51 - trailerNumber = plate  
52 -  
53 - # 获取车型  
54 - carType = apiDemo.get_carType(host=self.gatewayHost)  
55 - print(carType.text)  
56 - print(carType.json()["data"][0])  
57 -  
58 - # 获取商品  
59 - categoryByCondition = apiDemo.get_listCategoryByCondition(host=self.gatewayHost)  
60 - print(categoryByCondition.json())  
61 -  
62 -print("mk_sign",mk_sign)  
63 -print("apiDemo.mk_sign",apiDemo.mk_sign)  
64 \ No newline at end of file 37 \ No newline at end of file
  38 +print(response.text)