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-cmdc
Commits
33c2e4e6
Commit
33c2e4e6
authored
Dec 08, 2023
by
liguangyu06
Browse files
用例优化
parent
037fe735
Changes
4
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_handle/商品jde停用拦截验证_下单_e.air/商品jde停用拦截验证_下单_e.py
View file @
33c2e4e6
...
...
@@ -27,7 +27,7 @@ mysql_handle = mySql()
# 获取conf.ini文件中配置的数据库信息
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db"
)
# 进行商品
下架
操作
# 进行商品
jde状态调整为停用
操作
sql
=
"UPDATE `cmdc-product`.ic_product t SET t.jdeStatus = '0' WHERE t.productId = 7991"
mysql_handle
.
executeUpdate
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)
...
...
air_case/cmdc_order_handle/商品jde停用拦截验证_再来一单_e.air/商品jde停用拦截验证_再来一单_e.py
View file @
33c2e4e6
...
...
@@ -61,6 +61,6 @@ check_dict = commonFuc().get_business_data(module, "checkDict20")
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
#
进行商品上架架
操作
#
把商品对应的jde状态调整为启用状态
操作
sql
=
"UPDATE `cmdc-product`.ic_product t SET t.jdeStatus = 'P' WHERE t.productId = 7991"
mysql_handle
.
executeUpdate
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)
air_case/cmdc_order_handle/控销商品拦截验证_下单_c.air/控销商品拦截验证_下单_c.py
View file @
33c2e4e6
...
...
@@ -27,7 +27,7 @@ mysql_handle = mySql()
# 获取conf.ini文件中配置的数据库信息
host
,
port
,
user
,
pwd
=
mysql_handle
.
getConf
(
db
=
"cmdc_db"
)
# 进行商品
下架
操作
# 进行商品
控销
操作
sql
=
"UPDATE `cmdc-product`.ic_product t SET t.isControlSales = 1 WHERE t.productId = 7991"
mysql_handle
.
executeUpdate
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)
...
...
air_case/cmdc_order_handle/控销商品拦截验证_再来一单_d.air/控销商品拦截验证_再来一单_d.py
View file @
33c2e4e6
...
...
@@ -61,6 +61,6 @@ check_dict = commonFuc().get_business_data(module, "checkDict20")
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
# 进行
商品上架架
操作
# 进行
去除商品控销状态
操作
sql
=
"UPDATE `cmdc-product`.ic_product t SET t.isControlSales = 0 WHERE t.productId = 7991"
mysql_handle
.
executeUpdate
(
host
,
port
,
user
,
pwd
,
"cmdc-product"
,
sql
)
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