Commit d56f0c69d37f385d4a3c86a4fc1fdbf40e1fcc49
1 parent
9b61a3ee
1
Showing
1 changed file
with
2 additions
and
2 deletions
testcase/hg/createTradingOrder/test_createTradingOrder.py
... | ... | @@ -18,12 +18,12 @@ print("\n开始运行订单创建脚本...\n") |
18 | 18 | |
19 | 19 | |
20 | 20 | #打印第三方请求json市场和请求次数 |
21 | -print("请求参数={} 请求次数={}".format(d,t)) | |
21 | +print("请求参数={} 请求次数={}".format(d,tt)) | |
22 | 22 | |
23 | 23 | |
24 | 24 | #根据用户参数进行请求 |
25 | 25 | if d!=None : |
26 | - for i in range(t): | |
26 | + for i in range(tt): | |
27 | 27 | body = d |
28 | 28 | print("创建订单,第{}次请求,请求body={}".format(i+1,body)) |
29 | 29 | re = hg.post(url = create.url, headers = create.header, json = body) | ... | ... |