Commit 1138426ebd5b468e218cf0c164ae09ddcfe63d2d
Committed by
liujiqiang
1 parent
535c3ce5
修改了test_Upstream的演示代码
Showing
10 changed files
with
18 additions
and
353 deletions
src/commons/MySession.py
@@ -31,7 +31,7 @@ class mysession(): | @@ -31,7 +31,7 @@ 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 = (3,5) | 34 | + self.timeout = (5,3) |
35 | self.max_retries = 3 | 35 | self.max_retries = 3 |
36 | self.keep_alive = False | 36 | self.keep_alive = False |
37 | self.ssl_verify=False | 37 | self.ssl_verify=False |
@@ -181,4 +181,4 @@ class mysession(): | @@ -181,4 +181,4 @@ class mysession(): | ||
181 | my=mysession() | 181 | my=mysession() |
182 | my.set_mark() | 182 | my.set_mark() |
183 | s1=my.get_session("user01") | 183 | s1=my.get_session("user01") |
184 | -s2=my.get_session("user02") | 184 | +# s2=my.get_session("user02") |
src/commons/__pycache__/MySession.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/doAdd.py
@@ -4,7 +4,7 @@ import requests | @@ -4,7 +4,7 @@ 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.MySession import my,s1,s2 | 7 | +from commons.MySession import my,s1 |
8 | urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | 8 | urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
9 | 9 | ||
10 | 10 |
src/commons/api/upStream.py
@@ -32,6 +32,11 @@ class upStream(): | @@ -32,6 +32,11 @@ class upStream(): | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | ||
35 | -# tt=upStream() | ||
36 | -# re=my.post(url=tt.url,headers=tt.header,json=tt.body) | 35 | +# uu=upStream() |
36 | +# re=my.post(url=uu.url,headers=uu.header,json=uu.body) | ||
37 | +# print(re.json()) | ||
38 | +#========================================================= | ||
39 | +# body=uu.body.copy() | ||
40 | +# body["likeName"]="111" | ||
41 | +# re=my.post(url=uu.url,headers=uu.header,json=body) | ||
37 | # print(re.json()) | 42 | # print(re.json()) |
38 | \ No newline at end of file | 43 | \ No newline at end of file |
src/config/api/login.conf
1 | -# -*- coding: UTF-8 -*- | ||
2 | - | ||
3 | -[login01] | ||
4 | -method=post | ||
5 | -url=http://test.uap.diligrp.com/login/login.action | ||
6 | - | ||
7 | -header={ | ||
8 | - "Host": "test.uap.diligrp.com", | ||
9 | - "Connection": "keep-alive", | ||
10 | - "Content-Length": "33", | ||
11 | - "Cache-Control": "max-age=0", | ||
12 | - "Upgrade-Insecure-Requests": "1", | ||
13 | - "Origin": "http://test.uap.diligrp.com", | ||
14 | - "Content-Type": "application/x-www-form-urlencoded", | ||
15 | - "User-Agent": "Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36", | ||
16 | - "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", | ||
17 | - "Referer": "http://test.uap.diligrp.com/login/index.html", | ||
18 | - "Accept-Encoding": "gzip,deflate", | ||
19 | - "Accept-Language": "zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7", | ||
20 | - "Cookie": "UAP_accessToken=;UAP_refreshToken=;UAP_loginPath="} | ||
21 | - | ||
22 | -body=userName=sg_wenze&password=111111 | ||
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
30 | -[basic_data_prepare] | ||
31 | -#商品 | ||
32 | -instert_product=INSERT INTO product.product VALUES ('301', '16', '猕猴桃', 'PD2019021000000001', '猕猴桃', 'dili-fresh/groupbuy/7f9fc034c2ec41e18b7560fc42a25abd', '2019-01-29 08:00:00', '2020-12-12 00:00:00', '2019-02-02 10:00:00', '2019-12-11 20:00:00', '600', '<p>预售商品,次日取货。</p><p>预计到店时间:2月3日14点之后。</p><p>到货后群内通知。</p><p><img style=\"max-width:100%;\" src=\"http://img10.nong12.com/dili-fresh/groupbuy/c4aa09d06af948f09269cd0d367fa623\"><br></p><p><br></p>', '2019-01-29 15:48:19', '1', '2019-02-02 10:13:33', '39', '4', '0', '400', '0'); | ||
33 | -#商品 | ||
34 | -instert_product_tag=INSERT INTO product.product_tag VALUES ('500', '1', '300', null, null, '2019-02-10 10:13:34', '2019-02-10 10:13:33'); | ||
35 | -instert_tag=INSERT INTO `tag` VALUES ('1', '年货爆款', '26', '2019-01-14 11:24:48', '26', '2019-03-05 14:13:46', '27'); | ||
36 | -instert_product_stock1=INSERT INTO product.area_stock VALUES ('500', '300', '600', '1000', '0', '1000', '1', '510100', '2019-02-02 10:13:33', '999', null, '2019-01-29 15:48:19', null, '6', '0', '3.00', '1000'); | ||
37 | -instert_product_stock2=INSERT INTO product.area_stock VALUES ('501', '300', '600', '1000', '0', '1000', '1', '210100', '2019-02-02 16:40:49', '999', null, '2019-01-29 15:48:19', null, '78', '0', '3.00', '1000'); | ||
38 | -instert_shop=INSERT INTO `shop` VALUES ('116', '成都SAC新店0001', 'S001953', 'W000101', '00010953', '四川省成都市青羊区天府广场', null, '510100', null, '30.663420320381004', '104.07219216758062', null, '李老板', '15111888983', null, null, '天府广场', '3', null, '1', '1', '2019-02-11 14:12:01', null, null, null); | ||
39 | -instert_wallet=INSERT INTO `wallet` VALUES ('11845', '00010953', '0', '0', '0', '1', '0', '2019-02-11 12:08:50', '2019-02-11 12:08:50', null, null); | ||
40 | - | ||
41 | -[data_clean] | ||
42 | -delete_product=DELETE FROM product.product WHERE id = 300; | ||
43 | -delete_product_tag=DELETE FROM product.product_tag WHERE product_tag.product_id = 300; | ||
44 | -delete_product_stock=DELETE FROM product.area_stock WHERE area_stock.product_id = 300; | ||
45 | - | ||
46 | - | ||
47 | -[submitOrder01] | ||
48 | -notes="下单成功:优惠券为空,其他参数传入有效值" | ||
49 | -delete_order=DELETE FROM `customer_coupon` WHERE code = 10000; | ||
50 | -requestBody={ | ||
51 | - "payCredential": "1548316340046", | ||
52 | - "customerCode": "00010966", | ||
53 | - "amount": 0, | ||
54 | - "source": "wechatApplet", | ||
55 | - "deliveryMethod": "homeDelivery", | ||
56 | - "cityId": "510100", | ||
57 | - "cityName": "成都市", | ||
58 | - "shopCode": "S001953", | ||
59 | - "shopName": "成都SAC新店0001", | ||
60 | - "useFreeAmount": 0, | ||
61 | - "items": [{ | ||
62 | - "areaId": "510100", | ||
63 | - "productId": 301, | ||
64 | - "productCode": "PD2019021100000001", | ||
65 | - "productName": "猕猴桃", | ||
66 | - "price": 0, | ||
67 | - "quantity": 1 | ||
68 | - }] | ||
69 | - } | ||
70 | -expect_Response={"code":"200","data":{"nonceStr":"APm6DY1wlK7cGkVbOAqe","orderCode":"O2019021400000009","pacKage":"prepay_id=1550137322575","payEnable":2,"paySign":"470D0E4BD0A2F13F8772DF29A6B7B206","signType":"MD5","timeStamp":"1550137323166"},"result":"OK","success":1} | ||
71 | - | ||
72 | - | ||
73 | -[submitOrder02] | ||
74 | -notes="下单失败:商品为空时,优惠券为空,其他参数填入有效值" | ||
75 | -requestBody={ | ||
76 | - "payCredential": "1548316340046", | ||
77 | - "customerCode": "00010966", | ||
78 | - "amount": 0, | ||
79 | - "source": "wechatApplet", | ||
80 | - "deliveryMethod": "homeDelivery", | ||
81 | - "cityId": "510100", | ||
82 | - "cityName": "成都市", | ||
83 | - "shopCode": "S001953", | ||
84 | - "shopName": "成都SAC新店0001", | ||
85 | - "useFreeAmount": 0, | ||
86 | - "items": [] | ||
87 | - } | ||
88 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
89 | - | ||
90 | -[submitOrder03] | ||
91 | -notes="下单成功:使用有效优惠券,其他参数填入有效值" | ||
92 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
93 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '1', '00010966', '004', '成勇测试01', 'auto', '2', '1', '1000', '0', '2019-01-17 00:00:00', '2025-01-26 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
94 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
95 | -requestBody={ | ||
96 | - "payCredential": "1548323014928", | ||
97 | - "customerCode": "00010966", | ||
98 | - "amount": 0, | ||
99 | - "source": "wechatApplet", | ||
100 | - "deliveryMethod": "homeDelivery", | ||
101 | - "cityId": "510100", | ||
102 | - "cityName": "成都市", | ||
103 | - "shopCode": "S001953", | ||
104 | - "shopName": "成都SAC新店0001", | ||
105 | - "useFreeAmount": 0, | ||
106 | - "items": [{ | ||
107 | - "areaId": "510100", | ||
108 | - "productId": 301, | ||
109 | - "productCode": "PD2019011700000052", | ||
110 | - "productName": "猕猴桃", | ||
111 | - "price": 0, | ||
112 | - "quantity": 1 | ||
113 | - }], | ||
114 | - "customerCouponId": 10000 | ||
115 | - } | ||
116 | -expect_Response={"code":"200","data":{"nonceStr":"APm6DY1wlK7cGkVbOAqe","orderCode":"O2019021400000009","pacKage":"prepay_id=1550137322575","payEnable":2,"paySign":"470D0E4BD0A2F13F8772DF29A6B7B206","signType":"MD5","timeStamp":"1550137323166"},"result":"OK","success":1} | ||
117 | - | ||
118 | - | ||
119 | - | ||
120 | -[submitOrder04] | ||
121 | -notes="下单失败:支付用已经使用过的优惠券" | ||
122 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
123 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '0', '00010953', '004', '成勇测试01', 'auto', '2', '1', '1000', '0', '2019-01-17 00:00:00', '2025-01-26 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
124 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
125 | -requestBody={ | ||
126 | - "payCredential": "1548323014928", | ||
127 | - "customerCode": "00010966", | ||
128 | - "amount": 0, | ||
129 | - "source": "wechatApplet", | ||
130 | - "deliveryMethod": "homeDelivery", | ||
131 | - "cityId": "510100", | ||
132 | - "cityName": "成都市", | ||
133 | - "shopCode": "S001953", | ||
134 | - "shopName": "成都SAC新店0001", | ||
135 | - "useFreeAmount": 0, | ||
136 | - "items": [{ | ||
137 | - "areaId": "510100", | ||
138 | - "productId": 301, | ||
139 | - "productCode": "PD2019021100000001", | ||
140 | - "productName": "猕猴桃", | ||
141 | - "price": 0, | ||
142 | - "quantity": 1 | ||
143 | - }], | ||
144 | - "customerCouponId": 10000 | ||
145 | - } | ||
146 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
147 | - | ||
148 | - | ||
149 | -[submitOrder05] | ||
150 | -notes="下单失败:支付用过期的优惠券" | ||
151 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
152 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '1', '00010953', '004', '成勇测试01', 'auto', '2', '1', '1000', '0', '2019-01-17 00:00:00', '2019-01-18 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
153 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
154 | -requestBody={ | ||
155 | - "payCredential": "1548323014928", | ||
156 | - "customerCode": "00010966", | ||
157 | - "amount": 0, | ||
158 | - "source": "wechatApplet", | ||
159 | - "deliveryMethod": "homeDelivery", | ||
160 | - "cityId": "510100", | ||
161 | - "cityName": "成都市", | ||
162 | - "shopCode": "S001953", | ||
163 | - "shopName": "成都SAC新店0001", | ||
164 | - "useFreeAmount": 0, | ||
165 | - "items": [{ | ||
166 | - "areaId": "510100", | ||
167 | - "productId": 301, | ||
168 | - "productCode": "PD2019021100000001", | ||
169 | - "productName": "猕猴桃", | ||
170 | - "price": 0, | ||
171 | - "quantity": 1 | ||
172 | - }], | ||
173 | - "customerCouponId": 10000 | ||
174 | - } | ||
175 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
176 | - | ||
177 | -[submitOrder06] | ||
178 | -notes="下单失败:支付用别人的优惠券" | ||
179 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
180 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '1', '00001008', '004', '成勇测试01', 'auto', '2', '1', '1000', '0', '2019-01-17 00:00:00', '2025-01-18 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
181 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
182 | -requestBody={ | ||
183 | - "payCredential": "1548323014928", | ||
184 | - "customerCode": "00010966", | ||
185 | - "amount": 0, | ||
186 | - "source": "wechatApplet", | ||
187 | - "deliveryMethod": "homeDelivery", | ||
188 | - "cityId": "510100", | ||
189 | - "cityName": "成都市", | ||
190 | - "shopCode": "S001953", | ||
191 | - "shopName": "成都SAC新店0001", | ||
192 | - "useFreeAmount": 0, | ||
193 | - "items": [{ | ||
194 | - "areaId": "510100", | ||
195 | - "productId": 301, | ||
196 | - "productCode": "PD2019021100000001", | ||
197 | - "productName": "猕猴桃", | ||
198 | - "price": 0, | ||
199 | - "quantity": 1 | ||
200 | - }], | ||
201 | - "customerCouponId": 10000 | ||
202 | - } | ||
203 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
204 | - | ||
205 | - | ||
206 | -[submitOrder07] | ||
207 | -notes="下单失败:支付用未到期的优惠券" | ||
208 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
209 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '1', '00010953', '004', '成勇测试01', 'auto', '2', '1', '1000', '0', '2025-01-17 00:00:00', '2025-01-18 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
210 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
211 | -requestBody={ | ||
212 | - "payCredential": "1548323014928", | ||
213 | - "customerCode": "00010966", | ||
214 | - "amount": 0, | ||
215 | - "source": "wechatApplet", | ||
216 | - "deliveryMethod": "homeDelivery", | ||
217 | - "cityId": "510100", | ||
218 | - "cityName": "成都市", | ||
219 | - "shopCode": "S001953", | ||
220 | - "shopName": "成都SAC新店0001", | ||
221 | - "useFreeAmount": 0, | ||
222 | - "items": [{ | ||
223 | - "areaId": "510100", | ||
224 | - "productId": 301, | ||
225 | - "productCode": "PD2019021100000001", | ||
226 | - "productName": "猕猴桃", | ||
227 | - "price": 0, | ||
228 | - "quantity": 1 | ||
229 | - }], | ||
230 | - "customerCouponId": 10000 | ||
231 | - } | ||
232 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
233 | - | ||
234 | -[submitOrder08] | ||
235 | -notes="下单失败:支付用未满减条件的优惠券" | ||
236 | -coupon_check=SELECT * FROM customer.customer_coupon WHERE id = 10000; | ||
237 | -coupon_insert=INSERT INTO `customer_coupon` VALUES ('10000', '1', '00010953', '004', '成勇测试01', 'auto', '2', '1', '1000', '1000', '2019-01-17 00:00:00', '2025-01-18 23:59:59', '10', '2019-01-17 15:14:15', null, '1'); | ||
238 | -coupon_delete=DELETE FROM `customer_coupon` WHERE id = 10000; | ||
239 | -requestBody={ | ||
240 | - "payCredential": "1548323014928", | ||
241 | - "customerCode": "00010966", | ||
242 | - "amount": 0, | ||
243 | - "source": "wechatApplet", | ||
244 | - "deliveryMethod": "homeDelivery", | ||
245 | - "cityId": "510100", | ||
246 | - "cityName": "成都市", | ||
247 | - "shopCode": "S001953", | ||
248 | - "shopName": "成都SAC新店0001", | ||
249 | - "useFreeAmount": 0, | ||
250 | - "items": [{ | ||
251 | - "areaId": "510100", | ||
252 | - "productId": 301, | ||
253 | - "productCode": "PD2019021100000001", | ||
254 | - "productName": "猕猴桃", | ||
255 | - "price": 0, | ||
256 | - "quantity": 1 | ||
257 | - }], | ||
258 | - "customerCouponId": 10000 | ||
259 | - } | ||
260 | -expect_Response={"code":"5000","result":"优惠券不可用","success":false} | ||
261 | - | ||
262 | -[submitOrder09] | ||
263 | -notes="下单失败:使用被关闭的自提点" | ||
264 | -shop_shutdown=UPDATE `fresh-uap`.shop SET state = 4 WHERE code = 'S001953' ; | ||
265 | -shop_open=UPDATE `fresh-uap`.shop SET state = 3 WHERE code = 'S001953' ; | ||
266 | -requestBody={ | ||
267 | - "payCredential": "1548323014928", | ||
268 | - "customerCode": "00010966", | ||
269 | - "amount": 0, | ||
270 | - "source": "wechatApplet", | ||
271 | - "deliveryMethod": "homeDelivery", | ||
272 | - "cityId": "510100", | ||
273 | - "cityName": "成都市", | ||
274 | - "shopCode": "S001953", | ||
275 | - "shopName": "成都SAC新店0001", | ||
276 | - "useFreeAmount": 0, | ||
277 | - "items": [{ | ||
278 | - "areaId": "510100", | ||
279 | - "productId": 301, | ||
280 | - "productCode": "PD2019021100000001", | ||
281 | - "productName": "猕猴桃", | ||
282 | - "price": 0, | ||
283 | - "quantity": 1 | ||
284 | - }] | ||
285 | - } | ||
286 | -expect_Response={"code":"5000","result":"自提点异常","success":false} | ||
287 | - | ||
288 | - | ||
289 | -[submitOrder10] | ||
290 | -notes="下单失败:客户被禁用时下单" | ||
291 | -customer_disable=UPDATE customer.customer SET enabled_state = 0 WHERE `code` = 00010966 ; | ||
292 | -customer_enable=UPDATE customer.customer SET enabled_state = 1 WHERE `code` = 00010966 ; | ||
293 | -requestBody={ | ||
294 | - "payCredential": "1548323014928", | ||
295 | - "customerCode": "00010966", | ||
296 | - "amount": 0, | ||
297 | - "source": "wechatApplet", | ||
298 | - "deliveryMethod": "homeDelivery", | ||
299 | - "cityId": "510100", | ||
300 | - "cityName": "成都市", | ||
301 | - "shopCode": "S001953", | ||
302 | - "shopName": "成都SAC新店0001", | ||
303 | - "useFreeAmount": 0, | ||
304 | - "items": [{ | ||
305 | - "areaId": "510100", | ||
306 | - "productId": 301, | ||
307 | - "productCode": "PD2019021100000001", | ||
308 | - "productName": "猕猴桃", | ||
309 | - "price": 0, | ||
310 | - "quantity": 1 | ||
311 | - }] | ||
312 | - } | ||
313 | -expect_Response={"code":"5000","result":"账户被禁用","success":false} | ||
314 | - | ||
315 | -[submitOrder11] | ||
316 | -notes="下单失败:购买其他地区的商品" | ||
317 | -requestBody={ | ||
318 | - "payCredential": "1548316340046", | ||
319 | - "customerCode": "00010966", | ||
320 | - "amount": 0, | ||
321 | - "source": "wechatApplet", | ||
322 | - "deliveryMethod": "homeDelivery", | ||
323 | - "cityId": "510100", | ||
324 | - "cityName": "成都市", | ||
325 | - "shopCode": "S001953", | ||
326 | - "shopName": "成都SAC新店0001", | ||
327 | - "useFreeAmount": 0, | ||
328 | - "items": [{ | ||
329 | - "areaId": "110100", | ||
330 | - "productId": 301, | ||
331 | - "productCode": "PD2019021100000001", | ||
332 | - "productName": "猕猴桃", | ||
333 | - "price": 0, | ||
334 | - "quantity": 1 | ||
335 | - }] | ||
336 | - } | ||
337 | -expect_Response={"code":"5000","result":"商品沈阳独立商品超过购买限制,限制购买总数为0","success":false} | ||
338 | \ No newline at end of file | 0 | \ No newline at end of file |
src/config/global_data.conf
@@ -10,8 +10,9 @@ user01=210 | @@ -10,8 +10,9 @@ user01=210 | ||
10 | user02=87 | 10 | user02=87 |
11 | user03=256 | 11 | user03=256 |
12 | 12 | ||
13 | -[environment] | ||
14 | -en=http://test. | 13 | +[email] |
14 | +list=[] | ||
15 | +list1=["lixi@diligrp.com","LI@diligrp.com"] | ||
15 | 16 | ||
16 | [mark] | 17 | [mark] |
17 | list=[] | 18 | list=[] |
@@ -25,9 +26,10 @@ dbuser=root | @@ -25,9 +26,10 @@ dbuser=root | ||
25 | dbpassword=123456 | 26 | dbpassword=123456 |
26 | dbcharset=utf8 | 27 | dbcharset=utf8 |
27 | 28 | ||
28 | -[email] | ||
29 | -list=[] | ||
30 | -list1=["lixi@diligrp.com","LI@diligrp.com"] | 29 | +[environment] |
30 | +en=http://test. | ||
31 | + | ||
32 | + | ||
31 | 33 | ||
32 | 34 | ||
33 | 35 |
src/report/test.log
1 | -[2021-06-28 17:38:14] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action | 1 | +[2021-06-30 11:04:51] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action |
2 | None | 2 | None |
3 | {'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"}'}} | 3 | {'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"}'}} |
4 | {'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'}} | 4 | {'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'}} |
5 | 5 | ||
6 | -[2021-06-28 17:38:14] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action | ||
7 | -None | ||
8 | -{'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'} | ||
9 | -{'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'}} | ||
10 | - |
src/testcase/fieldConfig/__pycache__/test_fieldConfig.cpython-36.pyc
No preview for this file type
src/testcase/upStream/__pycache__/test_upStream.cpython-36.pyc
No preview for this file type