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
c9d1fc9f
Commit
c9d1fc9f
authored
Nov 03, 2023
by
liguangyu06
Browse files
用例优化
parent
7633db90
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_special_fresenius_group/特价单品查询.air/特价单品查询.py
View file @
c9d1fc9f
...
@@ -48,7 +48,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
...
@@ -48,7 +48,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 数据库查询特价单品数量
# 数据库查询特价单品数量
sql
=
"SELECT t.groupId FROM `cmdc-order`.tc_fresenius_group t WHERE groupType = 1 and companyCode = 00111;"
sql
=
"SELECT t.groupId FROM `cmdc-order`.tc_fresenius_group t WHERE groupType = 1 and companyCode = 00111;"
total
=
len
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)
[
0
]
)
total
=
len
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
))
# 获取预期结果
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict1"
,
total
)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict1"
,
total
)
...
...
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