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
80f445a0
Commit
80f445a0
authored
Jan 03, 2024
by
liguangyu06
Browse files
优化
parent
cb373a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand_mall/获取需求单操作记录信息验证.air/获取需求单操作记录信息验证.py
View file @
80f445a0
...
...
@@ -32,13 +32,15 @@ result = json.loads(result.content)
# 生成随机数
random_demand
=
random
.
randint
(
0
,
len
(
result
[
"data"
][
"list"
])
-
1
)
# 获取需求单信息
demand_code
=
result
[
"data"
][
"list"
][
random_demand
][
"demandCode"
]
demand_parent_code
=
result
[
"data"
][
"list"
][
random_demand
][
"demandParentCode"
]
# demand_code = result["data"]["list"][random_demand]["demandCode"]
demand_code
=
"17018438457347575"
# demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"]
demand_parent_code
=
"s2312061400015"
# 第三步获取需求单对应的操作记录
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url12"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload12"
,
demand_code
,
demand_parent_code
)
# print(request_body)
"""
场景: 获取需求单操作记录信息验证
用例名称:获取需求单操作记录信息验证
...
...
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