Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
de11c189
Commit
de11c189
authored
Mar 07, 2024
by
liguangyu06
Browse files
优化
parent
1ac874b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_list/导出功能验证_商品预测明细.air/导出功能验证_商品预测明细.py
View file @
de11c189
...
@@ -32,9 +32,9 @@ result = requests.post(url, json=request_body, headers=headers)
...
@@ -32,9 +32,9 @@ result = requests.post(url, json=request_body, headers=headers)
result
=
json
.
loads
(
result
.
content
)
result
=
json
.
loads
(
result
.
content
)
# 生成随机数
# 生成随机数
pr_random
=
random
.
randint
(
0
,
len
(
result
[
"data"
])
-
1
)
pr_random
=
random
.
randint
(
0
,
len
(
result
[
"data"
]
[
"list"
]
)
-
1
)
# 获取商品信息
# 获取商品信息
customerInfo
=
result
[
"data"
][
pr_random
][
"customerCode"
]
customerInfo
=
result
[
"data"
][
"list"
][
pr_random
][
"customerCode"
]
# 第三步商品预测明细导出操作
# 第三步商品预测明细导出操作
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url85"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url85"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment