mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 23:57:37 +08:00
bugfix #96 skip feature: display skip testcases number corretly
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
|
||||
- test:
|
||||
name: create user which existed
|
||||
times: 3
|
||||
times: 2
|
||||
request:
|
||||
url: http://127.0.0.1:5000/api/users/1000
|
||||
method: POST
|
||||
@@ -65,4 +65,25 @@
|
||||
- sum_status_code: ["status_code", 5]
|
||||
- "eq": ["content.success", false]
|
||||
- {"check": "status_code", "comparator": "eq", "expect": 500}
|
||||
- {"check": "content.success", "comparator": "eq", "expect": false}
|
||||
- {"check": "content.success", "comparator": "eq", "expect": false}
|
||||
|
||||
- test:
|
||||
name: create user which existed (skipped)
|
||||
skip: True
|
||||
times: 2
|
||||
request:
|
||||
url: http://127.0.0.1:5000/api/users/1000
|
||||
method: POST
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
device_sn: 'HZfFBh6tU59EdXJ'
|
||||
token: $token
|
||||
json:
|
||||
name: "user1"
|
||||
password: "123456"
|
||||
validate:
|
||||
- "eq": ["status_code", 500]
|
||||
- sum_status_code: ["status_code", 5]
|
||||
- "eq": ["content.success", false]
|
||||
- {"check": "status_code", "comparator": "eq", "expect": 500}
|
||||
- {"check": "content.success", "comparator": "eq", "expect": false}
|
||||
|
||||
Reference in New Issue
Block a user