From 6ab6321f32d11ebf5d65efa10065f37b62a7314c Mon Sep 17 00:00:00 2001 From: floraachy <1622042529@qq.com> Date: Mon, 4 Mar 2024 15:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0pms=E4=B8=80=E7=B3=BB?= =?UTF-8?q?=E5=88=97=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pipfile | 2 +- config/settings.py | 22 ++--- .../pms/docs/dir/test_pms_doc_delete_dir.yaml | 2 +- .../pms/docs/dir/test_pms_doc_edit_dir.yaml | 3 +- .../docs/dir/test_pms_doc_get_dir_detail.yaml | 2 +- .../docs/dir/test_pms_doc_get_dir_list.yaml | 2 +- .../pms/docs/dir/test_pms_doc_new_dir.yaml | 2 +- .../test_pms_doc_delete_document.yaml | 2 +- .../document/test_pms_doc_edit_document.yaml | 3 +- .../test_pms_doc_get_document_detail.yaml | 2 +- .../test_pms_doc_get_document_list.yaml | 2 +- .../document/test_pms_doc_new_document.yaml | 2 +- .../docs/file/test_pms_doc_delete_file.yaml | 2 +- .../file/test_pms_doc_get_file_detail.yaml | 2 +- .../docs/file/test_pms_doc_get_file_list.yaml | 2 +- .../docs/file/test_pms_doc_upload_file.yaml | 37 +++++++- .../docs/wiki/test_pms_doc_delete_wiki.yaml | 2 +- .../docs/wiki/test_pms_doc_export_wiki.yaml | 4 +- ...t_pms_doc_get_optional_wiki_repo_list.yaml | 7 +- .../wiki/test_pms_doc_get_wiki_detail.yaml | 2 +- .../docs/wiki/test_pms_doc_get_wiki_list.yaml | 2 +- .../test_get_module_detail.yaml | 4 +- .../test_pms_delete_product_module.yaml | 8 +- .../test_pms_edit_product_module.yaml | 12 +-- .../test_pms_get_product_module_list.yaml | 8 +- .../test_pms_new_product_module.yaml | 12 +-- .../test_get_product_plan_detail.yaml | 4 +- .../test_pms_delete_product_plan.yaml | 4 +- .../test_pms_edit_product_plan.yaml | 24 ++--- .../test_pms_get_product_plan_list.yaml | 6 +- .../test_pms_new_product_plan.yaml | 14 +-- .../test_pms_delete_product_requirement.yaml | 6 +- .../test_pms_edit_product_requirement.yaml | 15 ++-- ...test_pms_get_product_requirement_list.yaml | 10 +-- ...est_pms_get_product_requirement_plans.yaml | 4 +- .../test_pms_new_product_requirement.yaml | 15 ++-- ...ms_pms_batch_edit_product_requirement.yaml | 8 +- .../test_pms_add_journal.yaml | 6 +- .../test_pms_delete_journal.yaml | 6 +- .../test_pms_edit_journal.yaml | 6 +- .../test_pms_get_journal_list.yaml | 4 +- .../pms/products/test_get_product_detail.yaml | 7 +- .../test_get_product_user_list.yaml} | 23 +++-- .../pms/products/test_pms_delete_product.yaml | 6 +- .../pms/products/test_pms_edit_product.yaml | 20 ++--- .../products/test_pms_get_product_list.yaml | 10 +-- .../pms/products/test_pms_new_product.yaml | 20 ++--- .../test_pms_operate_top_product.yaml | 8 +- .../test_pms_get_project_repo_list.yaml | 4 +- ...st_pms_get_unlinked_project_repo_list.yaml | 8 +- ...get_sprint_link_unlink_work_item_list.yaml | 12 +-- .../sprint/test_pms_delete_sprint.yaml | 4 +- .../projects/sprint/test_pms_edit_sprint.yaml | 26 +++--- .../sprint/test_pms_get_sprint_detail.yaml | 2 +- .../sprint/test_pms_get_sprint_list.yaml | 4 +- .../projects/sprint/test_pms_new_sprint.yaml | 10 +-- .../sprint/test_pms_work_item_out_sprint.yaml | 6 +- .../sprint/test_pms_work_item_to_sprint.yaml | 6 +- .../test_get_project_member_list.yaml | 2 +- .../projects/test_get_project_user_list.yaml | 33 +++++++ .../test_delete_testcase_module.yaml | 6 +- .../test_edit_testcase_module.yaml | 14 +-- .../test_get_testcase_module_detail.yaml | 2 +- .../test_get_testcase_module_list.yaml | 10 +-- .../test_module/test_new_testcase_module.yaml | 10 +-- .../test_pms_sync_product_module.yaml | 4 +- .../pms/projects/test_pms_delete_project.yaml | 3 +- .../pms/projects/test_pms_edit_project.yaml | 21 ++--- .../projects/test_pms_get_project_list.yaml | 6 +- .../pms/projects/test_pms_new_project.yaml | 29 +++--- .../pms/projects/test_pms_top_project.yaml | 5 +- .../test_report/test_delete_test_report.yaml | 2 +- .../test_report/test_edit_test_report.yaml | 6 +- .../test_get_test_report_list.yaml | 4 +- .../test_report/test_new_test_report.yaml | 2 +- .../test_get_test_sheet_detail.yaml | 2 +- .../test_pms_delete_test_sheet.yaml | 4 +- .../test_sheet/test_pms_edit_test_sheet.yaml | 8 +- .../test_pms_get_test_sheet_list.yaml | 4 +- .../test_pms_get_test_sheet_module_list.yaml | 2 +- ...est_pms_get_test_sheet_testcases_list.yaml | 4 +- .../test_sheet/test_pms_new_test_sheet.yaml | 10 +-- .../test_pms_test_sheet_add_testcase.yaml | 4 +- .../test_pms_test_sheet_execute_testcase.yaml | 10 +-- .../test_pms_batch_edit_testcases.yaml | 2 +- .../testcases/test_pms_delete_testcases.yaml | 4 +- .../testcases/test_pms_edit_testcases.yaml | 14 +-- .../test_pms_get_testcase_type_list.yaml | 2 +- .../test_pms_get_testcases_detail.yaml | 2 +- .../test_pms_get_testcases_list.yaml | 2 +- .../testcases/test_pms_new_testcases.yaml | 15 ++-- .../bug/test_pms_batch_edit_project_bug.yaml | 4 +- .../bug/test_pms_delete_project_bug.yaml | 4 +- .../bug/test_pms_edit_project_bug.yaml | 8 +- ...test_pms_get_optional_parent_bug_list.yaml | 2 +- .../bug/test_pms_get_project_bug_detail.yaml | 2 +- .../bug/test_pms_get_project_bug_list.yaml | 4 +- .../bug/test_pms_new_project_bug.yaml | 13 ++- .../bug/test_pms_project_bug_add_journal.yaml | 8 +- .../test_pms_project_bug_delete_journal.yaml | 4 +- .../test_pms_project_bug_edit_journal.yaml | 4 +- ...st_pms_batch_edit_project_requirement.yaml | 4 +- .../test_pms_delete_project_requirement.yaml | 4 +- .../test_pms_edit_project_requirement.yaml | 8 +- ..._get_optional_parent_requirement_list.yaml | 2 +- ...st_pms_get_project_requirement_detail.yaml | 2 +- ...test_pms_get_project_requirement_list.yaml | 4 +- .../test_pms_new_project_requirement.yaml | 13 ++- ...t_pms_project_requirement_add_journal.yaml | 8 +- ...ms_project_requirement_delete_journal.yaml | 4 +- ..._pms_project_requirement_edit_journal.yaml | 4 +- .../test_pms_batch_edit_project_task.yaml | 4 +- .../task/test_pms_delete_project_task.yaml | 4 +- .../task/test_pms_edit_project_task.yaml | 8 +- ...est_pms_get_optional_parent_task_list.yaml | 2 +- .../test_pms_get_project_task_detail.yaml | 2 +- .../task/test_pms_get_project_task_list.yaml | 4 +- .../task/test_pms_new_project_task.yaml | 14 +-- .../test_pms_project_task_add_journal.yaml | 8 +- .../test_pms_project_task_delete_journal.yaml | 4 +- .../test_pms_project_task_edit_journal.yaml | 4 +- .../test_pms_project_upload_files.yaml | 2 +- .../test_pms_get_enterprise_repo_list.yaml | 6 +- .../pms/repository/test_pms_new_repo.yaml | 12 +-- .../settings/role/test_pms_delete_role.yaml | 40 +++++++++ .../pms/settings/role/test_pms_edit_role.yaml | 46 ++++++++++ .../settings/role/test_pms_get_menu_list.yaml | 33 +++++++ .../settings/role/test_pms_get_role_list.yaml | 34 +++++++ .../pms/settings/role/test_pms_new_role.yaml | 89 +++++++++++++++++++ ...t_pms_deletet_product_requirement_tag.yaml | 4 +- ...test_pms_edit_product_requirement_tag.yaml | 2 +- ..._pms_get_product_requirement_tag_list.yaml | 6 +- .../test_pms_new_product_requirement_tag.yaml | 4 +- .../testcase_tag/test_pms_deletet_tag.yaml | 6 +- .../testcase_tag/test_pms_edit_tag.yaml | 2 +- .../testcase_tag/test_pms_get_tag_list.yaml | 6 +- .../testcase_tag/test_pms_new_tag.yaml | 4 +- .../test_pms_delete_work_item_tag.yaml | 2 +- .../test_pms_edit_work_item_tag.yaml | 2 +- .../test_pms_get_work_item_tag_list.yaml | 6 +- .../test_pms_new_work_item_tag.yaml | 10 +-- .../test_pms_get_enterprise_user_list.yaml | 2 +- utils/requests_utils/request_control.py | 7 ++ 143 files changed, 741 insertions(+), 450 deletions(-) rename interface/pms/{projects/test_module/test_get_testcase_module.yaml => products/test_get_product_user_list.yaml} (52%) create mode 100644 interface/pms/projects/test_get_project_user_list.yaml create mode 100644 interface/pms/settings/role/test_pms_delete_role.yaml create mode 100644 interface/pms/settings/role/test_pms_edit_role.yaml create mode 100644 interface/pms/settings/role/test_pms_get_menu_list.yaml create mode 100644 interface/pms/settings/role/test_pms_get_role_list.yaml create mode 100644 interface/pms/settings/role/test_pms_new_role.yaml diff --git a/Pipfile b/Pipfile index e2ca3a7..80c2d0c 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,6 @@ name = "pypi" allure-pytest = "==2.9.45" click = "==8.1.7" faker = "==21.0.0" -jsonpath = "==0.82.2" loguru = "==0.7.2" openpyxl = "==3.1.2" pydantic = "==2.5.2" @@ -20,6 +19,7 @@ sshtunnel = "==0.4.0" xpinyin = "==0.7.6" yagmail = "==0.15.293" pytest-repeat = "==0.9.3" +jsonpath = "*" [dev-packages] diff --git a/config/settings.py b/config/settings.py index 2c50f99..d04c5a4 100644 --- a/config/settings.py +++ b/config/settings.py @@ -34,15 +34,15 @@ ENV_VARS = { "env_super_login": "floraachy", "env_super_password": "****floraachy_password_test****", # 运行时需要手动更改密码 # 测试仓库 env_repo_owner/env_repo_identifier - "env_repo_owner": "autotest", - "env_repo_identifier": "auotest", - "env_project_id": "59", + "env_repo_owner": "", + "env_repo_identifier": "", + "env_project_id": "", # pms相关环境变量 - "env_pms_product_id": "360", - "env_pms_product_identifier": "5E315F", - "env_pms_project_id": "205", - "env_enterprise_identifier": "prefecture", - "env_enterprise_id": "1", + "env_pms_product_id": "", + "env_pms_product_identifier": "", + "env_pms_project_id": "", + "env_enterprise_identifier": "", + "env_enterprise_id": "", "env_organization_id": 105, # 数据库配置 "db_info": { @@ -79,9 +79,9 @@ ENV_VARS = { "env_super_login": "floraachy", "env_super_password": "****floraachy-pre****", # 运行时需要手动更改密码 # 测试仓库 env_repo_owner/env_repo_identifier - "env_repo_owner": "floraachy", - "env_repo_identifier": "autotest", - "env_project_id": "161", + "env_repo_owner": "", + "env_repo_identifier": "", + "env_project_id": "", # pms相关环境变量 "env_pms_product_id": "", "env_pms_product_identifier": "", diff --git a/interface/pms/docs/dir/test_pms_doc_delete_dir.yaml b/interface/pms/docs/dir/test_pms_doc_delete_dir.yaml index 4e84145..a6598a8 100644 --- a/interface/pms/docs/dir/test_pms_doc_delete_dir.yaml +++ b/interface/pms/docs/dir/test_pms_doc_delete_dir.yaml @@ -13,7 +13,7 @@ case_info: title: 删除文件夹 run: True severity: blocker - url: ${pms_host}/api/pms/document/${dir_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${dir_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/dir/test_pms_doc_edit_dir.yaml b/interface/pms/docs/dir/test_pms_doc_edit_dir.yaml index f5c2194..b95e1fb 100644 --- a/interface/pms/docs/dir/test_pms_doc_edit_dir.yaml +++ b/interface/pms/docs/dir/test_pms_doc_edit_dir.yaml @@ -23,7 +23,7 @@ case_info: title: 编辑文件夹 run: True severity: blocker - url: ${pms_host}/api/pms/document + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -32,7 +32,6 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} pmsProjectId: 0 # 0表示不归属项目,是组件知识库 - parentId: 0 docType: 2 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 id: ${dir_id} name: ${generate_paragraph(nb=1)} diff --git a/interface/pms/docs/dir/test_pms_doc_get_dir_detail.yaml b/interface/pms/docs/dir/test_pms_doc_get_dir_detail.yaml index 4d21242..a749e93 100644 --- a/interface/pms/docs/dir/test_pms_doc_get_dir_detail.yaml +++ b/interface/pms/docs/dir/test_pms_doc_get_dir_detail.yaml @@ -22,7 +22,7 @@ case_info: title: 获取文件夹详情 run: True severity: blocker - url: ${pms_host}/api/pms/document/${dir_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${dir_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/dir/test_pms_doc_get_dir_list.yaml b/interface/pms/docs/dir/test_pms_doc_get_dir_list.yaml index 9919249..8a4f401 100644 --- a/interface/pms/docs/dir/test_pms_doc_get_dir_list.yaml +++ b/interface/pms/docs/dir/test_pms_doc_get_dir_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取文档列表 run: True severity: blocker - url: ${pms_host}/api/pms/document/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/dir/test_pms_doc_new_dir.yaml b/interface/pms/docs/dir/test_pms_doc_new_dir.yaml index f18faaf..61908ec 100644 --- a/interface/pms/docs/dir/test_pms_doc_new_dir.yaml +++ b/interface/pms/docs/dir/test_pms_doc_new_dir.yaml @@ -13,7 +13,7 @@ case_info: title: 新增文件夹 run: True severity: blocker - url: ${pms_host}/api/pms/document + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/document/test_pms_doc_delete_document.yaml b/interface/pms/docs/document/test_pms_doc_delete_document.yaml index fd33fa4..66c4023 100644 --- a/interface/pms/docs/document/test_pms_doc_delete_document.yaml +++ b/interface/pms/docs/document/test_pms_doc_delete_document.yaml @@ -13,7 +13,7 @@ case_info: title: 删除文档 run: True severity: blocker - url: ${pms_host}/api/pms/document/${doc_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${doc_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/document/test_pms_doc_edit_document.yaml b/interface/pms/docs/document/test_pms_doc_edit_document.yaml index 456fe21..cb8305e 100644 --- a/interface/pms/docs/document/test_pms_doc_edit_document.yaml +++ b/interface/pms/docs/document/test_pms_doc_edit_document.yaml @@ -22,7 +22,7 @@ case_info: title: 编辑文档 run: True severity: blocker - url: ${pms_host}/api/pms/document + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -31,7 +31,6 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} pmsProjectId: 0 # 0表示不归属项目,是组件知识库 - parentId: 0 docType: 2 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 id: ${doc_id} name: ${generate_paragraph(nb=1)} diff --git a/interface/pms/docs/document/test_pms_doc_get_document_detail.yaml b/interface/pms/docs/document/test_pms_doc_get_document_detail.yaml index 0f6f42b..f4f82ed 100644 --- a/interface/pms/docs/document/test_pms_doc_get_document_detail.yaml +++ b/interface/pms/docs/document/test_pms_doc_get_document_detail.yaml @@ -22,7 +22,7 @@ case_info: title: 获取文档详情 run: True severity: blocker - url: ${pms_host}/api/pms/document/${doc_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${doc_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/document/test_pms_doc_get_document_list.yaml b/interface/pms/docs/document/test_pms_doc_get_document_list.yaml index e3ee063..d693dff 100644 --- a/interface/pms/docs/document/test_pms_doc_get_document_list.yaml +++ b/interface/pms/docs/document/test_pms_doc_get_document_list.yaml @@ -12,7 +12,7 @@ case_info: title: 获取文档列表 run: True severity: blocker - url: ${pms_host}/api/pms/document/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/document/test_pms_doc_new_document.yaml b/interface/pms/docs/document/test_pms_doc_new_document.yaml index d69ccf1..f6cba5d 100644 --- a/interface/pms/docs/document/test_pms_doc_new_document.yaml +++ b/interface/pms/docs/document/test_pms_doc_new_document.yaml @@ -12,7 +12,7 @@ case_info: title: 新增文档 run: True severity: blocker - url: ${pms_host}/api/pms/document + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/file/test_pms_doc_delete_file.yaml b/interface/pms/docs/file/test_pms_doc_delete_file.yaml index 382d440..51e2244 100644 --- a/interface/pms/docs/file/test_pms_doc_delete_file.yaml +++ b/interface/pms/docs/file/test_pms_doc_delete_file.yaml @@ -13,7 +13,7 @@ case_info: title: 删除文件 run: True severity: blocker - url: ${pms_host}/api/pms/document/${file_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${file_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/file/test_pms_doc_get_file_detail.yaml b/interface/pms/docs/file/test_pms_doc_get_file_detail.yaml index c68265c..229b54a 100644 --- a/interface/pms/docs/file/test_pms_doc_get_file_detail.yaml +++ b/interface/pms/docs/file/test_pms_doc_get_file_detail.yaml @@ -23,7 +23,7 @@ case_info: title: 获取文件详情 run: True severity: blocker - url: ${pms_host}/api/pms/document/${file_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${file_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/file/test_pms_doc_get_file_list.yaml b/interface/pms/docs/file/test_pms_doc_get_file_list.yaml index b3ea374..4edced6 100644 --- a/interface/pms/docs/file/test_pms_doc_get_file_list.yaml +++ b/interface/pms/docs/file/test_pms_doc_get_file_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取文件列表 run: True severity: blocker - url: ${pms_host}/api/pms/document/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/file/test_pms_doc_upload_file.yaml b/interface/pms/docs/file/test_pms_doc_upload_file.yaml index 3d97692..3a2e519 100644 --- a/interface/pms/docs/file/test_pms_doc_upload_file.yaml +++ b/interface/pms/docs/file/test_pms_doc_upload_file.yaml @@ -13,7 +13,7 @@ case_info: title: 上传文件 run: True severity: blocker - url: ${pms_host}/api/pms/document/fileType + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/fileType method: POST headers: Content-Type: application/json; charset=utf-8; @@ -23,7 +23,7 @@ case_info: pmsEnterpriseId: ${env_enterprise_id} pmsProjectId: 0 # 0表示不归属项目,是组件知识库 parentId: 0 - docType: 3 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 + docType: 3 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 names: test_${generate_words}_${file_name} permission: ${random.choice([1,2,3])} # 权限 1-私有 2-全员读 3-全员读写 attachmentIdentifiers: ${file_identifier} @@ -42,4 +42,35 @@ case_info: teardown: interface: - pms_doc_get_file_list_01 - - pms_doc_delete_file_01 \ No newline at end of file + - pms_doc_delete_file_01 + + - id: pms_doc_upload_file_02 + title: 上传文件, 文件类型传递错误,上传失败 + run: True + severity: blocker + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/fileType + method: POST + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: json + payload: + pmsEnterpriseId: ${env_enterprise_id} + pmsProjectId: 0 # 0表示不归属项目,是组件知识库 + parentId: 0 + docType: 4 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 + names: test_${generate_words}_${file_name} + permission: ${random.choice([1,2,3])} # 权限 1-私有 2-全员读 3-全员读写 + attachmentIdentifiers: ${file_identifier} + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: 参数docType错误 + assert_type: == + assert_sql: + extract: + case_dependence: + setup: + interface: pms_upload_file_01 diff --git a/interface/pms/docs/wiki/test_pms_doc_delete_wiki.yaml b/interface/pms/docs/wiki/test_pms_doc_delete_wiki.yaml index 641d995..9c2164d 100644 --- a/interface/pms/docs/wiki/test_pms_doc_delete_wiki.yaml +++ b/interface/pms/docs/wiki/test_pms_doc_delete_wiki.yaml @@ -15,7 +15,7 @@ case_info: title: 删除wiki库 run: True severity: blocker - url: ${pms_host}/api/pms/document/${wiki_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${wiki_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/wiki/test_pms_doc_export_wiki.yaml b/interface/pms/docs/wiki/test_pms_doc_export_wiki.yaml index 656f595..0672c31 100644 --- a/interface/pms/docs/wiki/test_pms_doc_export_wiki.yaml +++ b/interface/pms/docs/wiki/test_pms_doc_export_wiki.yaml @@ -12,7 +12,7 @@ case_info: title: 导入wiki库 run: True severity: blocker - url: ${pms_host}/api/pms/document + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document method: POST headers: Content-Type: application/json; charset=utf-8; @@ -24,7 +24,7 @@ case_info: parentId: 0 docType: 4 # 文件类型 1-文档目录 2-文档 3-附件 4-wiki库 name: test_${optional_wiki_repo_name} - permission: 1 # 权限 1-私有 2-全员读 3-全员读写 + permission: 2 # 权限 1-私有 2-全员读 3-全员读写 wikiGitlinkRepoId: ${optional_wiki_repo_id} files: assert_response: diff --git a/interface/pms/docs/wiki/test_pms_doc_get_optional_wiki_repo_list.yaml b/interface/pms/docs/wiki/test_pms_doc_get_optional_wiki_repo_list.yaml index 452ab4e..e1b7326 100644 --- a/interface/pms/docs/wiki/test_pms_doc_get_optional_wiki_repo_list.yaml +++ b/interface/pms/docs/wiki/test_pms_doc_get_optional_wiki_repo_list.yaml @@ -1,7 +1,7 @@ case_common: allure_epic: 项目管理 allure_feature: 知识库 - allure_story: 文档 + allure_story: wiki库 case_markers: - pms - pms_docs @@ -13,14 +13,15 @@ case_info: title: 获取导入wiki库可选仓库列表 run: True severity: blocker - url: ${pms_host}/api/pms/document/optionalWikiRepoList?enterpriseId=1&page=1&limit=15 + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/optionalWikiRepoList method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - pmsEnterpriseId: ${env_enterprise_id} + enterpriseIdentifier : ${env_enterprise_identifier} + enterpriseId: ${env_enterprise_id} page: 1 limit: 15 files: diff --git a/interface/pms/docs/wiki/test_pms_doc_get_wiki_detail.yaml b/interface/pms/docs/wiki/test_pms_doc_get_wiki_detail.yaml index dd11ef3..9dd1fef 100644 --- a/interface/pms/docs/wiki/test_pms_doc_get_wiki_detail.yaml +++ b/interface/pms/docs/wiki/test_pms_doc_get_wiki_detail.yaml @@ -22,7 +22,7 @@ case_info: title: 获取wiki库详情 run: True severity: blocker - url: ${pms_host}/api/pms/document/${wiki_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/${wiki_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/docs/wiki/test_pms_doc_get_wiki_list.yaml b/interface/pms/docs/wiki/test_pms_doc_get_wiki_list.yaml index 06bef86..2c6e493 100644 --- a/interface/pms/docs/wiki/test_pms_doc_get_wiki_list.yaml +++ b/interface/pms/docs/wiki/test_pms_doc_get_wiki_list.yaml @@ -12,7 +12,7 @@ case_info: title: 获取wiki库列表 run: True severity: blocker - url: ${pms_host}/api/pms/document/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/document/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_module/test_get_module_detail.yaml b/interface/pms/products/product_module/test_get_module_detail.yaml index 650b076..4c62960 100644 --- a/interface/pms/products/product_module/test_get_module_detail.yaml +++ b/interface/pms/products/product_module/test_get_module_detail.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品模块 case_markers: - pms - - product + - pms_product - product_module - usefixtures: gitlink_login @@ -15,7 +15,7 @@ case_info: title: 产品下获取产品模块详细信息接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductModule/${product_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/${product_module_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_module/test_pms_delete_product_module.yaml b/interface/pms/products/product_module/test_pms_delete_product_module.yaml index 7c0b5e5..2474a49 100644 --- a/interface/pms/products/product_module/test_pms_delete_product_module.yaml +++ b/interface/pms/products/product_module/test_pms_delete_product_module.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品模块 case_markers: - pms - - product + - pms_product - product_module - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 产品下删除模块接口 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule/${product_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/${product_module_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -40,7 +40,7 @@ case_info: title: 产品下删除子级模块接口 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule/${product_module_children_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/${product_module_children_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -67,7 +67,7 @@ case_info: title: 产品下删除模块接口 - 存在子级模块,删除失败 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductModule/${product_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/${product_module_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_module/test_pms_edit_product_module.yaml b/interface/pms/products/product_module/test_pms_edit_product_module.yaml index c5ff723..1f899d0 100644 --- a/interface/pms/products/product_module/test_pms_edit_product_module.yaml +++ b/interface/pms/products/product_module/test_pms_edit_product_module.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品模块 case_markers: - pms - - product + - pms_product - product_module - usefixtures: gitlink_login @@ -21,7 +21,7 @@ case_info: title: 产品下编辑模块接口 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -48,7 +48,7 @@ case_info: title: 产品下编辑子级模块接口 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -77,7 +77,7 @@ case_info: title: 产品下编辑子级模块接口 - 模块名称长度31,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -104,7 +104,7 @@ case_info: title: 产品下编辑子级模块接口 - 模块名称为空,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -131,7 +131,7 @@ case_info: title: 产品下编辑子级模块接口 - 模块名称重复,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_module/test_pms_get_product_module_list.yaml b/interface/pms/products/product_module/test_pms_get_product_module_list.yaml index 15d6057..479eda4 100644 --- a/interface/pms/products/product_module/test_pms_get_product_module_list.yaml +++ b/interface/pms/products/product_module/test_pms_get_product_module_list.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品模块 case_markers: - pms - - product + - pms_product - product_module - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 获取产品下的模块接口(树状) run: True severity: critical - url: ${pms_host}/api/pms/pmsProductModule/treeList + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/treeList method: GET headers: Content-Type: application/json; charset=utf-8; @@ -40,7 +40,7 @@ case_info: title: 获取产品下的模块接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductModule/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -67,7 +67,7 @@ case_info: title: 获取产品下的模块接口 - 提取第一个模块id run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_module/test_pms_new_product_module.yaml b/interface/pms/products/product_module/test_pms_new_product_module.yaml index 9adcd65..9a4d61e 100644 --- a/interface/pms/products/product_module/test_pms_new_product_module.yaml +++ b/interface/pms/products/product_module/test_pms_new_product_module.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品模块 case_markers: - pms - - product + - pms_product - product_module - usefixtures: gitlink_login @@ -15,7 +15,7 @@ case_info: title: 产品下新建模块接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -46,7 +46,7 @@ case_info: title: 产品下新建子级模块接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -80,7 +80,7 @@ case_info: title: 产品下新建模块接口 - 模块名称长度31,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -106,7 +106,7 @@ case_info: title: 产品下新建模块接口 - 模块名称为空,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -133,7 +133,7 @@ case_info: title: 产品下新建模块接口 - 模块名称重复,新建失败 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductModule method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_plan/test_get_product_plan_detail.yaml b/interface/pms/products/product_plan/test_get_product_plan_detail.yaml index dbaf5b9..73b1151 100644 --- a/interface/pms/products/product_plan/test_get_product_plan_detail.yaml +++ b/interface/pms/products/product_plan/test_get_product_plan_detail.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品计划 case_markers: - pms - - product + - pms_product - product_plan - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 产品下获取产品计划详细信息接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan/${product_plan_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan/${product_plan_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_plan/test_pms_delete_product_plan.yaml b/interface/pms/products/product_plan/test_pms_delete_product_plan.yaml index ff4ffc5..fe5c280 100644 --- a/interface/pms/products/product_plan/test_pms_delete_product_plan.yaml +++ b/interface/pms/products/product_plan/test_pms_delete_product_plan.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品计划 case_markers: - pms - - product + - pms_product - product_plan - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 产品下删除计划接口 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductPlan/${product_plan_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan/${product_plan_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_plan/test_pms_edit_product_plan.yaml b/interface/pms/products/product_plan/test_pms_edit_product_plan.yaml index 4a89c40..5ebcfd6 100644 --- a/interface/pms/products/product_plan/test_pms_edit_product_plan.yaml +++ b/interface/pms/products/product_plan/test_pms_edit_product_plan.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品计划 case_markers: - pms - - product + - pms_product - product_plan - usefixtures: gitlink_login @@ -19,7 +19,7 @@ case_info: title: 产品下编辑计划接口 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -48,7 +48,7 @@ case_info: title: 产品下编辑计划接口 - 计划标题51, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -70,8 +70,6 @@ case_info: assert_type: == assert_sql: extract: - type_jsonpath: - product_plan_id: $.data case_dependence: @@ -80,7 +78,7 @@ case_info: title: 产品下编辑计划接口 - 计划标题为空, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -102,8 +100,6 @@ case_info: assert_type: == assert_sql: extract: - type_jsonpath: - product_plan_id: $.data case_dependence: - @@ -111,7 +107,7 @@ case_info: title: 产品下编辑计划接口 - 计划描述长度201, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -133,8 +129,6 @@ case_info: assert_type: == assert_sql: extract: - type_jsonpath: - product_plan_id: $.data case_dependence: - @@ -142,7 +136,7 @@ case_info: title: 产品下编辑计划接口 - 计划描述为空, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -164,8 +158,6 @@ case_info: assert_type: == assert_sql: extract: - type_jsonpath: - product_plan_id: $.data case_dependence: @@ -174,7 +166,7 @@ case_info: title: 产品下编辑计划接口 - 结束时间早于开始时间, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -196,6 +188,4 @@ case_info: assert_type: == assert_sql: extract: - type_jsonpath: - product_plan_id: $.data case_dependence: diff --git a/interface/pms/products/product_plan/test_pms_get_product_plan_list.yaml b/interface/pms/products/product_plan/test_pms_get_product_plan_list.yaml index ea4ac90..9dde4a6 100644 --- a/interface/pms/products/product_plan/test_pms_get_product_plan_list.yaml +++ b/interface/pms/products/product_plan/test_pms_get_product_plan_list.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品计划 case_markers: - pms - - product + - pms_product - product_plan - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 获取产品下的计划接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductPlan/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -42,7 +42,7 @@ case_info: title: 获取产品下的计划接口 - 通过计划名称关键字搜索 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductPlan/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_plan/test_pms_new_product_plan.yaml b/interface/pms/products/product_plan/test_pms_new_product_plan.yaml index 71c5c3f..a64cefd 100644 --- a/interface/pms/products/product_plan/test_pms_new_product_plan.yaml +++ b/interface/pms/products/product_plan/test_pms_new_product_plan.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品计划 case_markers: - pms - - product + - pms_product - product_plan - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 产品下新建计划接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; @@ -48,7 +48,7 @@ case_info: title: 产品下新建计划接口 - 计划标题51, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; @@ -80,7 +80,7 @@ case_info: title: 产品下新建计划接口 - 计划标题为空, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; @@ -111,7 +111,7 @@ case_info: title: 产品下新建计划接口 - 计划描述长度201, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; @@ -142,7 +142,7 @@ case_info: title: 产品下新建计划接口 - 计划描述为空, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; @@ -174,7 +174,7 @@ case_info: title: 产品下新建计划接口 - 结束时间早于开始时间, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductPlan + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_delete_product_requirement.yaml b/interface/pms/products/product_requirement/test_pms_delete_product_requirement.yaml index d567ebe..19a1beb 100644 --- a/interface/pms/products/product_requirement/test_pms_delete_product_requirement.yaml +++ b/interface/pms/products/product_requirement/test_pms_delete_product_requirement.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login @@ -15,7 +15,7 @@ case_info: title: 产品下删除需求接口 - 单个需求,删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement/${product_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/${product_requirement_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -41,7 +41,7 @@ case_info: title: 产品下删除需求接口 - 多个需求,删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement/${list_to_str(${product_requirement_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/${list_to_str(${product_requirement_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_edit_product_requirement.yaml b/interface/pms/products/product_requirement/test_pms_edit_product_requirement.yaml index 46c6053..4840679 100644 --- a/interface/pms/products/product_requirement/test_pms_edit_product_requirement.yaml +++ b/interface/pms/products/product_requirement/test_pms_edit_product_requirement.yaml @@ -4,13 +4,14 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login common_dependence: setup: interface: + - pms_get_project_user_list_01 - pms_get_enterprise_user_list_01 - pms_new_product_requirement_tag_01 - pms_get_product_requirement_tag_list_by_name_02 @@ -31,7 +32,7 @@ case_info: title: 产品下编辑需求接口 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -71,7 +72,7 @@ case_info: title: 产品下编辑需求接口 - 仅更新需求名称,更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -96,7 +97,7 @@ case_info: title: 产品需求移入计划 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -129,7 +130,7 @@ case_info: title: 产品下编辑需求接口 - 模块传-1, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -168,7 +169,7 @@ case_info: title: 产品下编辑需求接口 - 需求名称长度201,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -207,7 +208,7 @@ case_info: title: 产品下编辑需求接口 - 需求名称为空,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_get_product_requirement_list.yaml b/interface/pms/products/product_requirement/test_pms_get_product_requirement_list.yaml index 36da92c..2489899 100644 --- a/interface/pms/products/product_requirement/test_pms_get_product_requirement_list.yaml +++ b/interface/pms/products/product_requirement/test_pms_get_product_requirement_list.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 获取产品下全部模块需求列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductRequirement/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -42,7 +42,7 @@ case_info: title: 获取产品下全部模块需求列表的第一条数据 run: false severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -75,7 +75,7 @@ case_info: title: 获取产品下全部模块需求列表 - 通过需求名称关键字搜索 run: false severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -105,7 +105,7 @@ case_info: title: 获取产品下全部模块需求列表 - 通过计划获取 run: false severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_get_product_requirement_plans.yaml b/interface/pms/products/product_requirement/test_pms_get_product_requirement_plans.yaml index 9602428..b69e2cc 100644 --- a/interface/pms/products/product_requirement/test_pms_get_product_requirement_plans.yaml +++ b/interface/pms/products/product_requirement/test_pms_get_product_requirement_plans.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 获取产品需求下可选计划列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProductPlan/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductPlan/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_new_product_requirement.yaml b/interface/pms/products/product_requirement/test_pms_new_product_requirement.yaml index bb1bc95..0a87c5e 100644 --- a/interface/pms/products/product_requirement/test_pms_new_product_requirement.yaml +++ b/interface/pms/products/product_requirement/test_pms_new_product_requirement.yaml @@ -4,13 +4,14 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login common_dependence: setup: interface: + - pms_get_project_user_list_01 - pms_get_enterprise_user_list_01 - pms_new_product_module_01 - pms_new_product_plan_01 @@ -25,7 +26,7 @@ case_info: title: 产品下新建需求接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -65,7 +66,7 @@ case_info: title: 产品下新建需求接口 - 仅传必填参数,新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -94,7 +95,7 @@ case_info: title: 产品下新建需求接口 - 模块传-1, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -122,7 +123,7 @@ case_info: title: 产品下新建需求接口 - 需求名称长度201,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -149,7 +150,7 @@ case_info: title: 产品下新建需求接口 - 需求名称为空,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; @@ -175,7 +176,7 @@ case_info: title: 产品下新建需求接口 - 所选项目未关联产品,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirement + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement/test_pms_pms_batch_edit_product_requirement.yaml b/interface/pms/products/product_requirement/test_pms_pms_batch_edit_product_requirement.yaml index 03c10c7..d8c691b 100644 --- a/interface/pms/products/product_requirement/test_pms_pms_batch_edit_product_requirement.yaml +++ b/interface/pms/products/product_requirement/test_pms_pms_batch_edit_product_requirement.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求 case_markers: - pms - - product + - pms_product - product_requirement - usefixtures: gitlink_login @@ -14,7 +14,7 @@ case_info: title: 批量更新产品需求接口 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProductRequirement/batch + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirement/batch method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -28,7 +28,7 @@ case_info: pmsProductModuleId: ${module_id} statusId: ${random.choice([6, 7, 8, 9, 10])} pmsProductPlanId: ${product_plan_id} - tags: ${random.choice(${product_requirement_tag_ids})} + tags: ${product_requirement_tag_id} files: assert_response: status_code: 200 @@ -43,7 +43,7 @@ case_info: interface: - pms_get_product_module_list_03 - pms_get_enterprise_user_list_01 - - pms_get_product_requirement_tag_list_01 + - pms_get_product_requirement_tag_list_by_name_02 - pms_upload_file_01 - pms_new_product_requirement_02 - pms_new_product_plan_01 \ No newline at end of file diff --git a/interface/pms/products/product_requirement_journal/test_pms_add_journal.yaml b/interface/pms/products/product_requirement_journal/test_pms_add_journal.yaml index 56d6b49..cb6d6ee 100644 --- a/interface/pms/products/product_requirement_journal/test_pms_add_journal.yaml +++ b/interface/pms/products/product_requirement_journal/test_pms_add_journal.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求评论 case_markers: - pms - - product + - pms_product - product_requirement - journal - usefixtures: gitlink_login @@ -20,7 +20,7 @@ case_info: title: 产品需求下添加评论 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals method: POST headers: Content-Type: application/json; charset=utf-8; @@ -49,7 +49,7 @@ case_info: title: 产品需求下的评论添加回复 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement_journal/test_pms_delete_journal.yaml b/interface/pms/products/product_requirement_journal/test_pms_delete_journal.yaml index c85c2c6..9c3d1dc 100644 --- a/interface/pms/products/product_requirement_journal/test_pms_delete_journal.yaml +++ b/interface/pms/products/product_requirement_journal/test_pms_delete_journal.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求评论 case_markers: - pms - - product + - pms_product - product_requirement - journal - usefixtures: gitlink_login @@ -20,7 +20,7 @@ case_info: title: 产品需求下删除评论 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals/${${journal_ids}[0] if isinstance(${journal_ids}, list) else ${journal_ids}} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals/${${journal_ids}[0] if isinstance(${journal_ids}, list) else ${journal_ids}} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -47,7 +47,7 @@ case_info: title: 产品需求下删除回复 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals/${${children_journal_ids}[0] if isinstance(${children_journal_ids}, list) else ${children_journal_ids}} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals/${${children_journal_ids}[0] if isinstance(${children_journal_ids}, list) else ${children_journal_ids}} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement_journal/test_pms_edit_journal.yaml b/interface/pms/products/product_requirement_journal/test_pms_edit_journal.yaml index 814f267..c609fda 100644 --- a/interface/pms/products/product_requirement_journal/test_pms_edit_journal.yaml +++ b/interface/pms/products/product_requirement_journal/test_pms_edit_journal.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求评论 case_markers: - pms - - product + - pms_product - product_requirement - journal - usefixtures: gitlink_login @@ -20,7 +20,7 @@ case_info: title: 产品需求下修改评论 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 产品需求下修改回复 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/product_requirement_journal/test_pms_get_journal_list.yaml b/interface/pms/products/product_requirement_journal/test_pms_get_journal_list.yaml index 25f7186..5772a39 100644 --- a/interface/pms/products/product_requirement_journal/test_pms_get_journal_list.yaml +++ b/interface/pms/products/product_requirement_journal/test_pms_get_journal_list.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品需求评论 case_markers: - pms - - product + - pms_product - product_requirement - journal - usefixtures: gitlink_login @@ -15,7 +15,7 @@ case_info: title: 获取产品需求下评论列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsJournals/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsJournals/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/test_get_product_detail.yaml b/interface/pms/products/test_get_product_detail.yaml index f17c005..5dba218 100644 --- a/interface/pms/products/test_get_product_detail.yaml +++ b/interface/pms/products/test_get_product_detail.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - usefixtures: gitlink_login case_info: @@ -13,16 +13,13 @@ case_info: title: 通过产品标识获取产品详细信息 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct/ByIdentifier/${env_pms_product_identifier} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/${env_pms_product_identifier} method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - pageSize: 20 - pageNum: 1 - pmsEnterpriseIdentifier: prefecture files: assert_response: status_code: 200 diff --git a/interface/pms/projects/test_module/test_get_testcase_module.yaml b/interface/pms/products/test_get_product_user_list.yaml similarity index 52% rename from interface/pms/projects/test_module/test_get_testcase_module.yaml rename to interface/pms/products/test_get_product_user_list.yaml index 307b9fc..13dd2ad 100644 --- a/interface/pms/projects/test_module/test_get_testcase_module.yaml +++ b/interface/pms/products/test_get_product_user_list.yaml @@ -1,27 +1,25 @@ case_common: allure_epic: 项目管理 - allure_feature: 项目 - allure_story: 测试用例模块 + allure_feature: 产品 + allure_story: 产品 case_markers: - pms - - pms_project - - project_test_module + - pms_product - usefixtures: gitlink_login case_info: - - id: pms_get_testcase_module_01 - title: 获取测试用例模块列表接口 - run: true - severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/list + id: pms_get_product_user_list_01 + title: 获取产品负责人可选列表接口 + run: True + severity: critical + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/userList method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} - request_type: json + request_type: params payload: - pmsProjectId: ${env_pms_project_id} files: assert_response: status_code: 200 @@ -32,5 +30,4 @@ case_info: assert_sql: extract: type_jsonpath: - testcase_module_ids: $.rows[*].id - case_dependence: \ No newline at end of file + product_user: $.rows[0].gitlinkUserId \ No newline at end of file diff --git a/interface/pms/products/test_pms_delete_product.yaml b/interface/pms/products/test_pms_delete_product.yaml index 9fbc167..ad6f144 100644 --- a/interface/pms/products/test_pms_delete_product.yaml +++ b/interface/pms/products/test_pms_delete_product.yaml @@ -4,13 +4,13 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - usefixtures: gitlink_login common_dependence: setup: interface: - - pms_get_enterprise_user_list_01 + - pms_get_product_user_list_01 case_info: - @@ -18,7 +18,7 @@ case_info: title: 企业下删除产品接口 - 单个产品,删除成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProduct/ByIdentifier/${pms_product_identifier} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/${pms_product_identifier} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/products/test_pms_edit_product.yaml b/interface/pms/products/test_pms_edit_product.yaml index a2e1b15..7782ee4 100644 --- a/interface/pms/products/test_pms_edit_product.yaml +++ b/interface/pms/products/test_pms_edit_product.yaml @@ -4,13 +4,13 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - usefixtures: gitlink_login common_dependence: setup: interface: - - pms_get_enterprise_user_list_01 + - pms_get_product_user_list_01 case_info: - @@ -18,7 +18,7 @@ case_info: title: 企业下编辑产品接口 - 更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -27,7 +27,7 @@ case_info: payload: productIdentifier: ${pms_product_identifier} productName: ${generate_company_name(lan='zh', fix='pre')}_${generate_words()} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: @@ -49,7 +49,7 @@ case_info: title: 企业下编辑产品接口 - 产品名称长度51,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -58,7 +58,7 @@ case_info: payload: productIdentifier: ${env_pms_product_identifier} productName: ${faker.pystr(max_chars=51)} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: @@ -76,7 +76,7 @@ case_info: title: 企业下编辑产品接口 - 产品描述长度201,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -85,7 +85,7 @@ case_info: payload: productIdentifier: ${env_pms_product_identifier} productName: 新产品_${generate_company_name(lan='zh', fix='pre')}_${generate_words} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${faker.pystr(max_chars=201)} files: assert_response: @@ -103,7 +103,7 @@ case_info: title: 企业下编辑产品接口 - 产品名称重复,更新失败 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -112,7 +112,7 @@ case_info: payload: productIdentifier: ${pms_product_identifier} productName: ${env_pms_product_name} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: diff --git a/interface/pms/products/test_pms_get_product_list.yaml b/interface/pms/products/test_pms_get_product_list.yaml index e5c0d71..f73f340 100644 --- a/interface/pms/products/test_pms_get_product_list.yaml +++ b/interface/pms/products/test_pms_get_product_list.yaml @@ -4,7 +4,7 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - usefixtures: gitlink_login case_info: @@ -13,7 +13,7 @@ case_info: title: 获取企业下产品列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -22,7 +22,7 @@ case_info: payload: pageSize: 20 pageNum: 1 - pmsEnterpriseIdentifier: prefecture + pmsEnterpriseIdentifier: ${env_enterprise_identifier} files: assert_response: status_code: 200 @@ -40,7 +40,7 @@ case_info: title: 获取企业下产品列表接口 - 根据产品关键字搜索产品 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -49,7 +49,7 @@ case_info: payload: pageSize: 20 pageNum: 1 - pmsEnterpriseIdentifier: prefecture + pmsEnterpriseIdentifier: ${env_enterprise_identifier} productName: 新产品 files: assert_response: diff --git a/interface/pms/products/test_pms_new_product.yaml b/interface/pms/products/test_pms_new_product.yaml index 911d079..04d2e51 100644 --- a/interface/pms/products/test_pms_new_product.yaml +++ b/interface/pms/products/test_pms_new_product.yaml @@ -4,14 +4,14 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - repeat(1) - usefixtures: gitlink_login common_dependence: setup: interface: - - pms_get_enterprise_user_list_01 + - pms_get_product_user_list_01 case_info: - @@ -19,7 +19,7 @@ case_info: title: 企业下新建产品接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: POST headers: Content-Type: application/json; charset=utf-8; @@ -28,7 +28,7 @@ case_info: payload: pmsEnterpriseIdentifier: ${env_enterprise_identifier} productName: 新产品_${generate_company_name(lan='zh', fix='pre')}_${generate_words} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: @@ -51,7 +51,7 @@ case_info: title: 企业下新建产品接口 - 产品名称长度51,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: POST headers: Content-Type: application/json; charset=utf-8; @@ -60,7 +60,7 @@ case_info: payload: pmsEnterpriseIdentifier: ${env_enterprise_identifier} productName: ${faker.pystr(max_chars=51)} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: @@ -79,7 +79,7 @@ case_info: title: 企业下新建产品接口 - 产品描述长度201,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: POST headers: Content-Type: application/json; charset=utf-8; @@ -88,7 +88,7 @@ case_info: payload: pmsEnterpriseIdentifier: ${env_enterprise_identifier} productName: 新产品_${generate_company_name(lan='zh', fix='pre')}_${generate_words} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${faker.pystr(max_chars=201)} files: assert_response: @@ -107,7 +107,7 @@ case_info: title: 企业下新建产品接口 - 产品名称重复,新建失败 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct method: POST headers: Content-Type: application/json; charset=utf-8; @@ -116,7 +116,7 @@ case_info: payload: pmsEnterpriseIdentifier: ${env_enterprise_identifier} productName: ${env_pms_product_name} - productAssigneeGitlinkId: ${random.choice(${assignee_ids})} + productAssigneeGitlinkIds: ${product_user} productDescription: ${generate_paragraph} files: assert_response: diff --git a/interface/pms/products/test_pms_operate_top_product.yaml b/interface/pms/products/test_pms_operate_top_product.yaml index 121ccda..ed8ce2a 100644 --- a/interface/pms/products/test_pms_operate_top_product.yaml +++ b/interface/pms/products/test_pms_operate_top_product.yaml @@ -4,20 +4,20 @@ case_common: allure_story: 产品 case_markers: - pms - - product + - pms_product - usefixtures: gitlink_login common_dependence: setup: interface: - - pms_get_enterprise_user_list_01 + - pms_get_product_user_list_01 case_info: - id: pms_operate_top_product_01 title: 企业下置顶产品接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct/operateTop/${pms_product_identifier} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/operateTop/${pms_product_identifier} method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -46,7 +46,7 @@ case_info: title: 企业下取消置顶产品接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProduct/operateTop/${pms_product_identifier} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProduct/operateTop/${pms_product_identifier} method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/repository/test_pms_get_project_repo_list.yaml b/interface/pms/projects/repository/test_pms_get_project_repo_list.yaml index 11d6ae4..b7c2165 100644 --- a/interface/pms/projects/repository/test_pms_get_project_repo_list.yaml +++ b/interface/pms/projects/repository/test_pms_get_project_repo_list.yaml @@ -14,7 +14,7 @@ case_info: title: 获取项目内所有代码库列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectRepository/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectRepository/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 获取项目内所有代码库列表 - 通过代码库名称关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectRepository/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectRepository/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/repository/test_pms_get_unlinked_project_repo_list.yaml b/interface/pms/projects/repository/test_pms_get_unlinked_project_repo_list.yaml index 532692e..805f6b4 100644 --- a/interface/pms/projects/repository/test_pms_get_unlinked_project_repo_list.yaml +++ b/interface/pms/projects/repository/test_pms_get_unlinked_project_repo_list.yaml @@ -14,7 +14,7 @@ case_info: title: 获取未被项目关联的仓库列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectRepository/list/unlinked + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectRepository/list/unlinked method: GET headers: Content-Type: application/json; charset=utf-8; @@ -22,8 +22,8 @@ case_info: request_type: params payload: enterpriseIdentifier: ${env_enterprise_identifier} -# page: 1 -# limit: 20 + page: 1 + limit: 20 # sortBy: updated_on # search: files: @@ -45,7 +45,7 @@ case_info: title: 获取项目内所有代码库列表 - 通过代码库名称关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectRepository/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectRepository/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_get_sprint_link_unlink_work_item_list.yaml b/interface/pms/projects/sprint/test_get_sprint_link_unlink_work_item_list.yaml index c41bf40..3ae52f3 100644 --- a/interface/pms/projects/sprint/test_get_sprint_link_unlink_work_item_list.yaml +++ b/interface/pms/projects/sprint/test_get_sprint_link_unlink_work_item_list.yaml @@ -13,7 +13,7 @@ case_info: title: 查询与项目迭代未关联需求列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; @@ -52,7 +52,7 @@ case_info: title: 查询与项目迭代已关联需求列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; @@ -91,7 +91,7 @@ case_info: title: 查询与项目迭代未关联任务列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; @@ -130,7 +130,7 @@ case_info: title: 查询与项目迭代已关联任务列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; @@ -169,7 +169,7 @@ case_info: title: 查询与项目迭代未关联缺陷列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; @@ -208,7 +208,7 @@ case_info: title: 查询与项目迭代已关联缺陷列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/issues + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/issues method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_delete_sprint.yaml b/interface/pms/projects/sprint/test_pms_delete_sprint.yaml index a330b3c..6735aca 100644 --- a/interface/pms/projects/sprint/test_pms_delete_sprint.yaml +++ b/interface/pms/projects/sprint/test_pms_delete_sprint.yaml @@ -19,7 +19,7 @@ case_info: title: 项目下删除迭代接口 - 单个迭代,删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint/${project_sprint_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/${project_sprint_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -44,7 +44,7 @@ case_info: title: 项目下删除迭代接口 - 多个迭代,删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint/${list_to_str(${project_sprint_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/${list_to_str(${project_sprint_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_edit_sprint.yaml b/interface/pms/projects/sprint/test_pms_edit_sprint.yaml index 08de68a..fc60009 100644 --- a/interface/pms/projects/sprint/test_pms_edit_sprint.yaml +++ b/interface/pms/projects/sprint/test_pms_edit_sprint.yaml @@ -19,7 +19,7 @@ case_info: title: 项目下编辑迭代接口 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -54,7 +54,7 @@ case_info: title: 项目下编辑迭代接口 - 未开始迭代 --> 开始迭代 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -86,7 +86,7 @@ case_info: title: 项目下编辑迭代接口 - 进行中迭代 --> 完成迭代 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -119,7 +119,7 @@ case_info: title: 项目下编辑迭代接口 - 已关闭迭代 --> 重开迭代 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -151,10 +151,10 @@ case_info: - id: pms_new_sprint_05 - title: 项目下新建迭代接口 - 迭代名称长度101, 新建失败 + title: 项目下编辑迭代接口 - 迭代名称长度101, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -187,10 +187,10 @@ case_info: - id: pms_new_sprint_06 - title: 项目下新建迭代接口 - 迭代名称长度为空, 新建失败 + title: 项目下编辑迭代接口 - 迭代名称长度为空, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -222,10 +222,10 @@ case_info: interface: pms_delete_sprint_01 - id: pms_new_sprint_07 - title: 项目下新建迭代接口 - 迭代描述长度201, 新建失败 + title: 项目下编辑迭代接口 - 迭代描述长度201, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -258,10 +258,10 @@ case_info: - id: pms_new_sprint_08 - title: 项目下新建迭代接口 - 截止时间早于开始时间, 新建失败 + title: 项目下编辑迭代接口 - 截止时间早于开始时间, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -280,7 +280,7 @@ case_info: status_code: 200 assertMessage: type_jsonpath: $.msg - expect_value: 结束时间需晚于开始时间 + expect_value: 结束时间不能早于开始时间 assert_type: == assert_sql: extract: diff --git a/interface/pms/projects/sprint/test_pms_get_sprint_detail.yaml b/interface/pms/projects/sprint/test_pms_get_sprint_detail.yaml index d68ca9e..407b6be 100644 --- a/interface/pms/projects/sprint/test_pms_get_sprint_detail.yaml +++ b/interface/pms/projects/sprint/test_pms_get_sprint_detail.yaml @@ -13,7 +13,7 @@ case_info: title: 项目下获取迭代详情接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectSprint/${project_sprint_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/${project_sprint_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_get_sprint_list.yaml b/interface/pms/projects/sprint/test_pms_get_sprint_list.yaml index 869a00c..95c3b66 100644 --- a/interface/pms/projects/sprint/test_pms_get_sprint_list.yaml +++ b/interface/pms/projects/sprint/test_pms_get_sprint_list.yaml @@ -13,7 +13,7 @@ case_info: title: 项目下获取迭代列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectSprint/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -38,7 +38,7 @@ case_info: title: 项目下获取迭代列表接口 - 通过迭代名称关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_new_sprint.yaml b/interface/pms/projects/sprint/test_pms_new_sprint.yaml index 91ada07..c567c0f 100644 --- a/interface/pms/projects/sprint/test_pms_new_sprint.yaml +++ b/interface/pms/projects/sprint/test_pms_new_sprint.yaml @@ -19,7 +19,7 @@ case_info: title: 项目下新建迭代接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: POST headers: Content-Type: application/json; charset=utf-8; @@ -47,7 +47,7 @@ case_info: title: 项目下新建迭代接口 - 迭代名称长度101, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: POST headers: Content-Type: application/json; charset=utf-8; @@ -76,7 +76,7 @@ case_info: title: 项目下新建迭代接口 - 迭代名称长度为空, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: POST headers: Content-Type: application/json; charset=utf-8; @@ -104,7 +104,7 @@ case_info: title: 项目下新建迭代接口 - 迭代描述长度201, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: POST headers: Content-Type: application/json; charset=utf-8; @@ -133,7 +133,7 @@ case_info: title: 项目下新建迭代接口 - 截止时间早于开始时间, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectSprint + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectSprint method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_work_item_out_sprint.yaml b/interface/pms/projects/sprint/test_pms_work_item_out_sprint.yaml index bf7f7a3..d74d06d 100644 --- a/interface/pms/projects/sprint/test_pms_work_item_out_sprint.yaml +++ b/interface/pms/projects/sprint/test_pms_work_item_out_sprint.yaml @@ -19,7 +19,7 @@ case_info: title: 规划迭代 - 需求移出迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${linked_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${linked_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -48,7 +48,7 @@ case_info: title: 规划迭代 - 任务移出迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${linked_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${linked_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -77,7 +77,7 @@ case_info: title: 规划迭代 - 缺陷移出迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${linked_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${linked_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/sprint/test_pms_work_item_to_sprint.yaml b/interface/pms/projects/sprint/test_pms_work_item_to_sprint.yaml index 3ff459f..3f702b2 100644 --- a/interface/pms/projects/sprint/test_pms_work_item_to_sprint.yaml +++ b/interface/pms/projects/sprint/test_pms_work_item_to_sprint.yaml @@ -19,7 +19,7 @@ case_info: title: 规划迭代 - 需求移入迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${unlink_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${unlink_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -46,7 +46,7 @@ case_info: title: 规划迭代 - 任务移入迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${unlink_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${unlink_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -74,7 +74,7 @@ case_info: title: 规划迭代 - 缺陷移入迭代 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${unlink_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${unlink_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_get_project_member_list.yaml b/interface/pms/projects/test_get_project_member_list.yaml index f08e6b5..e44ec06 100644 --- a/interface/pms/projects/test_get_project_member_list.yaml +++ b/interface/pms/projects/test_get_project_member_list.yaml @@ -12,7 +12,7 @@ case_info: title: 获取项目内成员列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectMembers/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectMembers/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_get_project_user_list.yaml b/interface/pms/projects/test_get_project_user_list.yaml new file mode 100644 index 0000000..edd23d8 --- /dev/null +++ b/interface/pms/projects/test_get_project_user_list.yaml @@ -0,0 +1,33 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 产品 + allure_story: 产品 + case_markers: + - pms + - pms_product + - usefixtures: gitlink_login + +case_info: +- + id: pms_get_project_user_list_01 + title: 获取项目负责人可选列表接口 + run: True + severity: critical + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/userList + method: GET + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: params + payload: + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: 查询成功 + assert_type: == + assert_sql: + extract: + type_jsonpath: + project_user: $.rows[0].gitlinkUserId \ No newline at end of file diff --git a/interface/pms/projects/test_module/test_delete_testcase_module.yaml b/interface/pms/projects/test_module/test_delete_testcase_module.yaml index fdd3d35..1eade44 100644 --- a/interface/pms/projects/test_module/test_delete_testcase_module.yaml +++ b/interface/pms/projects/test_module/test_delete_testcase_module.yaml @@ -14,7 +14,7 @@ case_info: title: 删除测试用例模块接口 - 父级模块(不存在子级),删除成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/${testcase_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/${testcase_module_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -41,7 +41,7 @@ case_info: title: 删除测试用例模块接口 - 子级模块,删除成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/${testcase_module_children_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/${testcase_module_children_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -71,7 +71,7 @@ case_info: title: 删除测试用例模块接口 - 存在子级模块的父级模块 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/${testcase_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/${testcase_module_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_module/test_edit_testcase_module.yaml b/interface/pms/projects/test_module/test_edit_testcase_module.yaml index 07154be..44ddf81 100644 --- a/interface/pms/projects/test_module/test_edit_testcase_module.yaml +++ b/interface/pms/projects/test_module/test_edit_testcase_module.yaml @@ -15,7 +15,7 @@ case_info: title: 编辑测试用例模块接口 - 编辑模块名称,更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -24,7 +24,7 @@ case_info: payload: id: ${testcase_module_id} parentId: 0 - moduleName: ${generate_words(lan='zh', nb=2)} + moduleName: t_${generate_words(lan='zh', nb=2)} files: assert_response: status_code: 200 @@ -47,7 +47,7 @@ case_info: title: 编辑测试用例模块接口 - 编辑子级模块名称,更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -81,7 +81,7 @@ case_info: title: 编辑测试用例模块接口 - 模块名称为空,更新失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -114,7 +114,7 @@ case_info: title: 编辑测试用例模块接口 - 模块名称长度31,更新失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -146,7 +146,7 @@ case_info: title: 编辑测试用例模块接口 - 所属父级模块为-1,更新失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -179,7 +179,7 @@ case_info: title: 编辑测试用例模块接口 - 无所属模块拖拽到其他模块,更新失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_module/test_get_testcase_module_detail.yaml b/interface/pms/projects/test_module/test_get_testcase_module_detail.yaml index 96feafc..00ef6db 100644 --- a/interface/pms/projects/test_module/test_get_testcase_module_detail.yaml +++ b/interface/pms/projects/test_module/test_get_testcase_module_detail.yaml @@ -19,7 +19,7 @@ case_info: title: 获取模块详情接口 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/${testcase_module_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/${testcase_module_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_module/test_get_testcase_module_list.yaml b/interface/pms/projects/test_module/test_get_testcase_module_list.yaml index 1ee1e35..b1d3366 100644 --- a/interface/pms/projects/test_module/test_get_testcase_module_list.yaml +++ b/interface/pms/projects/test_module/test_get_testcase_module_list.yaml @@ -8,24 +8,20 @@ case_common: - project_test_module - usefixtures: gitlink_login -common_dependence: - setup: - interface: pms_new_testcase_module_01 - teardown: - interface: pms_delete_testcase_module_01 case_info: - id: pms_get_testcase_module_list_01 title: 获取模块列表接口 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/list method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} - request_type: json + request_type: params payload: + pmsProjectId: ${env_pms_project_id} files: assert_response: status_code: 200 diff --git a/interface/pms/projects/test_module/test_new_testcase_module.yaml b/interface/pms/projects/test_module/test_new_testcase_module.yaml index b32f9fd..44c1e21 100644 --- a/interface/pms/projects/test_module/test_new_testcase_module.yaml +++ b/interface/pms/projects/test_module/test_new_testcase_module.yaml @@ -14,7 +14,7 @@ case_info: title: 新建测试用例模块接口 - 父级模块,新建成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 新建测试用例模块接口 - 子级模块,新建成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -80,7 +80,7 @@ case_info: title: 新建测试用例模块接口 - 模块名称为空,新建失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -106,7 +106,7 @@ case_info: title: 新建测试用例模块接口 - 模块名称长度31,新建失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -133,7 +133,7 @@ case_info: title: 新建测试用例模块接口 - 父级模块传-1,新建失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_module/test_pms_sync_product_module.yaml b/interface/pms/projects/test_module/test_pms_sync_product_module.yaml index ff2ef5d..bab6b63 100644 --- a/interface/pms/projects/test_module/test_pms_sync_product_module.yaml +++ b/interface/pms/projects/test_module/test_pms_sync_product_module.yaml @@ -16,7 +16,7 @@ case_info: title: 同步产品模块 - 当前存在关联产品,产品存在模块,未同步过产品模块 # 待补充前置条件 run: true severity: critical - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/byProjectId/${pms_project_id}/syncByProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/byProjectId/${pms_project_id}/syncByProductModule method: POST headers: Content-Type: application/json; charset=utf-8; @@ -49,7 +49,7 @@ case_info: title: 同步产品模块 - 已同步过产品模块 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseModule/byProjectId/${env_pms_project_id}/syncByProductModule + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseModule/byProjectId/${env_pms_project_id}/syncByProductModule method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_pms_delete_project.yaml b/interface/pms/projects/test_pms_delete_project.yaml index 84de04e..d30f02c 100644 --- a/interface/pms/projects/test_pms_delete_project.yaml +++ b/interface/pms/projects/test_pms_delete_project.yaml @@ -10,6 +10,7 @@ case_common: common_dependence: setup: interface: + - pms_get_project_user_list_01 - pms_get_enterprise_user_list_01 - pms_new_project_02 - pms_get_project_list_by_name_02 @@ -20,7 +21,7 @@ case_info: title: 企业下删除项目接口 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProject/${pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/${pms_project_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_pms_edit_project.yaml b/interface/pms/projects/test_pms_edit_project.yaml index 16e78a1..5dc7534 100644 --- a/interface/pms/projects/test_pms_edit_project.yaml +++ b/interface/pms/projects/test_pms_edit_project.yaml @@ -10,6 +10,7 @@ case_common: common_dependence: setup: interface: + - pms_get_project_user_list_01 - pms_get_enterprise_user_list_01 - pms_new_project_02 - pms_get_project_list_by_name_02 @@ -22,7 +23,7 @@ case_info: title: 企业下编辑项目接口 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -33,7 +34,7 @@ case_info: id: ${pms_project_id} status: ${random.choice([0,1,2])} # 0: 关闭 1:开启 2:暂停 projectName: ${generate_company_name(lan='zh')}_${generate_words} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${generate_paragraph} pmsProductId: ${env_pms_product_id} pmsProjectMemberIds: ${list_to_str(${assignee_ids})} @@ -58,7 +59,7 @@ case_info: title: 企业下编辑项目接口 - 项目名称长度51,编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -68,7 +69,7 @@ case_info: pmsEnterpriseId: ${env_enterprise_id} id: ${pms_project_id} projectName: ${faker.pystr(max_chars=51)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} files: assert_response: status_code: 200 @@ -85,7 +86,7 @@ case_info: title: 企业下编辑项目接口 - 项目名称为空,编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -95,7 +96,7 @@ case_info: pmsEnterpriseId: ${env_enterprise_id} id: ${pms_project_id} projectName: - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} files: assert_response: status_code: 200 @@ -112,7 +113,7 @@ case_info: title: 企业下编辑项目接口 - 项目简介长度201,编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -122,7 +123,7 @@ case_info: pmsEnterpriseId: ${env_enterprise_id} id: ${pms_project_id} projectName: ${faker.pystr(max_chars=50)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${faker.pystr(max_chars=201)} files: assert_response: @@ -140,7 +141,7 @@ case_info: title: 企业下编辑项目接口 - 结束时间晚于开始时间,编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -150,7 +151,7 @@ case_info: pmsEnterpriseId: ${env_enterprise_id} id: ${pms_project_id} projectName: ${faker.pystr(max_chars=50)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${faker.pystr(max_chars=200)} startTime: ${generate_time_after_week} endTime: ${generate_time(fmt='%Y-%m-%d')} diff --git a/interface/pms/projects/test_pms_get_project_list.yaml b/interface/pms/projects/test_pms_get_project_list.yaml index cdf1641..af5e9e4 100644 --- a/interface/pms/projects/test_pms_get_project_list.yaml +++ b/interface/pms/projects/test_pms_get_project_list.yaml @@ -13,7 +13,7 @@ case_info: title: 企业下获取项目列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -40,7 +40,7 @@ case_info: title: 企业下获取项目列表接口 - 项目关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -69,7 +69,7 @@ case_info: title: 企业下获取项目列表接口 - 获取从属于产品的项目 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_pms_new_project.yaml b/interface/pms/projects/test_pms_new_project.yaml index 06a63b7..bf91629 100644 --- a/interface/pms/projects/test_pms_new_project.yaml +++ b/interface/pms/projects/test_pms_new_project.yaml @@ -11,13 +11,14 @@ common_dependence: setup: interface: - pms_get_enterprise_user_list_01 + - pms_get_project_user_list_01 case_info: - id: pms_new_project_01 title: 企业下新建项目接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -26,7 +27,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: 新项目 - ${generate_company_name(lan='zh', fix='pre')}_${generate_words} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${generate_paragraph} pmsProductId: ${env_pms_product_id} pmsProjectMemberIds: ${list_to_str(${assignee_ids})} @@ -55,7 +56,7 @@ case_info: title: 企业下新建项目接口 - 仅填写必填参数,新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -64,7 +65,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: 新项目 - ${generate_company_name(lan='zh', fix='pre')}_${generate_words} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} files: assert_response: status_code: 200 @@ -85,7 +86,7 @@ case_info: title: 企业下新建项目接口 - 新建项目时关联产品,新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -94,7 +95,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: 新项目 - ${generate_company_name(lan='zh', fix='pre')}_${generate_words} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} pmsProductId: ${env_pms_product_id} files: assert_response: @@ -116,7 +117,7 @@ case_info: title: 企业下新建项目接口 - 项目名称长度51,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -125,7 +126,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: ${faker.pystr(max_chars=51)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} files: assert_response: status_code: 200 @@ -142,7 +143,7 @@ case_info: title: 企业下新建项目接口 - 项目名称为空,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -151,7 +152,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} files: assert_response: status_code: 200 @@ -168,7 +169,7 @@ case_info: title: 企业下新建项目接口 - 项目简介长度201,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -177,7 +178,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: ${faker.pystr(max_chars=50)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${faker.pystr(max_chars=201)} files: assert_response: @@ -195,7 +196,7 @@ case_info: title: 企业下新建项目接口 - 结束时间晚于开始时间,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: POST headers: Content-Type: application/json; charset=utf-8; @@ -204,7 +205,7 @@ case_info: payload: pmsEnterpriseId: ${env_enterprise_id} projectName: ${faker.pystr(max_chars=50)} - projectAssigneeId: ${random.choice(${assignee_ids})} + projectAssigneeId: ${project_user} projectDescription: ${faker.pystr(max_chars=200)} startTime: ${generate_time_after_week} endTime: ${generate_time(fmt='%Y-%m-%d')} diff --git a/interface/pms/projects/test_pms_top_project.yaml b/interface/pms/projects/test_pms_top_project.yaml index 276ef5b..7ba72c9 100644 --- a/interface/pms/projects/test_pms_top_project.yaml +++ b/interface/pms/projects/test_pms_top_project.yaml @@ -10,6 +10,7 @@ case_common: common_dependence: setup: interface: + - pms_get_project_user_list_01 - pms_get_enterprise_user_list_01 case_info: @@ -17,7 +18,7 @@ case_info: title: 企业下置顶项目接口 run: true severity: critical - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -48,7 +49,7 @@ case_info: title: 企业下取消置顶项目接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProject + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProject method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_report/test_delete_test_report.yaml b/interface/pms/projects/test_report/test_delete_test_report.yaml index 8d7260a..fbf1fa5 100644 --- a/interface/pms/projects/test_report/test_delete_test_report.yaml +++ b/interface/pms/projects/test_report/test_delete_test_report.yaml @@ -20,7 +20,7 @@ case_info: title: 项目内删除测试报告接口 run: True severity: normal - url: ${pms_host}/api/pms/testReport/${test_report_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport/${test_report_id} method: delete headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_report/test_edit_test_report.yaml b/interface/pms/projects/test_report/test_edit_test_report.yaml index a8a6267..2858a02 100644 --- a/interface/pms/projects/test_report/test_edit_test_report.yaml +++ b/interface/pms/projects/test_report/test_edit_test_report.yaml @@ -20,7 +20,7 @@ case_info: title: 项目内编辑测试报告接口 - 负责人 run: True severity: normal - url: ${pms_host}/api/pms/testReport + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 项目内编辑测试报告接口 - 起止时间 run: True severity: normal - url: ${pms_host}/api/pms/testReport + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -83,7 +83,7 @@ case_info: title: 项目内编辑测试报告接口 - 报告总结 run: True severity: normal - url: ${pms_host}/api/pms/testReport + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_report/test_get_test_report_list.yaml b/interface/pms/projects/test_report/test_get_test_report_list.yaml index 9b69429..4930ad3 100644 --- a/interface/pms/projects/test_report/test_get_test_report_list.yaml +++ b/interface/pms/projects/test_report/test_get_test_report_list.yaml @@ -12,7 +12,7 @@ case_info: title: 项目内获取测试报告列表接口 run: True severity: normal - url: ${pms_host}/api/pms/testReport/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -40,7 +40,7 @@ case_info: title: 项目内获取测试报告列表接口 - 通过报告名称关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/testReport/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_report/test_new_test_report.yaml b/interface/pms/projects/test_report/test_new_test_report.yaml index 84df7c8..9c5d804 100644 --- a/interface/pms/projects/test_report/test_new_test_report.yaml +++ b/interface/pms/projects/test_report/test_new_test_report.yaml @@ -13,7 +13,7 @@ case_info: title: 项目内新建测试报告接口 run: True severity: normal - url: ${pms_host}/api/pms/testReport + url: ${pms_host}/api/pms/${env_enterprise_identifier}/testReport method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_get_test_sheet_detail.yaml b/interface/pms/projects/test_sheet/test_get_test_sheet_detail.yaml index 513b11e..2fa5e58 100644 --- a/interface/pms/projects/test_sheet/test_get_test_sheet_detail.yaml +++ b/interface/pms/projects/test_sheet/test_get_test_sheet_detail.yaml @@ -25,7 +25,7 @@ case_info: title: 项目下获取测试单详情接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/${test_sheet_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/${test_sheet_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_delete_test_sheet.yaml b/interface/pms/projects/test_sheet/test_pms_delete_test_sheet.yaml index 37aea0e..9f2dbd7 100644 --- a/interface/pms/projects/test_sheet/test_pms_delete_test_sheet.yaml +++ b/interface/pms/projects/test_sheet/test_pms_delete_test_sheet.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下删除测试单接口 - 单个测试单,删除成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/${test_sheet_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/${test_sheet_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -43,7 +43,7 @@ case_info: title: 项目下删除测试单接口 - 多个测试单,删除成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/${list_to_str(${test_sheet_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/${list_to_str(${test_sheet_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_edit_test_sheet.yaml b/interface/pms/projects/test_sheet/test_pms_edit_test_sheet.yaml index 638fbba..0ee6091 100644 --- a/interface/pms/projects/test_sheet/test_pms_edit_test_sheet.yaml +++ b/interface/pms/projects/test_sheet/test_pms_edit_test_sheet.yaml @@ -26,7 +26,7 @@ case_info: title: 项目下编辑测试单接口 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -63,7 +63,7 @@ case_info: title: 项目下编辑测试单接口 - 标题为空,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -91,7 +91,7 @@ case_info: title: 项目下更新测试单接口 - 标题长度51,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -118,7 +118,7 @@ case_info: title: 项目下编辑测试单接口 - 结束时间早于开始时间,更新失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_list.yaml b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_list.yaml index 744a6d7..3eab675 100644 --- a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_list.yaml +++ b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_list.yaml @@ -23,7 +23,7 @@ case_info: title: 项目下获取测试单列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 项目下获取测试单列表接口 - 通过测试单名称关键字搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_module_list.yaml b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_module_list.yaml index 73042b9..c54f08e 100644 --- a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_module_list.yaml +++ b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_module_list.yaml @@ -25,7 +25,7 @@ case_info: title: 查测试单模块树状列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet/treeList + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet/treeList method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_testcases_list.yaml b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_testcases_list.yaml index 292765b..a7592b4 100644 --- a/interface/pms/projects/test_sheet/test_pms_get_test_sheet_testcases_list.yaml +++ b/interface/pms/projects/test_sheet/test_pms_get_test_sheet_testcases_list.yaml @@ -28,7 +28,7 @@ case_info: title: 获取所有模块未添加到测试单内的测试用例列表 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -60,7 +60,7 @@ case_info: title: 获取已添加到测试单内的测试用例列表 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_new_test_sheet.yaml b/interface/pms/projects/test_sheet/test_pms_new_test_sheet.yaml index 5e14cb2..054cddf 100644 --- a/interface/pms/projects/test_sheet/test_pms_new_test_sheet.yaml +++ b/interface/pms/projects/test_sheet/test_pms_new_test_sheet.yaml @@ -19,7 +19,7 @@ case_info: title: 项目下新建测试单接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: POST headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 项目下新建测试单接口 - 只输入必填参数,新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: POST headers: Content-Type: application/json; charset=utf-8; @@ -87,7 +87,7 @@ case_info: title: 项目下新建测试单接口 - 标题为空,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: POST headers: Content-Type: application/json; charset=utf-8; @@ -114,7 +114,7 @@ case_info: title: 项目下新建测试单接口 - 标题长度51,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: POST headers: Content-Type: application/json; charset=utf-8; @@ -140,7 +140,7 @@ case_info: title: 项目下新建测试单接口 - 结束时间早于开始时间,新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheet + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheet method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_test_sheet_add_testcase.yaml b/interface/pms/projects/test_sheet/test_pms_test_sheet_add_testcase.yaml index e77dae3..4e7a700 100644 --- a/interface/pms/projects/test_sheet/test_pms_test_sheet_add_testcase.yaml +++ b/interface/pms/projects/test_sheet/test_pms_test_sheet_add_testcase.yaml @@ -35,7 +35,7 @@ case_info: title: 测试单添加测试用例接口 - 添加单个测试用例,添加成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: POST headers: Content-Type: application/json; charset=utf-8; @@ -62,7 +62,7 @@ case_info: title: 测试单添加测试用例接口 - 添加多个测试用例,添加成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/test_sheet/test_pms_test_sheet_execute_testcase.yaml b/interface/pms/projects/test_sheet/test_pms_test_sheet_execute_testcase.yaml index c1f7803..3193948 100644 --- a/interface/pms/projects/test_sheet/test_pms_test_sheet_execute_testcase.yaml +++ b/interface/pms/projects/test_sheet/test_pms_test_sheet_execute_testcase.yaml @@ -6,6 +6,7 @@ case_common: - pms - pms_project - project_test_sheet + - ddd - usefixtures: gitlink_login @@ -39,7 +40,7 @@ case_info: title: 执行测试单执行用例接口 - 仅更改用例执行结果,更新成功 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -49,7 +50,6 @@ case_info: id: ${added_testcase_id} testerId: ${random.choice(${project_member_ids})} testStatus: ${random.choice([0,1,2,3,4])} - testcaseStepList: ${zip_test_step(${test_case_step_id}, ${test_case_step_status_id})} files: assert_response: status_code: 200 @@ -69,7 +69,7 @@ case_info: title: 执行测试单执行用例接口 - 仅更改测试步骤执行结果,更新成功 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -99,7 +99,7 @@ case_info: title: 执行测试单执行用例接口 - 更改测试用例以及步骤执行结果,更新成功 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -129,7 +129,7 @@ case_info: title: 执行测试单执行用例接口 - 参数传递错误,执行失败 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestsheetCases + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestsheetCases method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_batch_edit_testcases.yaml b/interface/pms/projects/testcases/test_pms_batch_edit_testcases.yaml index c2fd2c7..dbede53 100644 --- a/interface/pms/projects/testcases/test_pms_batch_edit_testcases.yaml +++ b/interface/pms/projects/testcases/test_pms_batch_edit_testcases.yaml @@ -26,7 +26,7 @@ case_info: title: 项目下批量编辑测试用例 - 更新成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectTestcase/batch + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase/batch method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_delete_testcases.yaml b/interface/pms/projects/testcases/test_pms_delete_testcases.yaml index 7f89264..8a43ce9 100644 --- a/interface/pms/projects/testcases/test_pms_delete_testcases.yaml +++ b/interface/pms/projects/testcases/test_pms_delete_testcases.yaml @@ -22,7 +22,7 @@ case_info: title: 项目下删除测试用例接口 - 单个用例,删除成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase/${testcase_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase/${testcase_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 项目下删除测试用例接口 - 多个用例,删除成功 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase/${list_to_str(${testcase_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase/${list_to_str(${testcase_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_edit_testcases.yaml b/interface/pms/projects/testcases/test_pms_edit_testcases.yaml index 9ea3666..581f46b 100644 --- a/interface/pms/projects/testcases/test_pms_edit_testcases.yaml +++ b/interface/pms/projects/testcases/test_pms_edit_testcases.yaml @@ -21,7 +21,7 @@ case_info: title: 项目下编辑测试用例接口 - 仅编辑标题 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -46,7 +46,7 @@ case_info: title: 项目下编辑测试用例接口 - 编辑所有字段 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -88,7 +88,7 @@ case_info: title: 项目下编辑测试用例接口 - 模块传-1, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -117,7 +117,7 @@ case_info: title: 项目下编辑测试用例接口 - 用例名称为空, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -145,7 +145,7 @@ case_info: title: 项目下编辑测试用例接口 - 用例名称长度31, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -173,7 +173,7 @@ case_info: title: 项目下编辑测试用例接口 - 前置条件长度501, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -202,7 +202,7 @@ case_info: title: 项目下编辑测试用例接口 - 备注501, 编辑失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_get_testcase_type_list.yaml b/interface/pms/projects/testcases/test_pms_get_testcase_type_list.yaml index b2ca304..d8fea91 100644 --- a/interface/pms/projects/testcases/test_pms_get_testcase_type_list.yaml +++ b/interface/pms/projects/testcases/test_pms_get_testcase_type_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取测试用例类型列表接口 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseType/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseType/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_get_testcases_detail.yaml b/interface/pms/projects/testcases/test_pms_get_testcases_detail.yaml index 3bbaf3b..3392277 100644 --- a/interface/pms/projects/testcases/test_pms_get_testcases_detail.yaml +++ b/interface/pms/projects/testcases/test_pms_get_testcases_detail.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下获取测试用例详情接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase/${testcase_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase/${testcase_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_get_testcases_list.yaml b/interface/pms/projects/testcases/test_pms_get_testcases_list.yaml index 0aff558..ef49c9c 100644 --- a/interface/pms/projects/testcases/test_pms_get_testcases_list.yaml +++ b/interface/pms/projects/testcases/test_pms_get_testcases_list.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下获取测试用例列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/testcases/test_pms_new_testcases.yaml b/interface/pms/projects/testcases/test_pms_new_testcases.yaml index 59c3875..cb473b5 100644 --- a/interface/pms/projects/testcases/test_pms_new_testcases.yaml +++ b/interface/pms/projects/testcases/test_pms_new_testcases.yaml @@ -21,7 +21,7 @@ case_info: title: 项目下新建测试用例接口 - 有所属模块, 新建成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -70,7 +70,7 @@ case_info: title: 项目下新建测试用例接口 - 无所属模块, 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -81,7 +81,6 @@ case_info: title: ${generate_paragraph(nb=1)} preconditions: ${generate_words(lan='zh', nb=2)} assigneeGitlinkId: ${${assignee_ids}[0]} - tags: ${random.choice(${testcase_tag_ids})} typeId: ${random.choice([1,2,3,4,5,6,7])} # 用例类型 功能测试1 性能测试2 接口测试3 安装部署4 安全相关5 配置相关6 其他7 testcaseStepInputVoList: - @@ -110,7 +109,7 @@ case_info: title: 项目下新建测试用例接口 - 模块传-1, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -152,7 +151,7 @@ case_info: title: 项目下新建测试用例接口 - 用例名称为空, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -182,7 +181,7 @@ case_info: title: 项目下新建测试用例接口 - 用例名称长度31, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -212,7 +211,7 @@ case_info: title: 项目下新建测试用例接口 - 前置条件长度501, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; @@ -243,7 +242,7 @@ case_info: title: 项目下新建测试用例接口 - 备注501, 新建失败 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcase + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcase method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_batch_edit_project_bug.yaml b/interface/pms/projects/work_item/bug/test_pms_batch_edit_project_bug.yaml index 02dda8d..a71800d 100644 --- a/interface/pms/projects/work_item/bug/test_pms_batch_edit_project_bug.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_batch_edit_project_bug.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下批量编辑缺陷 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 项目下批量编辑缺陷- 关联子缺陷, 更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_delete_project_bug.yaml b/interface/pms/projects/work_item/bug/test_pms_delete_project_bug.yaml index 298b7bb..06d1de7 100644 --- a/interface/pms/projects/work_item/bug/test_pms_delete_project_bug.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_delete_project_bug.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下删除缺陷接口 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_bug_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -43,7 +43,7 @@ case_info: title: 项目下删除缺陷接口 - 多个缺陷,删除成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${list_to_str(${project_bug_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${list_to_str(${project_bug_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_edit_project_bug.yaml b/interface/pms/projects/work_item/bug/test_pms_edit_project_bug.yaml index f864b0a..f0628bf 100644 --- a/interface/pms/projects/work_item/bug/test_pms_edit_project_bug.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_edit_project_bug.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下编辑缺陷 - 仅编辑标题,更新成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -42,7 +42,7 @@ case_info: title: 项目下编辑缺陷 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -88,7 +88,7 @@ case_info: title: 项目下编辑缺陷- 关联父缺陷,关联成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -127,7 +127,7 @@ case_info: title: 项目下编辑缺陷 - 取消父子关系,取消成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_get_optional_parent_bug_list.yaml b/interface/pms/projects/work_item/bug/test_pms_get_optional_parent_bug_list.yaml index 1a4d793..00cc693 100644 --- a/interface/pms/projects/work_item/bug/test_pms_get_optional_parent_bug_list.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_get_optional_parent_bug_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取缺陷可关联的父缺陷列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/optionalParentIssue/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/optionalParentIssue/${project_bug_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_get_project_bug_detail.yaml b/interface/pms/projects/work_item/bug/test_pms_get_project_bug_detail.yaml index 9968d42..42311ae 100644 --- a/interface/pms/projects/work_item/bug/test_pms_get_project_bug_detail.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_get_project_bug_detail.yaml @@ -17,7 +17,7 @@ case_info: title: 获取项目下缺陷详情接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_bug_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_get_project_bug_list.yaml b/interface/pms/projects/work_item/bug/test_pms_get_project_bug_list.yaml index 78f4219..b585ad4 100644 --- a/interface/pms/projects/work_item/bug/test_pms_get_project_bug_list.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_get_project_bug_list.yaml @@ -14,7 +14,7 @@ case_info: title: 获取项目内缺陷列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 获取项目内缺陷列表接口 - 通过缺陷名称关键字搜索 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_new_project_bug.yaml b/interface/pms/projects/work_item/bug/test_pms_new_project_bug.yaml index a34f1c8..ce3f159 100644 --- a/interface/pms/projects/work_item/bug/test_pms_new_project_bug.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_new_project_bug.yaml @@ -6,7 +6,6 @@ case_common: - pms - pms_project - project_bug - - repeat(1) - usefixtures: gitlink_login common_dependence: @@ -21,7 +20,7 @@ case_info: title: 项目下新建缺陷接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -64,7 +63,7 @@ case_info: title: 项目下新建缺陷接口 - 仅输入标题,新建成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -92,9 +91,9 @@ case_info: - id: pms_new_project_bug_children_03 title: 项目下新建子级缺陷接口 - 新建成功 - run: True + run: false severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -137,9 +136,9 @@ case_info: - id: pms_new_project_bug_children_04 title: 项目下新建子级缺陷接口 - 仅输入标题新建, 新建成功 - run: True + run: false severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_project_bug_add_journal.yaml b/interface/pms/projects/work_item/bug/test_pms_project_bug_add_journal.yaml index 28c3f48..6d0c016 100644 --- a/interface/pms/projects/work_item/bug/test_pms_project_bug_add_journal.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_project_bug_add_journal.yaml @@ -20,7 +20,7 @@ case_info: title: 缺陷下添加评论 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -52,7 +52,7 @@ case_info: title: 缺陷下添加评论回复 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -86,7 +86,7 @@ case_info: title: 缺陷下添加评论 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -114,7 +114,7 @@ case_info: title: 缺陷下添加评论回复 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_project_bug_delete_journal.yaml b/interface/pms/projects/work_item/bug/test_pms_project_bug_delete_journal.yaml index d50afad..bdd68ed 100644 --- a/interface/pms/projects/work_item/bug/test_pms_project_bug_delete_journal.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_project_bug_delete_journal.yaml @@ -19,7 +19,7 @@ case_info: title: 缺陷下删除评论 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 缺陷下删除评论回复 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_reply_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/bug/test_pms_project_bug_edit_journal.yaml b/interface/pms/projects/work_item/bug/test_pms_project_bug_edit_journal.yaml index c92f2d7..0cbcf68 100644 --- a/interface/pms/projects/work_item/bug/test_pms_project_bug_edit_journal.yaml +++ b/interface/pms/projects/work_item/bug/test_pms_project_bug_edit_journal.yaml @@ -22,7 +22,7 @@ case_info: title: 缺陷下编辑评论 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_id} method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 工作项下编辑评论回复 - 缺陷 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_bug_id}/${bug_journal_reply_id} method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_batch_edit_project_requirement.yaml b/interface/pms/projects/work_item/requirement/test_pms_batch_edit_project_requirement.yaml index da01932..b05d375 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_batch_edit_project_requirement.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_batch_edit_project_requirement.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下批量编辑需求 - 更新成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 项目下批量编辑需求- 关联子需求, 更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_delete_project_requirement.yaml b/interface/pms/projects/work_item/requirement/test_pms_delete_project_requirement.yaml index 69f097d..f988f9e 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_delete_project_requirement.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_delete_project_requirement.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下删除需求接口 - 单个需求,删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_requirement_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -43,7 +43,7 @@ case_info: title: 项目下删除需求接口 - 多个需求,删除成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${list_to_str(${project_requirement_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${list_to_str(${project_requirement_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_edit_project_requirement.yaml b/interface/pms/projects/work_item/requirement/test_pms_edit_project_requirement.yaml index 4fe787f..46233fd 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_edit_project_requirement.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_edit_project_requirement.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下编辑需求 - 仅编辑标题,更新成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -42,7 +42,7 @@ case_info: title: 项目下编辑需求 - 编辑所有字段,更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -88,7 +88,7 @@ case_info: title: 项目下编辑需求- 关联父需求,关联成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -127,7 +127,7 @@ case_info: title: 项目下编辑需求 - 取消父子关系,取消成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_get_optional_parent_requirement_list.yaml b/interface/pms/projects/work_item/requirement/test_pms_get_optional_parent_requirement_list.yaml index 8fb547c..4d523c6 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_get_optional_parent_requirement_list.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_get_optional_parent_requirement_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取需求可关联的父需求列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/optionalParentIssue/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/optionalParentIssue/${project_requirement_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_detail.yaml b/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_detail.yaml index 3349ca8..81d7027 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_detail.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_detail.yaml @@ -17,7 +17,7 @@ case_info: title: 获取项目下需求详情接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_requirement_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_list.yaml b/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_list.yaml index 29690d6..17df1ba 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_list.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_get_project_requirement_list.yaml @@ -14,7 +14,7 @@ case_info: title: 获取项目内需求列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 获取项目内需求列表接口 - 通过需求名称关键字搜索 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_new_project_requirement.yaml b/interface/pms/projects/work_item/requirement/test_pms_new_project_requirement.yaml index 055ae0e..eed28f9 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_new_project_requirement.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_new_project_requirement.yaml @@ -6,7 +6,6 @@ case_common: - pms - pms_project - project_requirement - - repeat(1) - usefixtures: gitlink_login common_dependence: @@ -21,7 +20,7 @@ case_info: title: 项目下新建需求接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -64,7 +63,7 @@ case_info: title: 项目下新建需求接口 - 仅输入标题,新建成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -92,9 +91,9 @@ case_info: - id: pms_new_project_requirement_children_03 title: 项目下新建子级需求接口 - 新建成功 - run: True + run: false severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -137,9 +136,9 @@ case_info: - id: pms_new_project_requirement_children_04 title: 项目下新建子级需求接口 - 仅输入标题新建, 新建成功 - run: True + run: false severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_add_journal.yaml b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_add_journal.yaml index bf9745f..b4a8d5f 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_add_journal.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_add_journal.yaml @@ -20,7 +20,7 @@ case_info: title: 需求下添加评论 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -52,7 +52,7 @@ case_info: title: 需求下添加评论回复 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -86,7 +86,7 @@ case_info: title: 需求下添加评论 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -114,7 +114,7 @@ case_info: title: 需求下添加评论回复 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_delete_journal.yaml b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_delete_journal.yaml index 2529004..20f62d4 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_delete_journal.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_delete_journal.yaml @@ -19,7 +19,7 @@ case_info: title: 需求下删除评论 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 需求下删除评论回复 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_reply_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_edit_journal.yaml b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_edit_journal.yaml index 9fb7605..535a53f 100644 --- a/interface/pms/projects/work_item/requirement/test_pms_project_requirement_edit_journal.yaml +++ b/interface/pms/projects/work_item/requirement/test_pms_project_requirement_edit_journal.yaml @@ -22,7 +22,7 @@ case_info: title: 需求下编辑评论 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_id} method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 工作项下编辑评论回复 - 需求 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_requirement_id}/${requirement_journal_reply_id} method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_batch_edit_project_task.yaml b/interface/pms/projects/work_item/task/test_pms_batch_edit_project_task.yaml index 65a1373..a083304 100644 --- a/interface/pms/projects/work_item/task/test_pms_batch_edit_project_task.yaml +++ b/interface/pms/projects/work_item/task/test_pms_batch_edit_project_task.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下批量编辑任务 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 项目下批量编辑任务- 关联子任务, 更新成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/batch?pmProjectId=${env_pms_project_id} method: put headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_delete_project_task.yaml b/interface/pms/projects/work_item/task/test_pms_delete_project_task.yaml index 73f2fda..0827b80 100644 --- a/interface/pms/projects/work_item/task/test_pms_delete_project_task.yaml +++ b/interface/pms/projects/work_item/task/test_pms_delete_project_task.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下删除任务接口 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_task_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -43,7 +43,7 @@ case_info: title: 项目下删除任务接口 - 多个任务,删除成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${list_to_str(${project_task_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${list_to_str(${project_task_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_edit_project_task.yaml b/interface/pms/projects/work_item/task/test_pms_edit_project_task.yaml index 263f652..f55d6ca 100644 --- a/interface/pms/projects/work_item/task/test_pms_edit_project_task.yaml +++ b/interface/pms/projects/work_item/task/test_pms_edit_project_task.yaml @@ -14,7 +14,7 @@ case_info: title: 项目下编辑任务 - 仅编辑标题,更新成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -42,7 +42,7 @@ case_info: title: 项目下编辑任务 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -88,7 +88,7 @@ case_info: title: 项目下编辑任务- 关联父任务,关联成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -127,7 +127,7 @@ case_info: title: 项目下编辑任务 - 取消父子关系,取消成功 run: true severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/edit/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/edit/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_get_optional_parent_task_list.yaml b/interface/pms/projects/work_item/task/test_pms_get_optional_parent_task_list.yaml index 64081f1..3d1bdd6 100644 --- a/interface/pms/projects/work_item/task/test_pms_get_optional_parent_task_list.yaml +++ b/interface/pms/projects/work_item/task/test_pms_get_optional_parent_task_list.yaml @@ -13,7 +13,7 @@ case_info: title: 获取任务可关联的父任务列表 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/optionalParentIssue/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/optionalParentIssue/${project_task_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_get_project_task_detail.yaml b/interface/pms/projects/work_item/task/test_pms_get_project_task_detail.yaml index ddd6163..f19f608 100644 --- a/interface/pms/projects/work_item/task/test_pms_get_project_task_detail.yaml +++ b/interface/pms/projects/work_item/task/test_pms_get_project_task_detail.yaml @@ -17,7 +17,7 @@ case_info: title: 获取项目下任务详情接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/${project_task_id} method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_get_project_task_list.yaml b/interface/pms/projects/work_item/task/test_pms_get_project_task_list.yaml index d8e8bb6..80aa7e4 100644 --- a/interface/pms/projects/work_item/task/test_pms_get_project_task_list.yaml +++ b/interface/pms/projects/work_item/task/test_pms_get_project_task_list.yaml @@ -14,7 +14,7 @@ case_info: title: 获取项目内任务列表接口 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; @@ -57,7 +57,7 @@ case_info: title: 获取项目内任务列表接口 - 通过任务名称关键字搜索 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_new_project_task.yaml b/interface/pms/projects/work_item/task/test_pms_new_project_task.yaml index 56e5ee1..21333ea 100644 --- a/interface/pms/projects/work_item/task/test_pms_new_project_task.yaml +++ b/interface/pms/projects/work_item/task/test_pms_new_project_task.yaml @@ -6,7 +6,7 @@ case_common: - pms - pms_project - project_task - - repeat(1) + - debug - usefixtures: gitlink_login common_dependence: @@ -21,7 +21,7 @@ case_info: title: 项目下新建任务接口 - 新建成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -64,7 +64,7 @@ case_info: title: 项目下新建任务接口 - 仅输入标题,新建成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -91,9 +91,9 @@ case_info: - id: pms_new_project_task_children_03 title: 项目下新建子级任务接口 - 新建成功 - run: True + run: false severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; @@ -137,9 +137,9 @@ case_info: - id: pms_new_project_task_children_04 title: 项目下新建子级任务接口 - 仅输入标题新建, 新建成功 - run: True + run: false severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/add + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/add method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_project_task_add_journal.yaml b/interface/pms/projects/work_item/task/test_pms_project_task_add_journal.yaml index d261f5f..841f42b 100644 --- a/interface/pms/projects/work_item/task/test_pms_project_task_add_journal.yaml +++ b/interface/pms/projects/work_item/task/test_pms_project_task_add_journal.yaml @@ -20,7 +20,7 @@ case_info: title: 任务下添加评论 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -52,7 +52,7 @@ case_info: title: 任务下添加评论回复 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -86,7 +86,7 @@ case_info: title: 任务下添加评论 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; @@ -114,7 +114,7 @@ case_info: title: 任务下添加评论回复 - 不上传附件,添加成功 run: True severity: critical - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id} method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_project_task_delete_journal.yaml b/interface/pms/projects/work_item/task/test_pms_project_task_delete_journal.yaml index e77e8b4..cf38654 100644 --- a/interface/pms/projects/work_item/task/test_pms_project_task_delete_journal.yaml +++ b/interface/pms/projects/work_item/task/test_pms_project_task_delete_journal.yaml @@ -19,7 +19,7 @@ case_info: title: 任务下删除评论 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id}/${task_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id}/${task_journal_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -45,7 +45,7 @@ case_info: title: 任务下删除评论回复 - 删除成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id}/${task_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id}/${task_journal_reply_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/task/test_pms_project_task_edit_journal.yaml b/interface/pms/projects/work_item/task/test_pms_project_task_edit_journal.yaml index 73f9338..1fce6bb 100644 --- a/interface/pms/projects/work_item/task/test_pms_project_task_edit_journal.yaml +++ b/interface/pms/projects/work_item/task/test_pms_project_task_edit_journal.yaml @@ -22,7 +22,7 @@ case_info: title: 任务下编辑评论 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id}/${task_journal_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id}/${task_journal_id} method: PUT headers: Content-Type: application/json; charset=utf-8; @@ -51,7 +51,7 @@ case_info: title: 任务下编辑评论回复 - 更新成功 run: True severity: blocker - url: ${pms_host}/api/pms/pmsProjectIssues/journals/${project_task_id}/${task_journal_reply_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/journals/${project_task_id}/${task_journal_reply_id} method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/projects/work_item/test_pms_project_upload_files.yaml b/interface/pms/projects/work_item/test_pms_project_upload_files.yaml index 2b5de66..a0bbcbd 100644 --- a/interface/pms/projects/work_item/test_pms_project_upload_files.yaml +++ b/interface/pms/projects/work_item/test_pms_project_upload_files.yaml @@ -13,7 +13,7 @@ case_info: title: 项目内上传附件 severity: run: false - url: ${pms_host}/api/pms/pmsProjectIssues/attachments + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/attachments method: POST headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/repository/test_pms_get_enterprise_repo_list.yaml b/interface/pms/repository/test_pms_get_enterprise_repo_list.yaml index 3442b28..6a69f1a 100644 --- a/interface/pms/repository/test_pms_get_enterprise_repo_list.yaml +++ b/interface/pms/repository/test_pms_get_enterprise_repo_list.yaml @@ -13,14 +13,16 @@ case_info: title: 获取企业下的代码库列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsRepository/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsRepository/list method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - enterpriseIdentifier: prefecture + enterpriseIdentifier: ${env_enterprise_identifier} + page: 1 + limit: 100 files: assert_response: status_code: 200 diff --git a/interface/pms/repository/test_pms_new_repo.yaml b/interface/pms/repository/test_pms_new_repo.yaml index 15986b9..54f07d6 100644 --- a/interface/pms/repository/test_pms_new_repo.yaml +++ b/interface/pms/repository/test_pms_new_repo.yaml @@ -1,7 +1,7 @@ case_common: - allure_epic: GitLink接口 - allure_feature: 开源项目模块 - allure_story: 项目 + allure_epic: 项目管理 + allure_feature: 代码库 + allure_story: 代码库 case_markers: - pms - pms_repo @@ -9,12 +9,6 @@ case_common: - new_repo - usefixtures: gitlink_login -# 放置公共依赖 (仅yaml用例支持,excel用例不支持) -common_dependence: - teardown: - interface: - - gitlink_projects_delete_project_01 - case_info: - id: pms_new_repo_01 diff --git a/interface/pms/settings/role/test_pms_delete_role.yaml b/interface/pms/settings/role/test_pms_delete_role.yaml new file mode 100644 index 0000000..3e397c3 --- /dev/null +++ b/interface/pms/settings/role/test_pms_delete_role.yaml @@ -0,0 +1,40 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 设置 + allure_story: 角色及权限设置 + case_markers: + - pms + - pms_admin + - role + - repeat(1) + - usefixtures: gitlink_login + +common_dependence: + setup: + interface: + - pms_get_menu_list_01 + - pms_new_role_02 + - pms_new_role_02 + - pms_get_role_list_01 + +case_info: + - id: pms_delete_role_01 + title: 组织管理员删除角色 - 删除成功 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/role/${role_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: \ No newline at end of file diff --git a/interface/pms/settings/role/test_pms_edit_role.yaml b/interface/pms/settings/role/test_pms_edit_role.yaml new file mode 100644 index 0000000..07cba02 --- /dev/null +++ b/interface/pms/settings/role/test_pms_edit_role.yaml @@ -0,0 +1,46 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 设置 + allure_story: 角色及权限设置 + case_markers: + - pms + - pms_admin + - role + - repeat(1) + - usefixtures: gitlink_login + +common_dependence: + setup: + interface: + - pms_get_menu_list_01 + - pms_new_role_02 + - pms_new_role_02 + - pms_get_role_list_01 + teardown: + interface: pms_delete_role_01 + +case_info: + - id: pms_edit_role_01 + title: 组织管理员编辑角色 - 权限为空,更新成功 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/role/${role_id} + method: PUT + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: json + payload: + roleName: ${generate_name(lan='zh')} + roleKey: ${generate_words} + menuIds: '[]' + remark: ${generate_words} + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: 操作成功 + assert_type: == + assert_sql: + extract: \ No newline at end of file diff --git a/interface/pms/settings/role/test_pms_get_menu_list.yaml b/interface/pms/settings/role/test_pms_get_menu_list.yaml new file mode 100644 index 0000000..5287f90 --- /dev/null +++ b/interface/pms/settings/role/test_pms_get_menu_list.yaml @@ -0,0 +1,33 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 设置 + allure_story: 角色及权限设置 + case_markers: + - pms + - pms_admin + - role + - usefixtures: gitlink_login + +case_info: + - id: pms_get_menu_list_01 + title: 获取所有的menu + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/roleMenuTreeSelect + method: GET + 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: + type_jsonpath: + menu_ids: $.menus..id diff --git a/interface/pms/settings/role/test_pms_get_role_list.yaml b/interface/pms/settings/role/test_pms_get_role_list.yaml new file mode 100644 index 0000000..aaed81d --- /dev/null +++ b/interface/pms/settings/role/test_pms_get_role_list.yaml @@ -0,0 +1,34 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 设置 + allure_story: 角色及权限设置 + case_markers: + - pms + - pms_admin + - role + - usefixtures: gitlink_login + +case_info: + - id: pms_get_role_list_01 + title: 获取企业下所有角色列表 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/list + method: GET + 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: + type_jsonpath: + role_id: $.rows[-1:].roleId + role_ids: $.rows[?(@.createBy == '${env_login}')].roleId diff --git a/interface/pms/settings/role/test_pms_new_role.yaml b/interface/pms/settings/role/test_pms_new_role.yaml new file mode 100644 index 0000000..a3ba575 --- /dev/null +++ b/interface/pms/settings/role/test_pms_new_role.yaml @@ -0,0 +1,89 @@ +case_common: + allure_epic: 项目管理 + allure_feature: 设置 + allure_story: 角色及权限设置 + case_markers: + - pms + - pms_admin + - role + - repeat(1) + - usefixtures: gitlink_login + +case_info: + - id: pms_new_role_01 + title: 组织管理员新建角色 - 权限为空,新建成功 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/role + method: POST + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: json + payload: + roleName: 新角色 - ${generate_name(lan='zh')} + roleKey: ${generate_words} + remark: ${generate_words} + menuIds: '[]' + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: 操作成功 + assert_type: == + assert_sql: + extract: + + - id: pms_new_role_02 + title: 组织管理员新建角色 - 所有权限,新建成功 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/role + method: POST + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: json + payload: + roleName: 新角色 - ${generate_name(lan='zh')} + roleKey: ${generate_words} + remark: ${generate_words} + menuIds: ${menu_ids} + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: 操作成功 + assert_type: == + assert_sql: + extract: + case_dependence: + setup: + interface: pms_get_menu_list_01 + + - id: pms_new_role_03 + title: 组织管理员新建角色 - menuIds传空,新建失败 + run: True + severity: normal + url: ${pms_host}/api/system/SysDeptRole/dept/${env_dept_id}/role + method: POST + headers: + Content-Type: application/json; charset=utf-8; + cookies: ${cookies} + request_type: json + payload: + roleName: 新角色 - ${generate_name(lan='zh')} + roleKey: ${generate_words} + remark: ${generate_words} + menuIds: + files: + assert_response: + status_code: 200 + assertMessage: + type_jsonpath: $.msg + expect_value: '[menuIds]字段校验异常:must not be null' + assert_type: == + assert_sql: + extract: \ No newline at end of file diff --git a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_deletet_product_requirement_tag.yaml b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_deletet_product_requirement_tag.yaml index 0cb747d..105556e 100644 --- a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_deletet_product_requirement_tag.yaml +++ b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_deletet_product_requirement_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员删除产品需求标记 run: true severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag/${product_requirement_tag_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag/${product_requirement_tag_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -39,7 +39,7 @@ case_info: title: 组织管理员删除产品需求标记 - 删除多个标记 run: true severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag/${list_to_str(${product_requirement_tag_ids})} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag/${list_to_str(${product_requirement_tag_ids})} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_edit_product_requirement_tag.yaml b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_edit_product_requirement_tag.yaml index 8d253de..da0c2f1 100644 --- a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_edit_product_requirement_tag.yaml +++ b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_edit_product_requirement_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员编辑产品需求标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_get_product_requirement_tag_list.yaml b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_get_product_requirement_tag_list.yaml index 6f54958..239fb70 100644 --- a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_get_product_requirement_tag_list.yaml +++ b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_get_product_requirement_tag_list.yaml @@ -13,14 +13,14 @@ case_info: title: 组织管理员获取产品需求标记列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag/list method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - pmsEnterpriseId: 1 + pmsEnterpriseId: ${env_enterprise_id} files: assert_response: status_code: 200 @@ -38,7 +38,7 @@ case_info: title: 组织管理员获取产品需求标记列表接口 - 通过标记名称搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_new_product_requirement_tag.yaml b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_new_product_requirement_tag.yaml index 7ffaa2e..bb7c295 100644 --- a/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_new_product_requirement_tag.yaml +++ b/interface/pms/settings/tag_setting/product_requirement_tag/test_pms_new_product_requirement_tag.yaml @@ -14,14 +14,14 @@ case_info: title: 组织管理员新建产品需求标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProductRequirementTag + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProductRequirementTag method: POST headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: json payload: - pmsEnterpriseId: 1 + pmsEnterpriseId: ${env_enterprise_id} tagName: 新标记-${generate_words}_${generate_words} description: ${generate_paragraph} color: ${faker.hex_color()} diff --git a/interface/pms/settings/tag_setting/testcase_tag/test_pms_deletet_tag.yaml b/interface/pms/settings/tag_setting/testcase_tag/test_pms_deletet_tag.yaml index 8f9701c..f574ef4 100644 --- a/interface/pms/settings/tag_setting/testcase_tag/test_pms_deletet_tag.yaml +++ b/interface/pms/settings/tag_setting/testcase_tag/test_pms_deletet_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员删除测试用例标记 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag/${testcase_tag_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag/${testcase_tag_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -39,7 +39,7 @@ case_info: title: 组织管理员删除测试用例标记 - 删除多个标记 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag/${testcase_tag_ids} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag/${testcase_tag_ids} method: DELETE headers: Content-Type: application/json; charset=utf-8; @@ -58,4 +58,4 @@ case_info: case_dependence: setup: interface: - - pms_get_product_testcase_list_01 \ No newline at end of file + - pms_get_testcase_tag_list_01 \ No newline at end of file diff --git a/interface/pms/settings/tag_setting/testcase_tag/test_pms_edit_tag.yaml b/interface/pms/settings/tag_setting/testcase_tag/test_pms_edit_tag.yaml index 473b8d7..e09dc5c 100644 --- a/interface/pms/settings/tag_setting/testcase_tag/test_pms_edit_tag.yaml +++ b/interface/pms/settings/tag_setting/testcase_tag/test_pms_edit_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员编辑测试用例标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/testcase_tag/test_pms_get_tag_list.yaml b/interface/pms/settings/tag_setting/testcase_tag/test_pms_get_tag_list.yaml index 9243e25..efba0e8 100644 --- a/interface/pms/settings/tag_setting/testcase_tag/test_pms_get_tag_list.yaml +++ b/interface/pms/settings/tag_setting/testcase_tag/test_pms_get_tag_list.yaml @@ -13,14 +13,14 @@ case_info: title: 组织管理员获取测试用例标记列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag/list method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - pmsEnterpriseId: 1 + pmsEnterpriseId: ${env_enterprise_id} files: assert_response: status_code: 200 @@ -38,7 +38,7 @@ case_info: title: 组织管理员获取测试用例标记列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag/list + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag/list method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/testcase_tag/test_pms_new_tag.yaml b/interface/pms/settings/tag_setting/testcase_tag/test_pms_new_tag.yaml index 3c17440..275aaee 100644 --- a/interface/pms/settings/tag_setting/testcase_tag/test_pms_new_tag.yaml +++ b/interface/pms/settings/tag_setting/testcase_tag/test_pms_new_tag.yaml @@ -14,14 +14,14 @@ case_info: title: 组织管理员新建测试用例标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectTestcaseTag + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectTestcaseTag method: POST headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: json payload: - pmsEnterpriseId: 1 + pmsEnterpriseId: ${env_enterprise_id} tagName: 新标记-${generate_words}_${generate_words} description: ${generate_paragraph} color: ${faker.hex_color()} diff --git a/interface/pms/settings/tag_setting/work_item_tag/test_pms_delete_work_item_tag.yaml b/interface/pms/settings/tag_setting/work_item_tag/test_pms_delete_work_item_tag.yaml index f34cb5a..93ad32f 100644 --- a/interface/pms/settings/tag_setting/work_item_tag/test_pms_delete_work_item_tag.yaml +++ b/interface/pms/settings/tag_setting/work_item_tag/test_pms_delete_work_item_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员删除工作项标记 run: true severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags/${work_item_tag_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags/${work_item_tag_id} method: DELETE headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/work_item_tag/test_pms_edit_work_item_tag.yaml b/interface/pms/settings/tag_setting/work_item_tag/test_pms_edit_work_item_tag.yaml index bcfd358..3a616c4 100644 --- a/interface/pms/settings/tag_setting/work_item_tag/test_pms_edit_work_item_tag.yaml +++ b/interface/pms/settings/tag_setting/work_item_tag/test_pms_edit_work_item_tag.yaml @@ -13,7 +13,7 @@ case_info: title: 组织管理员编辑工作项标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags/${work_item_tag_id} + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags/${work_item_tag_id} method: PUT headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/work_item_tag/test_pms_get_work_item_tag_list.yaml b/interface/pms/settings/tag_setting/work_item_tag/test_pms_get_work_item_tag_list.yaml index 96f1d71..207230d 100644 --- a/interface/pms/settings/tag_setting/work_item_tag/test_pms_get_work_item_tag_list.yaml +++ b/interface/pms/settings/tag_setting/work_item_tag/test_pms_get_work_item_tag_list.yaml @@ -13,14 +13,14 @@ case_info: title: 组织管理员获取工作项标记列表接口 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags method: GET headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: params payload: - organizationId: 105 + organizationId: ${env_organization_id} files: assert_response: status_code: 200 @@ -38,7 +38,7 @@ case_info: title: 组织管理员获取工作项标记列表接口 - 通过标记名称搜索 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/interface/pms/settings/tag_setting/work_item_tag/test_pms_new_work_item_tag.yaml b/interface/pms/settings/tag_setting/work_item_tag/test_pms_new_work_item_tag.yaml index dd4a063..6023568 100644 --- a/interface/pms/settings/tag_setting/work_item_tag/test_pms_new_work_item_tag.yaml +++ b/interface/pms/settings/tag_setting/work_item_tag/test_pms_new_work_item_tag.yaml @@ -14,14 +14,14 @@ case_info: title: 组织管理员新建工作项标记 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags method: POST headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: json payload: - organizationId: 105 + organizationId: ${env_organization_id} name: 新标记-${generate_words}_${generate_words} description: ${generate_paragraph} color: ${faker.hex_color()} @@ -41,14 +41,14 @@ case_info: title: 组织管理员新建工作项标记 - 未传name参数 run: True severity: normal - url: ${pms_host}/api/pms/pmsProjectIssues/enterpriseIssueTags + url: ${pms_host}/api/pms/${env_enterprise_identifier}/pmsProjectIssues/enterpriseIssueTags method: POST headers: Content-Type: application/json; charset=utf-8; cookies: ${cookies} request_type: json payload: - organizationId: 105 + organizationId: ${env_organization_id} description: ${generate_paragraph} color: ${faker.hex_color()} files: @@ -56,7 +56,7 @@ case_info: status_code: 200 assertMessage: type_jsonpath: $.msg - expect_value: 请求GitLink失败(项目标记名称不能为空!) + expect_value: 请求失败(项目标记名称不能为空!) assert_type: == assert_sql: extract: diff --git a/interface/pms/test_pms_get_enterprise_user_list.yaml b/interface/pms/test_pms_get_enterprise_user_list.yaml index 8a8291c..53e64c4 100644 --- a/interface/pms/test_pms_get_enterprise_user_list.yaml +++ b/interface/pms/test_pms_get_enterprise_user_list.yaml @@ -12,7 +12,7 @@ case_info: title: 通过企业标识查询企业下用户列表 run: True severity: normal - url: ${pms_host}/api/pms/pmsEnterprise/ByIdentifier/${env_enterprise_identifier}/userList + url: ${pms_host}/api/pms/pmsEnterprise/${env_enterprise_identifier}/userList method: GET headers: Content-Type: application/json; charset=utf-8; diff --git a/utils/requests_utils/request_control.py b/utils/requests_utils/request_control.py index 657c2eb..e9db3e2 100644 --- a/utils/requests_utils/request_control.py +++ b/utils/requests_utils/request_control.py @@ -61,6 +61,7 @@ class RequestPreDataHandle: self.payload_handle() self.files_handle() self.assert_handle() + self.extract_handle() logger.debug(f"\n======================================================\n" \ "-------------End:处理用例数据后--------------------\n" f"用例标题(title): {type(self.request_data.get('title', None))} || {self.request_data.get('title', None)}\n" \ @@ -176,6 +177,12 @@ class RequestPreDataHandle: self.request_data["assert_response"] = data_handle(obj=assert_response, source=self.global_var) # 由于数据库断言里面的变量需要请求响应后进行提取,因此目前不进行处理 + def extract_handle(self): + # 处理提取参数 + extract = self.request_data.get("extract", None) + if extract: + self.request_data["extract"] = data_handle(obj=extract, source=self.global_var) + # ---------------------------------------- 进行请求,请求后的参数提取处理----------------------------------------# class RequestHandle: