Commit 55112d77d21e2238ba761d6fcd34a3267d6e9822

Authored by 175930106
Committed by liujiqiang
1 parent eb6e6f8a

1.把每个接口类的session获取方式和调试方式都更新了

2.把MySession中实例化变量增加了一些requests的属性
src/commons/MySession.py
@@ -31,6 +31,13 @@ class mysession(): @@ -31,6 +31,13 @@ class mysession():
31 self.url=mysession.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") ) 31 self.url=mysession.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") )
32 self.header=mysession.header 32 self.header=mysession.header
33 self.body=mysession.body 33 self.body=mysession.body
  34 + self.timeout = 60
  35 + self.max_retries = 3
  36 + self.keep_alive = False
  37 + self.ssl_verify=False
  38 + self.proxies=None
  39 + self.allow_redirects=False
  40 + self.proxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'}
34 41
35 def get_session(self,account,**kwargs): 42 def get_session(self,account,**kwargs):
36 "如下代码,可以通过配置文件来控制登录的账户session" 43 "如下代码,可以通过配置文件来控制登录的账户session"
@@ -40,7 +47,7 @@ class mysession(): @@ -40,7 +47,7 @@ class mysession():
40 #则在再次使用该session对象求求该网站的其他网页都会默认使用该session之前使用的cookie等参数 47 #则在再次使用该session对象求求该网站的其他网页都会默认使用该session之前使用的cookie等参数
41 self.se=requests.session() 48 self.se=requests.session()
42 #使用session对象的方法POST/GET等 49 #使用session对象的方法POST/GET等
43 - re=self.se.post(url=self.url, headers=self.header,data=self.body,**kwargs) 50 + re=self.se.post(url=self.url, headers=self.header,data=self.body,proxies=self.proxies,**kwargs)
44 #返回session对象,供其他接口使用 51 #返回session对象,供其他接口使用
45 return self.se 52 return self.se
46 53
@@ -58,7 +65,7 @@ class mysession(): @@ -58,7 +65,7 @@ class mysession():
58 #记录日志 65 #记录日志
59 log.info("{}\n{}".format(url,kwargs)) 66 log.info("{}\n{}".format(url,kwargs))
60 #进行请求 67 #进行请求
61 - re=self.se.get(url,**kwargs) 68 + re=self.se.get(url,proxies=self.proxies,**kwargs)
62 return re 69 return re
63 70
64 def post(self, url, data=None, json=None, **kwargs): 71 def post(self, url, data=None, json=None, **kwargs):
@@ -73,7 +80,7 @@ class mysession(): @@ -73,7 +80,7 @@ class mysession():
73 #记录日志 80 #记录日志
74 log.info("{}\n{}\n{}\n{}".format(url,data,json,kwargs)) 81 log.info("{}\n{}\n{}\n{}".format(url,data,json,kwargs))
75 #进行请求 82 #进行请求
76 - re=self.se.post(url, data=data, json=json,proxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'}, **kwargs) 83 + re=self.se.post(url, data=data, json=json,proxies=self.proxies, **kwargs)
77 return re 84 return re
78 85
79 def options(self, url, **kwargs): 86 def options(self, url, **kwargs):
src/commons/__pycache__/MySession.cpython-36.pyc
No preview for this file type
src/commons/__pycache__/common.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/doAdd.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/doAudit.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/fieldConfig.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/login.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/logout.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/upStream.cpython-36.pyc
No preview for this file type
src/commons/api/doAdd.py
@@ -4,9 +4,9 @@ import requests @@ -4,9 +4,9 @@ import requests
4 import json 4 import json
5 import urllib3 5 import urllib3
6 from commons import common as com 6 from commons import common as com
7 -from commons.api.login import login 7 +from commons.MySession import my
8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
9 -ll=login() 9 +
10 10
11 class doAdd(): 11 class doAdd():
12 12
@@ -30,18 +30,9 @@ class doAdd(): @@ -30,18 +30,9 @@ class doAdd():
30 self.header=doAdd.header 30 self.header=doAdd.header
31 self.body=doAdd.body 31 self.body=doAdd.body
32 32
33 - def post(self,account,**kwargs):  
34 - "解决不同接口对于不同用户的场景"  
35 - se=ll.get_session(account)  
36 - re=se.post(**kwargs)  
37 - ll.close_session()  
38 - return re  
39 -  
40 33
41 34
42 35
43 # tt=doAdd() 36 # tt=doAdd()
44 -# re=tt.post("user01",url=tt.url,headers=tt.header,json=tt.body,proxies={'http': 'http://localhost:8888'})  
45 -# print(dir(re.json())) 37 +# re=my.post(url=tt.url,headers=tt.header,json=tt.body)
46 # print(re.json()) 38 # print(re.json())
47 -# print(re.json)  
src/commons/api/doAudit.py
@@ -4,9 +4,8 @@ import requests @@ -4,9 +4,8 @@ import requests
4 import json 4 import json
5 import urllib3 5 import urllib3
6 from commons import common as com 6 from commons import common as com
7 -from commons.api.login import login 7 +from commons.MySession import my
8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
9 -ll=login()  
10 9
11 class doAudit(): 10 class doAudit():
12 11
@@ -25,16 +24,9 @@ class doAudit(): @@ -25,16 +24,9 @@ class doAudit():
25 self.url=doAudit.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") ) 24 self.url=doAudit.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") )
26 self.header=doAudit.header 25 self.header=doAudit.header
27 26
28 - def get(self,account,**kwargs):  
29 - "解决不同接口对于不同用户的场景"  
30 - se=ll.get_session(account)  
31 - re=se.get(**kwargs)  
32 - ll.close_session()  
33 - return re  
34 -  
35 27
36 28
37 29
38 # tt=doAudit() 30 # tt=doAudit()
39 -# re=tt.get("user01",url=tt.url,headers=tt.header,proxies={'http': 'http://localhost:8888'}) 31 +# re=my.get(url=tt.url,headers=tt.header)
40 # print(re.json()) 32 # print(re.json())
41 \ No newline at end of file 33 \ No newline at end of file
src/commons/api/fieldConfig.py
@@ -4,11 +4,10 @@ import requests @@ -4,11 +4,10 @@ import requests
4 import json 4 import json
5 import urllib3 5 import urllib3
6 from commons import common as com 6 from commons import common as com
7 -from commons.api.login import login 7 +from commons.MySession import my
8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
9 -ll=login()  
10 9
11 -class fieldConfig(login): 10 +class fieldConfig():
12 11
13 url="http://test.trace.diligrp.com:8393/fieldConfig/doUpdate.action" 12 url="http://test.trace.diligrp.com:8393/fieldConfig/doUpdate.action"
14 header={ 13 header={
@@ -31,14 +30,9 @@ class fieldConfig(login): @@ -31,14 +30,9 @@ class fieldConfig(login):
31 self.header=fieldConfig.header 30 self.header=fieldConfig.header
32 self.body=fieldConfig.body 31 self.body=fieldConfig.body
33 32
34 - def post(self,account,**kwargs):  
35 - se=ll.get_session(account)  
36 - re=se.post(**kwargs)  
37 - ll.close_session()  
38 - return re  
39 33
40 34
41 35
42 # tt=fieldConfig() 36 # tt=fieldConfig()
43 -# re=tt.post("user01",url=tt.url,headers=tt.header,json=tt.body,proxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'}) 37 +# re=my.post(url=tt.url,headers=tt.header,json=tt.body)
44 # print(re.json()) 38 # print(re.json())
45 \ No newline at end of file 39 \ No newline at end of file
src/commons/api/login.py
@@ -3,8 +3,6 @@ @@ -3,8 +3,6 @@
3 import requests 3 import requests
4 import json 4 import json
5 from commons import common as com 5 from commons import common as com
6 -from commons.Logging import Logger  
7 -log=Logger()  
8 6
9 class login(): 7 class login():
10 url="http://test.uap.diligrp.com/login/login.action" 8 url="http://test.uap.diligrp.com/login/login.action"
@@ -39,37 +37,8 @@ class login(): @@ -39,37 +37,8 @@ class login():
39 #返回请求对象,供断言使用 37 #返回请求对象,供断言使用
40 return re 38 return re
41 39
42 - def get_session(self,account,**kwargs):  
43 - "为其他接口提供获取session的方法"  
44 - #如下代码,可以通过配置文件来控制登录的账户  
45 - self.body=self.body.replace("sg_wenze", com.get_global_config("global_data", "account", account).split("&")[0])  
46 - self.body=self.body.replace("111111", com.get_global_config("global_data", "account", account).split("&")[1])  
47 - #requests.session()会话保持,比如使用session成功的登录了某个网站,  
48 - #则在再次使用该session对象求求该网站的其他网页都会默认使用该session之前使用的cookie等参数  
49 - self.se=requests.session()  
50 - #使用session对象的方法POST/GET等  
51 - re=self.se.post(url=self.url, headers=self.header,data=self.body,**kwargs)  
52 - #返回session对象,供其他接口使用  
53 - return self.se  
54 -  
55 - def close_session(self):  
56 - "关闭session,释放缓存"  
57 - self.se.close()  
58 -  
59 -  
60 -  
61 40
62 41
63 # t=login() 42 # t=login()
64 -# re=t.post("sg_wenze", "111111",proxies={'http': 'http://localhost:8888'})  
65 -  
66 -# print(re.content)  
67 -# print(re.raw.read(10))  
68 -# print(dir(re.raw.read(10)))  
69 -  
70 -  
71 -# log.info(re.headers)  
72 -# log.info(re.cookies)  
73 -# log.info(t.body)  
74 -# log.info(t.header)  
75 -# t.get_session("user01",proxies={'http': 'http://localhost:8888'},allow_redirects=False)  
76 \ No newline at end of file 43 \ No newline at end of file
  44 +# re=t.post("sg_wenze", "111111")
  45 +# print(re.headers)
77 \ No newline at end of file 46 \ No newline at end of file
src/commons/api/logout.py
@@ -3,8 +3,7 @@ @@ -3,8 +3,7 @@
3 import requests 3 import requests
4 import json 4 import json
5 from commons import common as com 5 from commons import common as com
6 -from commons.api.login import login  
7 -ll=login() 6 +
8 7
9 class logout(): 8 class logout():
10 url="http://test.uap.diligrp.com/login/logout.action" 9 url="http://test.uap.diligrp.com/login/logout.action"
@@ -30,9 +29,9 @@ class logout(): @@ -30,9 +29,9 @@ class logout():
30 self.body=logout.body 29 self.body=logout.body
31 30
32 def post(self,session,account,**kwargs): 31 def post(self,session,account,**kwargs):
  32 + #需要用专用的测试账户来测试,否则会影响其他用例
33 self.body=self.body.replace("210", com.get_global_config("global_data", "userId", account)) 33 self.body=self.body.replace("210", com.get_global_config("global_data", "userId", account))
34 re=session.post(url=self.url, headers=self.header,data=self.body,**kwargs) 34 re=session.post(url=self.url, headers=self.header,data=self.body,**kwargs)
35 - #返回请求对象,供断言使用  
36 return re 35 return re
37 36
38 37
src/commons/api/upStream.py
@@ -4,9 +4,8 @@ import requests @@ -4,9 +4,8 @@ import requests
4 import json 4 import json
5 import urllib3 5 import urllib3
6 from commons import common as com 6 from commons import common as com
7 -from commons.api.login import login 7 +from commons.MySession import my
8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
9 -ll=login()  
10 9
11 class upStream(): 10 class upStream():
12 11
@@ -31,16 +30,8 @@ class upStream(): @@ -31,16 +30,8 @@ class upStream():
31 self.header=upStream.header 30 self.header=upStream.header
32 self.body=upStream.body 31 self.body=upStream.body
33 32
34 - def post(self,account,**kwargs):  
35 - "解决不同接口对于不同用户的场景"  
36 - se=ll.get_session(account)  
37 - re=se.post(**kwargs)  
38 - ll.close_session()  
39 - return re  
40 -  
41 -  
42 33
43 34
44 # tt=upStream() 35 # tt=upStream()
45 -# re=tt.post("user01",url=tt.url,headers=tt.header,json=tt.body,proxies={'http': 'http://localhost:8888'}) 36 +# re=my.post(url=tt.url,headers=tt.header,json=tt.body)
46 # print(re.json()) 37 # print(re.json())
47 \ No newline at end of file 38 \ No newline at end of file
src/commons/common.py
@@ -62,7 +62,6 @@ def run_one(name): @@ -62,7 +62,6 @@ def run_one(name):
62 62
63 def run_list(name): 63 def run_list(name):
64 test_suite = unittest.TestSuite() 64 test_suite = unittest.TestSuite()
65 - #创建测试套  
66 test_suite.addTests(name) 65 test_suite.addTests(name)
67 #显示运行用例 66 #显示运行用例
68 print("运行用例为{}".format(test_suite)) 67 print("运行用例为{}".format(test_suite))
src/report/test.log
1 -[2021-06-23 15:07:32] [INFO] : http://test.trace.diligrp.com:8393/fieldConfig/doUpdate.action 1 +[2021-06-23 15:37:31] [INFO] : http://test.trace.diligrp.com:8393/fieldConfig/doUpdate.action
2 None 2 None
3 {'moduleType': '1', 'marketId': '8', 'fieldConfigDetailList': [{'fieldName': 'unitPrice', 'jsonPath': '$.unitPrice', 'defaultId': '3', 'displayed': '1', 'required': '0'}, {'fieldName': 'arrivalTallynos', 'jsonPath': '$.arrivalTallynos', 'defaultId': '10', 'displayed': '1', 'required': '0'}, {'fieldName': 'brandName', 'jsonPath': '$.brandName', 'defaultId': '5', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckTareWeight', 'jsonPath': '$.truckTareWeight', 'defaultId': '1', 'displayed': '1', 'required': '0'}, {'fieldName': 'originId', 'jsonPath': '$.originId', 'defaultId': '7', 'displayed': '1', 'required': '0'}, {'fieldName': 'specName', 'jsonPath': '$.specName', 'defaultId': '4', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckType', 'jsonPath': '$.truckType', 'defaultId': '2', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}, {'fieldName': 'imageCertList', 'jsonPath': '$.imageCertList[*]certType', 'defaultId': '11', 'displayed': '1', 'required': '0', 'availableValueList': ['2', '3']}, {'fieldName': 'arrivalDatetime', 'jsonPath': '$.arrivalDatetime', 'defaultId': '9', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '8', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '6', 'displayed': '1', 'required': '0'}, {'fieldName': 'measureType', 'jsonPath': '$.measureType', 'defaultId': '12', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}]} 3 {'moduleType': '1', 'marketId': '8', 'fieldConfigDetailList': [{'fieldName': 'unitPrice', 'jsonPath': '$.unitPrice', 'defaultId': '3', 'displayed': '1', 'required': '0'}, {'fieldName': 'arrivalTallynos', 'jsonPath': '$.arrivalTallynos', 'defaultId': '10', 'displayed': '1', 'required': '0'}, {'fieldName': 'brandName', 'jsonPath': '$.brandName', 'defaultId': '5', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckTareWeight', 'jsonPath': '$.truckTareWeight', 'defaultId': '1', 'displayed': '1', 'required': '0'}, {'fieldName': 'originId', 'jsonPath': '$.originId', 'defaultId': '7', 'displayed': '1', 'required': '0'}, {'fieldName': 'specName', 'jsonPath': '$.specName', 'defaultId': '4', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckType', 'jsonPath': '$.truckType', 'defaultId': '2', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}, {'fieldName': 'imageCertList', 'jsonPath': '$.imageCertList[*]certType', 'defaultId': '11', 'displayed': '1', 'required': '0', 'availableValueList': ['2', '3']}, {'fieldName': 'arrivalDatetime', 'jsonPath': '$.arrivalDatetime', 'defaultId': '9', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '8', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '6', 'displayed': '1', 'required': '0'}, {'fieldName': 'measureType', 'jsonPath': '$.measureType', 'defaultId': '12', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}]}
4 {'headers': {'Host': 'test.trace.diligrp.com:8393', 'Connection': 'keep-alive', 'Content-Length': '1378', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/91.0.4472.77Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/fieldConfig/bill.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}} 4 {'headers': {'Host': 'test.trace.diligrp.com:8393', 'Connection': 'keep-alive', 'Content-Length': '1378', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/91.0.4472.77Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/fieldConfig/bill.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
5 -[2021-06-23 15:07:33] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action 5 +[2021-06-23 15:37:32] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
6 None 6 None
7 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'} 7 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
8 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}} 8 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
9 -[2021-06-23 15:07:34] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action 9 +[2021-06-23 15:37:33] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
10 None 10 None
11 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '666', 'weightUnit': 1, 'productName': '鲜花生', 'productId': '3496', 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'} 11 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '666', 'weightUnit': 1, 'productName': '鲜花生', 'productId': '3496', 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
12 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}} 12 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
13 -[2021-06-23 15:07:35] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action 13 +[2021-06-23 15:37:33] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
14 None 14 None
15 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': '516111', 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'} 15 {'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': '516111', 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
16 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}} 16 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  17 +[2021-06-23 15:37:33] [INFO] : http://test.trace.diligrp.com:8393/fieldConfig/doUpdate.action
  18 +None
  19 +{'moduleType': '1', 'marketId': '8', 'fieldConfigDetailList': [{'fieldName': 'unitPrice', 'jsonPath': '$.unitPrice', 'defaultId': '3', 'displayed': '1', 'required': '0'}, {'fieldName': 'arrivalTallynos', 'jsonPath': '$.arrivalTallynos', 'defaultId': '10', 'displayed': '1', 'required': '0'}, {'fieldName': 'brandName', 'jsonPath': '$.brandName', 'defaultId': '5', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckTareWeight', 'jsonPath': '$.truckTareWeight', 'defaultId': '1', 'displayed': '1', 'required': '0'}, {'fieldName': 'originId', 'jsonPath': '$.originId', 'defaultId': '7', 'displayed': '1', 'required': '0'}, {'fieldName': 'specName', 'jsonPath': '$.specName', 'defaultId': '4', 'displayed': '1', 'required': '0'}, {'fieldName': 'truckType', 'jsonPath': '$.truckType', 'defaultId': '2', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}, {'fieldName': 'imageCertList', 'jsonPath': '$.imageCertList[*]certType', 'defaultId': '11', 'displayed': '1', 'required': '0', 'availableValueList': ['2', '3']}, {'fieldName': 'arrivalDatetime', 'jsonPath': '$.arrivalDatetime', 'defaultId': '9', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '8', 'displayed': '1', 'required': '0'}, {'fieldName': 'remark', 'jsonPath': '$.remark', 'defaultId': '6', 'displayed': '1', 'required': '0'}, {'fieldName': 'measureType', 'jsonPath': '$.measureType', 'defaultId': '12', 'displayed': '1', 'required': '1', 'availableValueList': ['10', '20']}]}
  20 +{'headers': {'Host': 'test.trace.diligrp.com:8393', 'Connection': 'keep-alive', 'Content-Length': '1378', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/91.0.4472.77Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/fieldConfig/bill.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  21 +[2021-06-23 15:37:34] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
  22 +None
  23 +{'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
  24 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  25 +[2021-06-23 15:37:35] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAudit.action?id=6409&verifyStatus=20
  26 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  27 +[2021-06-23 15:37:35] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
  28 +None
  29 +{'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
  30 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  31 +[2021-06-23 15:37:36] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAudit.action?id=6410&verifyStatus=30
  32 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  33 +[2021-06-23 15:37:36] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
  34 +None
  35 +{'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
  36 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  37 +[2021-06-23 15:37:37] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAudit.action?id=6411&verifyStatus=10
  38 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  39 +[2021-06-23 15:37:38] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAdd.action
  40 +None
  41 +{'registerHeadWeight': '0', 'registerHeadRemainWeight': '0', 'imageCertList': [], 'measureType': 20, 'registType': 10, 'userId': 516, 'arrivalTallynos': [], 'arrivalDatetime': '', 'truckType': 10, 'weight': '111', 'weightUnit': 1, 'productName': '大白菜', 'productId': 2190, 'originName': '', 'originId': '', 'unitPrice': '', 'truckTareWeight': '', 'remark': '', 'specName': '', 'brandName': '', 'plate': '川A123456'}
  42 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  43 +[2021-06-23 15:37:39] [INFO] : http://test.trace.diligrp.com:8393/newRegisterBill/doAudit.action?id=5888&verifyStatus=20
  44 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://test.trace.diligrp.com:8393/newRegisterBill/add.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  45 +[2021-06-23 15:37:39] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action
  46 +None
  47 +{'rows': 10, 'page': 1, 'sort': 'id', 'order': 'desc', 'metadata': {'created': '{"provider":"datetimeProvider","index":10,"field":"created"}', 'upORdown': '{"provider":"userFlagProvider","index":20,"field":"upORdown"}', 'upstreamType': '{"provider":"upStreamTypeProvider","index":30,"field":"upstreamType"}'}}
  48 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/upStream/index.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
  49 +[2021-06-23 15:37:39] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action
  50 +None
  51 +{'rows': 10, 'page': 1, 'sort': 'id', 'order': 'desc', 'metadata': {'created': '{"provider":"datetimeProvider","index":10,"field":"created"}', 'upORdown': '{"provider":"userFlagProvider","index":20,"field":"upORdown"}', 'upstreamType': '{"provider":"upStreamTypeProvider","index":30,"field":"upstreamType"}'}, 'likeName': '111'}
  52 +{'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/upStream/index.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
src/testcase/fieldConfig/__pycache__/test_fieldConfig.cpython-36.pyc
No preview for this file type