-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathload_test.yaml
More file actions
64 lines (58 loc) · 1.48 KB
/
load_test.yaml
File metadata and controls
64 lines (58 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
61
62
63
64
init:
testEndpoint: 127.0.0.1:8988
pipeline:
startEndpoint:
action: http/endpoint:listen
port: 8988
rotate: true
baseDirectory: test/stress
init:
action: print
message: starting load testing
loadTest:
action: 'http/runner:load'
'@repeat': 1000000
assertMod: 1024
threadCount: 10
options:
TimeoutMs: 500
requests:
- Body: '000'
Method: POST
URL: http://${testEndpoint}/send0
Expect:
Body: '1000'
Code: 200
- Body: '111'
Method: POST
URL: http://${testEndpoint}/send1
Expect:
Body: '1111'
Code: 200
- Body: '222'
Method: POST
URL: http://${testEndpoint}/send2
Expect:
Body: '1222'
Code: 200
- Body: '333'
Method: POST
URL: http://${testEndpoint}/send3
Expect:
Body: '3333'
Code: 200
- Body: '444'
Method: POST
URL: http://${testEndpoint}/send4
Expect:
Body: '1444'
Code: 200
- Body: '555'
Method: POST
URL: http://${testEndpoint}/send5
Expect:
Body: '1555'
Code: 200
summary:
action: print
message: 'Count: $loadTest.RequestCount, QPS: $loadTest.QPS: Response: min: $loadTest.MinResponseTimeInMs ms, avg: $loadTest.AvgResponseTimeInMs ms max: $loadTest.MaxResponseTimeInMs ms, errors: $loadTest.ErrorCount, timeouts: $loadTest.TimeoutCount'