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
9804ed6e
Commit
9804ed6e
authored
Apr 15, 2024
by
liguangyu06
Browse files
优化
parent
63a4180e
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_34st/近效期商品明细列表新增物料编码字段验证.air/近效期商品明细列表新增物料编码字段验证.py
View file @
9804ed6e
...
...
@@ -38,7 +38,9 @@ api_time = float(result.elapsed.total_seconds())
# 获取列表物料编码信息
result
=
json
.
loads
(
result
.
content
)
# print(result)
result
=
result
[
"data"
][
"list"
][
0
]
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
...
...
@@ -46,5 +48,5 @@ result["api_time"] = api_time
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict7"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
air_case/cmdc_34st/近效期商品明细批量导出新增物料编码字段验证.air/近效期商品明细批量导出新增物料编码字段验证.py
View file @
9804ed6e
...
...
@@ -71,6 +71,6 @@ result["api_time"] = api_time
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict8"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_
resul
t
(
check_dict
,
result
)
commonFuc
().
check_
variable_exis
t
(
check_dict
,
result
)
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