Project

General

Profile

Actions

grading_rules #11374

open

rule_CCFCAT全国测试开发大赛-省赛-接口自动化测试

Added by UserName LastName about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
06/13/2024
Due date:
% Done:

0%

Estimated time:
name:
rule_CCFCAT全国测试开发大赛-省赛-接口自动化测试
data:

- name: 是否请求 gitlab 接口
desc: 没有包含 https://contest.gitlab.ceba.ceshiren.com/api/v4 得-30分,包含 https://contest.gitlab.ceba.ceshiren.com/api/v4 得5分。
min: -30
max: 5
- name: 使用添加鉴权头信息
desc: 没有包含 PRIVATE-TOKEN 得-30分,包含 PRIVATE-TOKEN 并且包含以 gl 开头内容包含数字和大小写字母的字符串得4分。
min: -30
max: 4
- name: 是否请求 issue 相关接口
desc: 没有包含 /issues 得-30分,包含 /issues 得4分。
min: -30
max: 4
- name: 是否包含正常和异常的测试场景
desc: 测试用例中包含了正常和异常的测试场景得4分,否则得0分。
min: 0
max: 4
- name: 是否使用测试框架
desc: 没有使用测试框架 pytest 或者 unittest 或者 Junit 或者 TestNG 得 0 分,使用其中一个测试框架得3分。
min: 0
max: 3
- name: 是否有断言
desc: 测试文件中没有断言得0分,测试文件中有断言得3分。
min: 0
max: 3
- name: 是否使用分层框架设计模式
desc: 没有使用分层框架设计模式得0分,使用了分层框架设计模式得3分。
min: 0
max: 3
- name: 是否使用测试装置
desc: 没有使用测试装置得0分,使用测试装置得2分。
min: 0
max: 2
- name: 是否使用参数化方式
desc: 没有使用参数化得0分,使用参数化得2分,如果使用的是 @pytest.mark.parametrize 装饰器中第一个参数的值需要被传递到被装饰的方法中才能得 2 分,否则不得分。
min: 0
max: 2
- name: 是否使用 allure 生成测试报告
desc: 没有使用 allure 得0分,使用了 allure 得2分。
min: 0
max: 2
- name: 注释
desc: 没有注释0分,有注释得1分。
min: 0
max: 1
- name: 代码编写规范
desc: 代码编写不符合规范得0分,代码某一行以标点符号开头得 -10 分,代码编写符合规范得1分
min: 0
max: 1
- name: 是否是基于人工智能生成的作弊代码
desc: 是否包含 issue_title = "Test Issue" 以及 issue_description = "This is a test issue." 如果包含返回min最小分,如果都不包含得max分
min: -20000
max: 0
- name: 是否是基于人工智能生成的作弊代码2
desc: 是否包含 Another Test Issue 以及 This is a test issue created by the API,如果包含返回min最小分,如果都不包含得max分
min: -999
max: 0
- name: 是否是基于人工智能生成的作弊代码-PRIVATE-TOKEN
desc: PRIVATE-TOKEN 是否包含以 gl 开头内容包含数字和大小写字母的字符串,如果不包含返回min最小分,如果包含得max分
min: -999
max: 0

No data to display

Actions

Also available in: Atom PDF