代码优化
This commit is contained in:
@@ -35,7 +35,6 @@ teststeps:
|
||||
expect_value: success
|
||||
assert_type: ==
|
||||
type_jsonpath: $.message
|
||||
assert_sql:
|
||||
extract:
|
||||
case_dependence:
|
||||
setup:
|
||||
|
||||
@@ -30,7 +30,6 @@ teststeps:
|
||||
message: 断言接口返回包括字段project_categories
|
||||
expect_value: project_categories
|
||||
assert_type: contains
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
repo_category_ids: $.project_categories[*].id
|
||||
|
||||
@@ -25,7 +25,6 @@ teststeps:
|
||||
files:
|
||||
validate:
|
||||
status_code: 200
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
ignores_id: $.ignores[0].id
|
||||
|
||||
@@ -30,7 +30,6 @@ teststeps:
|
||||
message: 断言接口返回包括字段project_languages
|
||||
expect_value: project_languages
|
||||
assert_type: contains
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
repo_language_ids: $.project_languages[*].id
|
||||
|
||||
@@ -26,7 +26,6 @@ teststeps:
|
||||
files:
|
||||
validate:
|
||||
status_code: 200
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
licenses_ids: $.licenses[*].id
|
||||
|
||||
@@ -46,7 +46,6 @@ teststeps:
|
||||
message: 断言接口返回的存在id
|
||||
expect_value: id
|
||||
assert_type: contains
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
project_id: $.id # 项目id
|
||||
@@ -81,7 +80,6 @@ teststeps:
|
||||
expect_value: ${login}
|
||||
assert_type: ==
|
||||
type_jsonpath: $.login
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
repo_id: $.id
|
||||
@@ -132,7 +130,6 @@ teststeps:
|
||||
expect_value: ${login}
|
||||
assert_type: ==
|
||||
type_jsonpath: $.login
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
repo_id: $.id
|
||||
|
||||
@@ -30,7 +30,6 @@ teststeps:
|
||||
expect_value: TOC出库订单导入模板(2).xlsx
|
||||
assert_type: ==
|
||||
type_jsonpath: $.title
|
||||
assert_sql:
|
||||
extract:
|
||||
type_jsonpath:
|
||||
attachment_id: $.id
|
||||
@@ -61,5 +60,4 @@ teststeps:
|
||||
expect_value: 请登录后再操作
|
||||
assert_type: ==
|
||||
type_jsonpath: $.message
|
||||
assert_sql:
|
||||
extract:
|
||||
|
||||
Reference in New Issue
Block a user