增加接口请求后的等待时间,方便接口调用后,进行一系列数据初始化操作,待操作成功后,执行后续接口

This commit is contained in:
floraachy
2024-04-12 13:45:22 +08:00
parent 98a2994ad7
commit fd9e5b8df1
6 changed files with 48 additions and 19 deletions
@@ -4,9 +4,11 @@ case_common:
allure_story: 开通/关闭工作台
case_markers:
- pms
- ok
- usefixtures: gitlink_login
# 前提条件:当前存在gitlink组织,组织已开通工作台
# (开通工作台后,需要等待一定时间,才能删除工作台成功)
case_info:
-
@@ -43,13 +45,14 @@ case_info:
# 开通组织工作台
- pms_open_enterprise_01
teardown:
# 删除组织
- gitlink_delete_organization_01
interface:
# 删除组织
- gitlink_delete_organization_01
-
id: pms_close_enterprise_02
title: 密码错误关闭工作台,关闭失败
run: True
run: true
severity: normal
url: ${pms_host}/api/pms/pmsEnterprise/${org_identifier}
method: DELETE
@@ -58,28 +61,28 @@ case_info:
cookies: ${cookies}
request_type: params
payload:
password: ${env_password}
password: 1111111222
files:
assert_response:
status_code: 200
assertMessage:
type_jsonpath: $.msg
expect_value: 操作成功
expect_value: 密码错误
assert_type: ==
assertCode:
type_jsonpath: $.code
expect_value: 200
expect_value: 500
assert_type: ==
assert_sql:
extract:
case_dependence:
setup:
interface:
# 新建组织,获取组织id
- gitlink_new_organization_01
# 开通组织工作台
- pms_open_enterprise_01
teardown:
setup:
interface:
# 新建组织,获取组织id
- gitlink_new_organization_01
# 开通组织工作台
- pms_open_enterprise_01
teardown:
interface:
# 删除组织
- gitlink_delete_organization_01
- gitlink_delete_organization_01
@@ -5,6 +5,7 @@ case_common:
case_markers:
- pms
- debug
- ok
- usefixtures: gitlink_login
# 前提条件:当前存在gitlink组织,组织未开通工作台
@@ -33,6 +34,7 @@ case_info:
userId: ${env_user_id}
roleKey: pms_org_admin
files:
wait_seconds: 6
assert_response:
status_code: 200
assertMessage: