Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
82869c04
Commit
82869c04
authored
1 year ago
by
liguangyu06
Browse files
Options
Download
Email Patches
Plain Diff
优化
parent
ebde3761
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
air_case/cmdc_special_version/获取植入上报附件下载日志.air/获取植入上报附件下载日志.py
+2
-2
...ase/cmdc_special_version/获取植入上报附件下载日志.air/获取植入上报附件下载日志.py
air_case/cmdc_special_version/获取植入列表产品线下拉列表数据.air/获取植入列表产品线下拉列表数据.py
+1
-1
...dc_special_version/获取植入列表产品线下拉列表数据.air/获取植入列表产品线下拉列表数据.py
with
3 additions
and
3 deletions
+3
-3
air_case/cmdc_special_version/获取植入上报附件下载日志.air/获取植入上报附件下载日志.py
+
2
-
2
View file @
82869c04
...
...
@@ -15,8 +15,8 @@ import json
module
=
"cmdc_special_version"
# 第一步登录后台运营系统获取token
username
=
commonFuc
().
get_business_data
(
module
,
"username_admin"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password_admin"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username_admin
2
"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password_admin
2
"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
...
...
This diff is collapsed.
Click to expand it.
air_case/cmdc_special_version/获取植入列表产品线下拉列表数据.air/获取植入列表产品线下拉列表数据.py
+
1
-
1
View file @
82869c04
...
...
@@ -51,7 +51,7 @@ mysql_handle = mySql()
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
]
# 获取预期结果
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets