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-spd
Commits
1d74c183
Commit
1d74c183
authored
Jan 19, 2024
by
xiao-hesheng
Browse files
产品信息变更增加异常场景脚本
parent
affbbadb
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/db/sql/sql_del_branch_info.py
View file @
1d74c183
...
...
@@ -3,7 +3,7 @@
import
pymysql
class
del
ByBranchId
(
object
):
class
del
Data
(
object
):
def
Delete_branch_by_id
(
self
):
connection
=
pymysql
.
connect
(
host
=
"10.17.65.108"
,
user
=
"root"
,
password
=
"Cmic.2023"
,
database
=
"spd3_herp_test2"
,
...
...
runner.py
View file @
1d74c183
...
...
@@ -5,7 +5,7 @@ import platform
import
shutil
import
common.run_case_conditions
as
run
import
common.case_tag_get
as
case_tag_get
from
common.db.sql.sql_del_branch_info
import
del
ByBranchId
from
common.db.sql.sql_del_branch_info
import
del
Data
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
...
...
@@ -94,5 +94,5 @@ if __name__ == '__main__':
print
(
'删了什么文件'
,
del_file
)
print
(
'结束了'
)
#删除自动化脚本产生的数据
delByBranchId
().
Delete_branch_by_id
()
delByBranchId
().
Delete_goods_change_info
()
\ No newline at end of file
delData
().
Delete_branch_by_id
()
delData
().
Delete_goods_change_info
()
\ No newline at end of file
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