-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathload-tests.yml
More file actions
51 lines (51 loc) · 1.31 KB
/
Copy pathload-tests.yml
File metadata and controls
51 lines (51 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
config:
target: 'https://YOUR-HOST-HERE'
processor: "helpers/pre-request.js"
timeout: 3
ensure:
p95: 1000
plugins:
expect: {}
environments:
qa:
target: "https://YOUR-HOST-HERE-QA-ENV"
phases:
- duration: 600
arrivalRate: 2
name: "Sustained max load 2/second"
dev:
target: "https://YOUR-HOST-HERE-DEV-ENV"
phases:
- duration: 120
arrivalRate: 0
rampTo: 1
name: "Warm up the application"
- duration: 3600
arrivalCount: 1
name: "Sustained max load 1 every 30 seconds"
defaults:
headers:
content-type: "application/json"
scenarios:
- name: "Send User Data"
flow:
- function: "generateRandomData"
- post:
headers:
uuid: "{{ uuid }}"
url: "/PATH-HERE"
json:
name: "{{ name }}"
expect:
- statusCode: 200
- log: "Sent name: {{ name }} request to /PATH-HERE"
- think: 30
- post:
headers:
uuid: "{{ uuid }}"
url: "/PATH-HERE"
json:
name: "{{ mobile }}"
expect:
- statusCode: 200
- log: "Sent mobile: {{ mobile }} request to /PATH-HERE"