Commit 00a2d466f8657be990abd390bedd00d0edb28656
Merge remote-tracking branch 'origin/master'
Showing
7 changed files
with
90 additions
and
118 deletions
commons/api/entranceFeeBillList/entranceFeeBillList.py
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | import json,time,random,re | 12 | import json,time,random,re |
13 | from commons.scripts import dealContentType as dct | 13 | from commons.scripts import dealContentType as dct |
14 | from commons.scripts import jsonToUrlcode | 14 | from commons.scripts import jsonToUrlcode |
15 | -# from commons.MySession import my | 15 | +from commons.api.entranceFeeBillList import jmsfToken as jT |
16 | from bs4 import BeautifulSoup | 16 | from bs4 import BeautifulSoup |
17 | import urllib.parse | 17 | import urllib.parse |
18 | 18 | ||
@@ -219,10 +219,11 @@ def get_calculateRes(session=None,host="",autocompletecartype=None,**kwargs): | @@ -219,10 +219,11 @@ def get_calculateRes(session=None,host="",autocompletecartype=None,**kwargs): | ||
219 | res = session.useHeadersRequests("post", url=url,data=data,headers=headers) | 219 | res = session.useHeadersRequests("post", url=url,data=data,headers=headers) |
220 | return res | 220 | return res |
221 | 221 | ||
222 | -def do_doPay(session=None,host="",autocompletecartype=None,fee_str="",**kwargs): | 222 | +def do_doPay(session=None,host="",jmsfToken=None,autocompletecartype=None,fee_str="",**kwargs): |
223 | """进门单缴费""" | 223 | """进门单缴费""" |
224 | url = host + "/entranceTrade/doPay.action" | 224 | url = host + "/entranceTrade/doPay.action" |
225 | headers = dct.urlCode() | 225 | headers = dct.urlCode() |
226 | + headers["jmsf_duplicate_commit_token"]=jmsfToken | ||
226 | 227 | ||
227 | data = {"protocolId": "", "pwd": "{pwd}", "clientRedirectTag": "", "viewType": "pay", "optType": "{optType}", | 228 | data = {"protocolId": "", "pwd": "{pwd}", "clientRedirectTag": "", "viewType": "pay", "optType": "{optType}", |
228 | "optUrl": "", "correctInfo": "{correctInfo}", "weightType": "{weightType}", "id": "{orderId}", | 229 | "optUrl": "", "correctInfo": "{correctInfo}", "weightType": "{weightType}", "id": "{orderId}", |
@@ -405,7 +406,14 @@ def do_payOrder(session=None,host="http://test.jmsf.diligrp.com:8385",attrName=" | @@ -405,7 +406,14 @@ def do_payOrder(session=None,host="http://test.jmsf.diligrp.com:8385",attrName=" | ||
405 | receivableAmount = receivable | 406 | receivableAmount = receivable |
406 | tareWeightDate = tareWeightDate | 407 | tareWeightDate = tareWeightDate |
407 | 408 | ||
408 | - aa = do_doPay(session=session,host=host, autocompletecartype=autocompletecartype, fee_str=fee_str, pwd=pwd, optType=optType, | 409 | + # 获取防重token |
410 | + tAmount = chargeTotalAmountYuan | ||
411 | + jmsfToken = jT.get_jmsfDuplicateCommitToken(session=session,host=host,cardNo=ic,fundId=accountId,amount=tAmount, | ||
412 | + customerName=customerName,entranceId=orderId) | ||
413 | + print("jmsfToken",jmsfToken) | ||
414 | + | ||
415 | + aa = do_doPay(session=session,host=host,jmsfToken=jmsfToken, autocompletecartype=autocompletecartype, fee_str=fee_str, | ||
416 | + pwd=pwd, optType=optType, | ||
409 | weightType=weightType, id=id, goodsId=goodsId, number=number, created=created, status=status, | 417 | weightType=weightType, id=id, goodsId=goodsId, number=number, created=created, status=status, |
410 | source=source, | 418 | source=source, |
411 | correctDiscount=correctDiscount, totalAmount=totalAmount, customerId=customerId, | 419 | correctDiscount=correctDiscount, totalAmount=totalAmount, customerId=customerId, |
commons/api/entranceFeeBillList/jmsfToken.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | ||
2 | + | ||
3 | +# @Time : 2021/10/9 13:32 | ||
4 | +# @Author : Ljq | ||
5 | +# @File : jmsfToken.py | ||
6 | +# @Software: PyCharm | ||
7 | + | ||
8 | +""" | ||
9 | + | ||
10 | +""" | ||
11 | + | ||
12 | +import json,time,random | ||
13 | +import re | ||
14 | + | ||
15 | +from commons.scripts import dealContentType as dct | ||
16 | +# from commons.MySession import sessionSy | ||
17 | + | ||
18 | +def get_jmsfDuplicateCommitToken(session=None,host="",**kwargs): | ||
19 | + """进门防重接口""" | ||
20 | + url = host + "/pay/index.action" | ||
21 | + headers = dct.jsonCode() | ||
22 | + params = {"bizType":"30","htmlRequest":"1","cardNo":"888810032426","fundId":"107575","amount":"45","customerName":"******","entranceId":"7471"} | ||
23 | + params = dict(params,**kwargs) | ||
24 | + res = session.useHeadersRequests(method="get", url=url, params=params,headers=headers) | ||
25 | + jmsf_duplicate_commit_token = re.findall('name="token" id="token" value="(.*?)">',res.text)[0] | ||
26 | + return jmsf_duplicate_commit_token | ||
27 | + | ||
28 | +# host = "http://test.jmsf.diligrp.com:8385" | ||
29 | +# session = sessionSy | ||
30 | +# res = get_jmsfDuplicateCommitToken(session=session,host=host) | ||
31 | +# print(res) | ||
0 | \ No newline at end of file | 32 | \ No newline at end of file |
commons/api/entranceFeeBillList/operationDoFreeze.py
@@ -13,13 +13,15 @@ import json,time, re | @@ -13,13 +13,15 @@ import json,time, re | ||
13 | from commons.scripts import dealContentType as dct | 13 | from commons.scripts import dealContentType as dct |
14 | from commons.scripts import jsonToUrlcode | 14 | from commons.scripts import jsonToUrlcode |
15 | from commons.api.entranceFeeBillList import entranceFeeBillList as eFBL | 15 | from commons.api.entranceFeeBillList import entranceFeeBillList as eFBL |
16 | +from commons.api.entranceFeeBillList import jmsfToken as jT | ||
16 | from bs4 import BeautifulSoup | 17 | from bs4 import BeautifulSoup |
17 | import urllib.parse | 18 | import urllib.parse |
18 | 19 | ||
19 | -def do_doFreeze(session=None,host="",autocompletecartype=None,fee_str="",**kwargs): | 20 | +def do_doFreeze(session=None,host="",jmsfToken=None,autocompletecartype=None,fee_str="",**kwargs): |
20 | """进门单缴费""" | 21 | """进门单缴费""" |
21 | url = host + "/entranceTrade/doFreeze.action" | 22 | url = host + "/entranceTrade/doFreeze.action" |
22 | headers = dct.urlCode() | 23 | headers = dct.urlCode() |
24 | + headers["jmsf_duplicate_commit_token"]=jmsfToken | ||
23 | 25 | ||
24 | data = {"protocolId": "", "pwd": "{pwd}", "clientRedirectTag": "", "viewType": "pay", "optType": "{optType}", | 26 | data = {"protocolId": "", "pwd": "{pwd}", "clientRedirectTag": "", "viewType": "pay", "optType": "{optType}", |
25 | "optUrl": "", "correctInfo": "{correctInfo}", "weightType": "{weightType}", "id": "{orderId}", | 27 | "optUrl": "", "correctInfo": "{correctInfo}", "weightType": "{weightType}", "id": "{orderId}", |
@@ -197,7 +199,14 @@ def do_freezeOrder(session=None,host="http://test.jmsf.diligrp.com:8385",attrNam | @@ -197,7 +199,14 @@ def do_freezeOrder(session=None,host="http://test.jmsf.diligrp.com:8385",attrNam | ||
197 | receivableAmount = receivable | 199 | receivableAmount = receivable |
198 | tareWeightDate = tareWeightDate | 200 | tareWeightDate = tareWeightDate |
199 | 201 | ||
200 | - aa = do_doFreeze(session=session,host=host, autocompletecartype=autocompletecartype, fee_str=fee_str, pwd=pwd, optType=optType, | 202 | + # 获取防重token |
203 | + tAmount = freezeMoneySymbol | ||
204 | + htmlRequest = 2 | ||
205 | + jmsfToken = jT.get_jmsfDuplicateCommitToken(session=session,host=host,cardNo=ic,fundId=accountId,amount=tAmount, | ||
206 | + customerName=customerName,entranceId=orderId,htmlRequest=htmlRequest) | ||
207 | + print("jmsfToken",jmsfToken) | ||
208 | + | ||
209 | + aa = do_doFreeze(session=session,host=host,jmsfToken=jmsfToken, autocompletecartype=autocompletecartype, fee_str=fee_str, pwd=pwd, optType=optType, | ||
201 | weightType=weightType, id=id, goodsId=goodsId, number=number, created=created, status=status, | 210 | weightType=weightType, id=id, goodsId=goodsId, number=number, created=created, status=status, |
202 | source=source, | 211 | source=source, |
203 | correctDiscount=correctDiscount, totalAmount=totalAmount, customerId=customerId, | 212 | correctDiscount=correctDiscount, totalAmount=totalAmount, customerId=customerId, |
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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I18VjuSnGugL7zc94XLZ-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'}, 'headers': {'UAP_accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOi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'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,52 +9,29 @@ | @@ -9,52 +9,29 @@ | ||
9 | 整车进门但创建测试 | 9 | 整车进门但创建测试 |
10 | """ | 10 | """ |
11 | 11 | ||
12 | -import unittest | ||
13 | -from commons.scripts.readConf import rC | ||
14 | -from commons.api.entranceFeeBillList import apiDemo | 12 | +import requests |
13 | +import xml.etree.ElementTree as ET | ||
15 | 14 | ||
16 | -from commons.MySession import mysession | ||
17 | -session = mysession().cliLogin() | 15 | +url = "http://10.28.1.155:6789" |
18 | 16 | ||
19 | -global mk_sign | ||
20 | -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") | ||
21 | 28 | ||
22 | -class test_ZCCreate(unittest.TestCase): | 29 | +# print(payload) |
23 | 30 | ||
31 | +headers = { | ||
32 | + 'Content-Type':'text/xml;charset=GBK' | ||
33 | +} | ||
24 | 34 | ||
25 | - """沈阳市场-整车-创建整车进门单""" | ||
26 | - def setUp(self) -> None: | ||
27 | - pass | 35 | +response = requests.request("POST", url, headers=headers, data=payload) |
28 | 36 | ||
29 | - def tearDown(self) -> None: | ||
30 | - pass | ||
31 | - | ||
32 | - | ||
33 | - @classmethod | ||
34 | - def setUpClass(cls) -> None: | ||
35 | - cls.gatewayHost = rC.returnOptionsItems("host", "gatewayHost") | ||
36 | - cls.jmsfHost = rC.returnOptionsItems("host", "jmsfHost") | ||
37 | - | ||
38 | - @classmethod | ||
39 | - def tearDownClass(cls) -> None: | ||
40 | - pass | ||
41 | - | ||
42 | - def test_creZC(self): | ||
43 | - """整车-整车创建:按接车员名称信息查询接车员""" | ||
44 | - """整车-整车创建:获取车型接口调用测试""" | ||
45 | - # 依赖数据 | ||
46 | - plate = "川A12323" | ||
47 | - productState = "1" | ||
48 | - trailerNumber = plate | ||
49 | - | ||
50 | - # 获取车型 | ||
51 | - carType = apiDemo.get_carType(host=self.gatewayHost) | ||
52 | - print(carType.text) | ||
53 | - print(carType.json()["data"][0]) | ||
54 | - | ||
55 | - # 获取商品 | ||
56 | - categoryByCondition = apiDemo.get_listCategoryByCondition(host=self.gatewayHost) | ||
57 | - print(categoryByCondition.json()) | ||
58 | - | ||
59 | -print("mk_sign",mk_sign) | ||
60 | -print("apiDemo.mk_sign", apiDemo.mk_sign) | ||
61 | \ No newline at end of file | 37 | \ No newline at end of file |
38 | +print(response.text) |