-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-test.yml
58 lines (58 loc) · 1.17 KB
/
api-test.yml
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
52
53
54
55
56
57
58
config:
target: 'http://localhost:3000'
phases:
- duration: 60
arrivalRate: 5
- duration: 120
arrivalRate: 5
rampTo: 50
# - duration: 600
# arrivalRate: 50
variables:
- email:
- password:
- "admin"
ensure:
p95: 300
maxErrorRate: 1
scenarios:
# - name: "Page progression"
# weight: 3
# flow:
# - get:
# url: "/api/blogs"
# - name: "User Login"
# weight: 1
# flow:
# - get:
# url: "/"
# - post:
# url: "/api/auth/login"
# json:
# email: "[email protected]"
# password: "admin"
# capture:
# json: "$.token"
# as: "token"
# - get:
# url: "/api/users/me"
# headers:
# authorization: "Bearer {{ token }}"
- name: "No Login"
weight: 5
flow:
- get:
url: "/home"
- get:
url: "/css/main.css"
- get:
url: "/js/vendors~main.js"
- get:
url: "/js/main.js"
- get:
url: "/casestudy"
- get:
url: "/about"
- get:
url: "/contact"