46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
case_common:
|
||
allure_epic: 项目管理
|
||
allure_feature: 项目
|
||
allure_story: 项目
|
||
case_markers:
|
||
- pms
|
||
- pms_project
|
||
- usefixtures: gitlink_login
|
||
|
||
# 前提条件:当前存在组织, 组织下存在项目
|
||
|
||
common_dependence:
|
||
setup:
|
||
interface:
|
||
# 获取可选项目负责人列表
|
||
- pms_get_project_user_list_01
|
||
# 获取组织下成员,可选择作为项目成员
|
||
- pms_get_enterprise_user_list_01
|
||
# 新建项目
|
||
- pms_new_project_02
|
||
# 根据项目名称,获取项目id
|
||
- pms_get_project_list_by_name_02
|
||
|
||
case_info:
|
||
-
|
||
id: pms_delete_project_01
|
||
title: 组织下删除项目接口
|
||
run: True
|
||
severity: blocker
|
||
url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/${pms_project_id}
|
||
method: DELETE
|
||
headers:
|
||
Content-Type: application/json; charset=utf-8;
|
||
cookies: ${cookies}
|
||
request_type: json
|
||
payload:
|
||
files:
|
||
assert_response:
|
||
status_code: 200
|
||
assertMessage:
|
||
type_jsonpath: $.msg
|
||
expect_value: 操作成功
|
||
assert_type: ==
|
||
assert_sql:
|
||
extract:
|
||
case_dependence: |