-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.postman_collection.json
More file actions
62 lines (62 loc) · 1.3 KB
/
Copy pathtests.postman_collection.json
File metadata and controls
62 lines (62 loc) · 1.3 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
{
"info": {
"_postman_id": "107048ba-01c4-45e7-b381-e92642190084",
"name": "Morvie",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "18281405"
},
"item": [
{
"name": "MovieMicroservice",
"item": [
{
"name": "Get popular movie",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"Body matches string\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"page\");\r",
" pm.expect(pm.response.text()).to.include(\"original_title\");\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://localhost:7182/api/movie/popular",
"protocol": "https",
"host": [
"localhost"
],
"port": "7182",
"path": [
"api",
"movie",
"popular"
]
}
},
"response": []
},
{
"name": "Get upcoming movies",
"request": {
"method": "GET",
"header": []
},
"response": []
}
]
}
]
}