优化测试用例,增加参数,用以支持allure测试报告

This commit is contained in:
floraachy
2023-05-22 09:38:28 +08:00
parent 9dc6f3c82e
commit 5e9f15700a
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
# 公共参数
case_common:
allure_epic: GitLink接口 # 敏捷里面的概念定义史诗相当于module级的标签, 往下是 feature
allure_feature: 登录模块 # 功能点的描述相当于class级的标签, 理解成模块往下是 story
allure_story: 登录接口 # 故事可以理解为场景相当于method级的标签, 往下是 title
# 用例数据
case_info:
- feature: 登录
title: 用户名密码正确,登录成功
url: /api/accounts/login.json
@@ -11,7 +18,7 @@
nickname: $.username
login: $.login
user_id: $.user_id
run: True
run: False
assert_response:
eq:
http_code: 200

View File

@@ -1,3 +1,10 @@
# 公共参数
case_common:
allure_epic: GitLink接口 # 敏捷里面的概念定义史诗相当于module级的标签, 往下是 feature
allure_feature: 开源项目模块 # 功能点的描述相当于class级的标签, 理解成模块往下是 story
allure_story: 新建项目接口 # 故事可以理解为场景相当于method级的标签, 往下是 title
# 用例数据
case_info:
- feature: 新建项目
title: 正确输入各项必填参数,新建项目成功
url: /api/projects.json