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
2a40485f
Commit
2a40485f
authored
Mar 12, 2024
by
liguangyu06
Browse files
优化
parent
7f3387b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_32st/超发配置导入功能验证.air/超发配置导入功能验证.py
View file @
2a40485f
...
...
@@ -38,6 +38,7 @@ productCode = result["data"]["list"][product_random]["productCode"]
productName
=
result
[
"data"
][
"list"
][
product_random
][
"productName"
]
specifications
=
result
[
"data"
][
"list"
][
product_random
][
"specifications"
]
num
=
random
.
randint
(
1
,
5
)
# print(num)
# print(productCode)
# 获取文件
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))))
...
...
@@ -81,6 +82,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db_be")
sql
=
"SELECT t.wholeQuantity FROM `cmdc-order`.tc_supernova t "
\
"WHERE companyCode = 00102 and productCode = {}"
.
format
(
productCode
)
total
=
int
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)[
0
][
0
])
# print(sql)
result
=
{
"wholeQuantity"
:
total
}
# 将接口响应时间添加至result
...
...
data/cmdc_files/超发配置导入模板.xlsx
View file @
2a40485f
No preview for this file type
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