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
08dc74cb
Commit
08dc74cb
authored
Jan 16, 2024
by
liguangyu06
Browse files
优化
parent
4a774e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_trade/获取缺货商品列表.air/获取缺货商品列表.py
View file @
08dc74cb
...
...
@@ -35,10 +35,8 @@ request_body = commonFuc().get_business_data(module, "payload5")
# 发送请求
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
result
=
json
.
loads
(
result
.
content
)
# print(result)
# 获取分类数量
result
=
{
"total"
:
len
(
result
[
"data"
][
"list"
])}
# 获取缺货商品数量
result
=
{
"total"
:
result
[
"data"
][
"total"
]}
# 数据库操作
mysql_handle
=
mySql
()
# 获取conf.ini文件中配置的数据库信息
...
...
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