forked from grafana/har-to-k6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.har
37 lines (37 loc) · 1.08 KB
/
variable.har
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
{
"log": {
"entries": [
{
"index": 0,
"request": {
"url": "http://api.example.com/authenticate",
"method": "POST",
"postData": {
"mimeType": "application/json",
"text": "{\"username\":\"admin\",\"password\":\"123\"}"
}
},
"variables": [
{
"name": "accessToken",
"type": 0,
"expression": "user.token"
}
]
},
{
"index": 1,
"request": {
"url": "http://api.example.com/users",
"method": "GET",
"headers": [
{
"name": "Authorization",
"value": "Bearer ${accessToken}"
}
]
}
}
]
}
}