-
Notifications
You must be signed in to change notification settings - Fork 7
/
log_csv.yaml
42 lines (36 loc) · 947 Bytes
/
log_csv.yaml
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
# Run this file with the test-server, then specify the PORT as a parameter to this try or run script.
vars:
port: "${PORT}"
load_pattern:
- linear:
from: 10%
to: 100%
over: 15s
providers:
a: # Counter for creating groups
range: {}
loggers:
csv_data:
to: 'log-results-${epoch("ms")}.csv' # log to a file with a timestamp. timestamp set at test start
pretty: false
test:
to: stdout
endpoints:
- method: POST
url: http://localhost:${port}
headers:
Accept-Language: en-us
Content-Type: application/json
Authorization: Bearer test-token
body: '{
"a":${a},
"data":"test data ${a}",
"test":true
}'
peak_load: 1hps
logs:
csv_data:
select: '`${response.body.a},"${response.body.data}",${response.body.test},${response.status},${stats.rtt}`'
where: response.status == 200
test:
select: response.status