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
f2f0073a
Commit
f2f0073a
authored
Mar 27, 2024
by
liguangyu06
Browse files
优化
parent
be79bf91
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_32st/超发配置导入功能验证.air/超发配置导入功能验证.py
View file @
f2f0073a
...
@@ -37,12 +37,12 @@ product_random = random.randint(0, len(result["data"]["list"]) - 1)
...
@@ -37,12 +37,12 @@ product_random = random.randint(0, len(result["data"]["list"]) - 1)
productCode
=
result
[
"data"
][
"list"
][
product_random
][
"productCode"
]
productCode
=
result
[
"data"
][
"list"
][
product_random
][
"productCode"
]
productName
=
result
[
"data"
][
"list"
][
product_random
][
"productName"
]
productName
=
result
[
"data"
][
"list"
][
product_random
][
"productName"
]
specifications
=
result
[
"data"
][
"list"
][
product_random
][
"specifications"
]
specifications
=
result
[
"data"
][
"list"
][
product_random
][
"specifications"
]
num
=
random
.
randint
(
1
,
5
)
num
=
1
# print(num)
# print(num)
# print(productCode)
# print(productCode)
# 获取文件
# 获取文件
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/超发配置导入模板
1
.xlsx"
# 将商品信息写入文件中
# 将商品信息写入文件中
excel
=
HandleExcel
(
file_path
,
"Sheet1"
)
excel
=
HandleExcel
(
file_path
,
"Sheet1"
)
...
...
data/cmdc_files/超发配置导入模板1.xlsx
0 → 100644
View file @
f2f0073a
File added
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