-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctional-tests.script.json
More file actions
67 lines (67 loc) · 1.32 KB
/
functional-tests.script.json
File metadata and controls
67 lines (67 loc) · 1.32 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
65
66
67
{
"info": {
"_postman_id": "c74ae4d6-1e8b-40b4-9f3e-912ddc30ab4a",
"name": "WelcomeAPI",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "WelcomeMessage",
"event": [
{
"listen": "test",
"script": {
"id": "29501604-43ab-4be6-b970-ff8a87b6369f",
"exec": [
"pm.test(\"Your test name\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.message).to.eql(\"welcome to foa\");",
"});",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/x-www-form-urlencoded",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "file",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "localhost:8080/v1/welcome",
"host": [
"localhost"
],
"port": "8080",
"path": [
"v1",
"welcome"
]
}
},
"response": []
}
]
}