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
fc7e89e6
Commit
fc7e89e6
authored
Jan 24, 2024
by
liguangyu06
Browse files
优化
parent
5eb74d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_product/列表查询条件验证_发货时间列表.air/列表查询条件验证_发货时间列表.py
View file @
fc7e89e6
...
...
@@ -31,6 +31,7 @@ result = json.loads(result.content)
# 生成一个随机数
delivery_time_random
=
random
.
randint
(
0
,
len
(
result
[
"data"
][
"list"
])
-
1
)
# delivery_time_random = 0
# 判断商品圈定方式
if
result
[
"data"
][
"list"
][
delivery_time_random
][
"productRangeType"
]:
...
...
@@ -46,10 +47,10 @@ if result["data"]["list"][delivery_time_random]["productRangeType"]:
# 获取商品信息
line_codes
=
""
name
=
result1
[
"data"
][
"
list"
][
delivery_time_random
][
"
name"
]
status
=
result1
[
"data"
][
"
list"
][
delivery_time_random
][
"
status"
]
product_code
=
result1
[
"data"
][
"
list"
][
delivery_time_random
][
"
productList"
][
0
][
"productCode"
]
product_name
=
result1
[
"data"
][
"
list"
][
delivery_time_random
][
"
productList"
][
0
][
"productName"
]
name
=
result1
[
"data"
][
"name"
]
status
=
result1
[
"data"
][
"status"
]
product_code
=
result1
[
"data"
][
"productList"
][
0
][
"productCode"
]
product_name
=
result1
[
"data"
][
"productList"
][
0
][
"productName"
]
# 进行查询条件验证
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url35"
)
...
...
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