Commit 1d74c183 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

产品信息变更增加异常场景脚本

parent affbbadb
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import pymysql import pymysql
class delByBranchId(object): class delData(object):
def Delete_branch_by_id(self): def Delete_branch_by_id(self):
connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2", connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2",
......
...@@ -5,7 +5,7 @@ import platform ...@@ -5,7 +5,7 @@ import platform
import shutil import shutil
import common.run_case_conditions as run import common.run_case_conditions as run
import common.case_tag_get as case_tag_get import common.case_tag_get as case_tag_get
from common.db.sql.sql_del_branch_info import delByBranchId from common.db.sql.sql_del_branch_info import delData
curPath = os.path.abspath(os.path.dirname(__file__)) curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0] rootPath = os.path.split(curPath)[0]
...@@ -94,5 +94,5 @@ if __name__ == '__main__': ...@@ -94,5 +94,5 @@ if __name__ == '__main__':
print('删了什么文件', del_file) print('删了什么文件', del_file)
print('结束了') print('结束了')
#删除自动化脚本产生的数据 #删除自动化脚本产生的数据
delByBranchId().Delete_branch_by_id() delData().Delete_branch_by_id()
delByBranchId().Delete_goods_change_info() delData().Delete_goods_change_info()
\ No newline at end of file \ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment