-
Notifications
You must be signed in to change notification settings - Fork 33
/
multi-variable-check.har
66 lines (66 loc) · 1.45 KB
/
multi-variable-check.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
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
65
66
{
"log": {
"options": {},
"pages": [],
"entries": [
{
"comment": "",
"checks": [],
"variables": [
{
"type": 0,
"name": "firstName",
"expression": "$.first_name"
},
{
"type": 0,
"name": "lastName",
"expression": "$.last_name"
}
],
"request": {
"url": "http://test.k6.io",
"method": "GET",
"queryString": [],
"headers": []
}
},
{
"comment": "",
"checks": [
{
"type": 1,
"expression": "$.mixed",
"condition": 2,
"value": "${firstName} bar"
},
{
"type": 1,
"expression": "$.first_name",
"condition": 2,
"value": "${firstName}"
},
{
"type": 1,
"expression": "$.full_name",
"condition": 2,
"value": "${firstName} ${lastName}"
},
{
"type": 1,
"expression": "$.full_name_plus_random_strings",
"condition": 2,
"value": "Hello ${firstName}-${lastName}, what's up?"
}
],
"variables": [],
"request": {
"url": "http://test.k6.io",
"method": "GET",
"queryString": [],
"headers": []
}
}
]
}
}