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