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
cbe3b23e
Commit
cbe3b23e
authored
Jun 09, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤回my的读取mysql
parent
21148bda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
test_case/bmc/test_my.py
+9
-9
No files found.
test_case/bmc/test_my.py
View file @
cbe3b23e
...
...
@@ -24,9 +24,9 @@ class TestMy:
config
.
BMCConfig
.
headers
[
"Token"
]
=
getattr
(
config
.
BMCConfig
,
"bmc_token"
)
self
.
headers
=
config
.
BMCConfig
.
headers
# mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="edl_public")
#
mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="edl_public")
mysql
=
BaseConfig
.
test_mysql_215
mysql
=
MYSQL
(
*
mysql
)
mysql
=
MYSQL
(
"10.197.236.215"
,
3306
,
"root"
,
"DataCenter@!hik"
,
db
=
"edl_public"
)
#
mysql = BaseConfig.test_mysql_215
#
mysql = MYSQL(*mysql)
mysql
.
ExecuNonQuery
(
"insert into edl_public.feedback_type values ('10008611','自动化类型','0','1','0','2021-05-01 16:51:12','2021-05-01 16:51:12','520100,330100,500100');"
)
mysql
.
ExecuNonQuery
(
"INSERT INTO edl_public.trade (user_id,phone,brand_id,shop_id,trade_type,trade_amount,privilege_amount,pay_amount,uuid,trade_no,trade_source,memo,gmt_finished,status,gmt_create,gmt_modified,shop_name,brand_name,trade_status,remark_status,verification_status,settlement_status,refund_status,close_status,gmt_closed,close_memo,expired_status,gmt_expired,bill_status) VALUES (598137,'17822000000',48,112,2,2.55,0.00,2.55,'7ac6253d-8586-475d-8474-be848fe5c4b6','hik202105081390911897531973632',1,NULL ,NULL ,1,'2021-05-08 14:10:13.000','2021-05-24 17:25:30.000','回归测试门店1','回归(个人)1',3,'N/A','N/A','N/A','N/A','N/A',NULL,NULL,'N/A','2021-06-07 14:10:13.000','N/A');"
)
...
...
@@ -638,9 +638,9 @@ class TestMy:
def
teardown
(
self
):
# mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="edl_public")
#
mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="edl_public")
mysql
=
BaseConfig
.
test_mysql_215
mysql
=
MYSQL
(
*
mysql
)
mysql
=
MYSQL
(
"10.197.236.215"
,
3306
,
"root"
,
"DataCenter@!hik"
,
db
=
"edl_public"
)
#
mysql = BaseConfig.test_mysql_215
#
mysql = MYSQL(*mysql)
mysql
.
ExecuNonQuery
(
"delete from edl_public.feedback_type where id='10008611';"
)
mysql
.
ExecuNonQuery
(
"delete from edl_public.feedback_chat_record where user_id='598137'"
)
mysql
.
ExecuNonQuery
(
"delete from edl_public.feedback_main where user_id='598137'"
)
...
...
@@ -648,9 +648,9 @@ class TestMy:
allure
.
attach
(
f
"{self.res}"
,
'响应结果'
,
allure
.
attachment_type
.
TEXT
)
def
teardown_class
(
self
):
# mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="edl_public")
#
mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="edl_public")
mysql
=
BaseConfig
.
test_mysql_215
mysql
=
MYSQL
(
*
mysql
)
mysql
=
MYSQL
(
"10.197.236.215"
,
3306
,
"root"
,
"DataCenter@!hik"
,
db
=
"edl_public"
)
#
mysql = BaseConfig.test_mysql_215
#
mysql = MYSQL(*mysql)
mysql
.
ExecuNonQuery
(
"update edl_public.user set nickname='自动化' where id='598137';"
)
mysql
.
ExecuNonQuery
(
"delete from edl_public.user_address where user_id='598137'and address in ('接口自动化详细地址','存在');"
)
mysql
.
ExecuNonQuery
(
"delete from edl_public.trade where user_id='598137'and trade_no='hik202105081390911897531973632';"
)
...
...
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