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
ad9bb844
Commit
ad9bb844
authored
Feb 07, 2024
by
xiao-hesheng
Browse files
新增请领模板维护脚本
parent
705eba1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/q7科室管理_科室产品分配_请领模板维护_移除产品.air/q7科室管理_科室产品分配_请领模板维护_移除产品.py
View file @
ad9bb844
...
@@ -12,8 +12,8 @@ from common.timeUtils import timeUtils
...
@@ -12,8 +12,8 @@ from common.timeUtils import timeUtils
__author__
=
"xiaohesheng"
__author__
=
"xiaohesheng"
"""
"""
case_tag:api,herp-web,q
3
科室管理_科室产品分配_请领模板维护_移除产品,id2263,id2263-199,sit,on
case_tag:api,herp-web,q
7
科室管理_科室产品分配_请领模板维护_移除产品,id2263,id2263-199,sit,on
内网:q
3
科室管理_科室产品分配_请领模板维护_移除产品
内网:q
7
科室管理_科室产品分配_请领模板维护_移除产品
"""
"""
from
common.common_func
import
commonFuc
from
common.common_func
import
commonFuc
...
@@ -22,8 +22,8 @@ module = "b2_herp3_bs"
...
@@ -22,8 +22,8 @@ module = "b2_herp3_bs"
def
test1
():
def
test1
():
"""
"""
场景:q
3
科室管理_科室产品分配_请领模板维护_移除产品
场景:q
7
科室管理_科室产品分配_请领模板维护_移除产品
用例名称:q
3
科室管理_科室产品分配_请领模板维护_移除产品
用例名称:q
7
科室管理_科室产品分配_请领模板维护_移除产品
输入:""
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
"""
"""
...
@@ -95,3 +95,5 @@ def test1():
...
@@ -95,3 +95,5 @@ def test1():
commonFuc
().
check_text_exist
(
'error'
,
result
)
commonFuc
().
check_text_exist
(
'error'
,
result
)
test1
()
test1
()
#调用数据库删除所有的模板
delData
().
Delete_goods_pur_template
()
common/db/sql/sql_del_branch_info.py
View file @
ad9bb844
...
@@ -62,6 +62,17 @@ class delData(object):
...
@@ -62,6 +62,17 @@ class delData(object):
cursor
.
execute
(
"commit;"
)
cursor
.
execute
(
"commit;"
)
print
(
'消息通知模板类型已经删除成功 '
)
print
(
'消息通知模板类型已经删除成功 '
)
cursor
.
close
()
cursor
.
close
()
def
Delete_goods_pur_template
(
self
):
connection
=
pymysql
.
connect
(
host
=
"10.17.65.108"
,
user
=
"root"
,
password
=
"Cmic.2023"
,
database
=
"spd3_herp_test2"
,
charset
=
"utf8"
)
cursor
=
connection
.
cursor
()
# 删除产品信息修改数据
sql
=
"delete from mcms_goods_pur_template where create_user ='UID-050151';"
print
(
sql
)
cursor
.
execute
(
sql
)
cursor
.
execute
(
"commit;"
)
print
(
'请领模板删除成功 '
)
cursor
.
close
()
# delData().Delete_branch_by_id()
# delData().Delete_branch_by_id()
# delData().Delete_goods_change_info()
# delData().Delete_goods_change_info()
# delData().Delete_sys_config()
# delData().Delete_sys_config()
...
...
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