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
b6ae18ca
Commit
b6ae18ca
authored
May 08, 2024
by
liguangyu06
Browse files
优化
parent
fca4d96f
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_special_version/获取植入列表产品线下拉列表数据.air/获取植入列表产品线下拉列表数据.py
View file @
b6ae18ca
...
@@ -51,9 +51,9 @@ mysql_handle = mySql()
...
@@ -51,9 +51,9 @@ mysql_handle = mySql()
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db_be"
)
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db_be"
)
# 在数据库中此站点对应的产品线信息
# 在数据库中此站点对应的产品线信息
sql
=
"SELECT count(1) FROM `cmdc-order`.tc_report_productline t WHERE companyCode = 00102"
sql
=
"SELECT count(1) FROM `cmdc-order`.tc_report_productline t WHERE companyCode = 00102
and status = 0
"
total
=
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)[
0
][
0
]
total
=
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)[
0
][
0
]
# print(sql)
# 获取预期结果
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict31"
,
total
)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict31"
,
total
)
# print(check_dict)
# print(check_dict)
...
...
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