mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
40 lines
839 B
YAML
40 lines
839 B
YAML
config:
|
|
name: "think time test demo"
|
|
variables:
|
|
app_version: v1
|
|
user_agent: iOS/10.3
|
|
base_url: "https://postman-echo.com"
|
|
think_time:
|
|
strategy: random_percentage
|
|
setting:
|
|
min_percentage: 1.0
|
|
max_percentage: 1.5
|
|
limit: 4
|
|
verify: False
|
|
|
|
teststeps:
|
|
- name: get with params
|
|
request:
|
|
method: GET
|
|
url: /get
|
|
headers:
|
|
User-Agent: $user_agent,$app_version
|
|
validate:
|
|
- check: status_code
|
|
assert: equals
|
|
expect: 200
|
|
msg: check status code
|
|
- name: think time 1
|
|
think_time:
|
|
time: 3
|
|
- name: post with params
|
|
request:
|
|
method: POST
|
|
url: /post
|
|
headers:
|
|
User-Agent: $user_agent,$app_version
|
|
validate:
|
|
- check: status_code
|
|
assert: equals
|
|
expect: 200
|
|
msg: check status code |