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
b821f904
Commit
b821f904
authored
Mar 27, 2024
by
liguangyu06
Browse files
优化
parent
114cedfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_33st/需求单导出新增下单人字段验证.air/需求单导出新增下单人字段验证.py
View file @
b821f904
...
@@ -31,7 +31,7 @@ result = json.loads(result.content)
...
@@ -31,7 +31,7 @@ result = json.loads(result.content)
# 获取需求单信息
# 获取需求单信息
demandParentCode
=
result
[
"data"
][
"list"
][
0
][
"demandParentCode"
]
demandParentCode
=
result
[
"data"
][
"list"
][
0
][
"demandParentCode"
]
# print(demandParentCode)
# 第三步获取需求单导出操作
# 第三步获取需求单导出操作
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url27"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url27"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload27"
,
demandParentCode
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload27"
,
demandParentCode
)
...
@@ -71,7 +71,7 @@ with open(file_path, 'wb') as f:
...
@@ -71,7 +71,7 @@ with open(file_path, 'wb') as f:
# 获取导出文件中制单人信息
# 获取导出文件中制单人信息
excel
=
HandleExcel
(
file_path
,
"Sheet1"
)
excel
=
HandleExcel
(
file_path
,
"Sheet1"
)
result
=
{
"operationUserName"
:
excel
.
read_data
()[
0
].
get
(
"
制
单人"
)}
result
=
{
"operationUserName"
:
excel
.
read_data
()[
0
].
get
(
"
下
单人"
)}
# 将接口响应时间添加至result
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
result
[
"api_time"
]
=
api_time
...
...
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