-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-local.yml
59 lines (59 loc) · 1.4 KB
/
test-local.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
59
config:
# This is a test server run by team Artillery
# It's designed to be highly scalable
target: http://localhost:8080
phases:
- duration: 120
arrivalRate: 1
name: Stable request
# - duration: 60
# arrivalRate: 10
# name: Suspend phase
# - duration: 30
# arrivalRate: 10
# rampTo: 10
# name: Suspend phase
# - duration: 30
# arrivalRate: 10
# rampTo: 10
# name: Spike phase
# Load & configure a couple of useful plugins
# https://docs.art/reference/extensions
plugins:
ensure: {}
apdex: {}
metrics-by-endpoint: {}
apdex:
threshold: 100
ensure:
thresholds:
- http.response_time.p99: 180
- http.response_time.p95: 150
scenarios:
- flow:
- loop:
- loop:
- get:
url: '/employee?page={{ $loopCount }}'
count: 10
- post:
url: '/employee'
json:
employeeNumber: "500000"
birthDate: "1999-03-01"
firstName: "sg"
lastName: "lee"
gender: "M"
hireDate: "2006-03-01"
- put:
url: '/employee/500000'
json:
employeeNumber: "500000"
birthDate: "1999-03-01"
firstName: "sg"
lastName: "lee"
gender: "M"
hireDate: "2006-06-01"
- delete:
url: '/employee/500000'
count: 3