Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TestAuto
InterfaceAutoTest
Commits
38c2a13f
Commit
38c2a13f
authored
Jun 08, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加数据库配置
parent
f0bcdcbf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
common/db.py
+5
-3
config.py
+3
-0
test_case/bmc/test_ ElectronicLicense.py
+2
-0
test_case/bmc/test_ElectricBicycle.py
+1
-1
No files found.
common/db.py
View file @
38c2a13f
...
...
@@ -93,8 +93,10 @@ if __name__ == '__main__':
# print(str(r)[-7:-1])
# pass
# RedisString(0).delete_key("bmc:c1:dl_img:uid")
mysql_config
=
(
"10.197.236.190"
,
3306
,
"root"
,
"123456"
,
""
)
# mysql = MYSQL(host="10.197.236.190", port=3306, user="root", pwd="123456", db="edl_private")
# info = mysql.ExecuQuery("SELECT * FROM db_tbd_base1.project;")
# print(info)
mysql
=
MYSQL
(
*
mysql_config
)
info
=
mysql
.
ExecuQuery
(
"SELECT * FROM db_tbd_base1.project;"
)
print
(
info
)
r
=
RedisString
(
0
)
.
get
(
'bmc:captcha:1ad7d0e9-1e01-454c-8500-d7b5b15c90ff'
)
#
r = RedisString(0).get('bmc:captcha:1ad7d0e9-1e01-454c-8500-d7b5b15c90ff')
config.py
View file @
38c2a13f
...
...
@@ -25,6 +25,9 @@ class BaseConfig():
# 日志相关
log_path
=
r''
# 日志路径
# 数据库
test_mysql
=
(
"10.197.236.190"
,
3306
,
"root"
,
"123456"
,
"edl_private"
)
class
BMCConfig
(
BaseConfig
):
"""斑马信用app的配置类"""
...
...
test_case/bmc/test_ ElectronicLicense.py
View file @
38c2a13f
...
...
@@ -36,7 +36,9 @@ def get_vehickleId_Tounbind():
@pytest.fixture
(
scope
=
'function'
)
def
avatarUpdate_del
()
:
#修改头像清除
# mysql=BaseConfig.test_mysql
mysql
=
MYSQL
(
host
=
"10.197.236.190"
,
port
=
3306
,
user
=
"root"
,
pwd
=
"123456"
,
db
=
"edl_private"
)
mysql
.
ExecuNonQuery
(
"DELETE FROM edl_private.driving_license_image_audit WHERE name='自动化';"
)
# 删除驾驶员
RedisString
(
0
)
.
delete_key
(
"bmc:c1:dl_img:uid"
)
...
...
test_case/bmc/test_ElectricBicycle.py
View file @
38c2a13f
...
...
@@ -241,7 +241,7 @@ class TestDrivingLicense():
assert
res
[
'code'
]
==
expectData
[
'code'
]
@pytest.mark.scoreDetail
@allure.story
(
"提交新国标备案申请"
)
@allure.story
(
"提交新国标备案申请"
)
# 时间需要加8小时
@allure.link
(
"http://yapi.hikcreate.com/project/32/interface/api/44776"
)
@allure.description
(
"接口:/pvtapi/electricBicycle/apply/newGB/submit,creator:胥键雪,autoCreator:taoke"
)
@allure.title
(
"{inData[testPoint]}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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