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
69b8948b
Commit
69b8948b
authored
Jun 24, 2024
by
liguangyu06
Browse files
用例优化
parent
bfab596f
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_list/获取用户下单原始清单信息.air/获取用户下单原始清单信息.py
View file @
69b8948b
...
@@ -60,7 +60,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
...
@@ -60,7 +60,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 查询数据库中审核后商品数量
# 查询数据库中审核后商品数量
sql
=
"SELECT count(t.demandSkuId) FROM `cmdc-order`.tc_demand_sku_org t WHERE demandCode = {}"
.
format
(
demandCode
)
sql
=
"SELECT count(t.demandSkuId) FROM `cmdc-order`.tc_demand_sku_org t WHERE demandCode = {}"
.
format
(
demandCode
)
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
]
if
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
)
else
0
)
# 将接口响应时间添加至result
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
result
[
"api_time"
]
=
api_time
...
...
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