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
c3799494
Commit
c3799494
authored
Apr 24, 2024
by
liguangyu06
Browse files
优化
parent
7f53238e
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_33st/草稿导出验证_快速下单.air/草稿导出验证_快速下单.py
View file @
c3799494
...
@@ -35,7 +35,8 @@ createTime = result["data"]["createTime"]
...
@@ -35,7 +35,8 @@ createTime = result["data"]["createTime"]
# 第三步草稿导出操作
# 第三步草稿导出操作
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url41"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url41"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload41"
,
draftDemandCode
,
createTime
)
request_body
=
[
commonFuc
().
get_business_data
(
module
,
"payload41"
,
draftDemandCode
,
createTime
)]
print
(
request_body
)
"""
"""
场景: 草稿导出验证_快速下单
场景: 草稿导出验证_快速下单
...
@@ -48,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers)
...
@@ -48,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers)
# 获取接口响应时间
# 获取接口响应时间
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
# 获取文件
#
# 获取文件
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))))
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))))
file_path
=
BASE_DIR
+
"/data/cmdc_files/同步导出草稿.xlsx"
file_path
=
BASE_DIR
+
"/data/cmdc_files/同步导出草稿.xlsx"
...
...
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