1+ {
2+ "info" : {
3+ "_postman_id" : " 35183f5f-9559-48a2-ad97-705822ec8e01" ,
4+ "name" : " JSONPlaceholder API Contract Tests" ,
5+ "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json" ,
6+ "_exporter_id" : " 50210709" ,
7+ "_collection_link" : " https://www.postman.com/saoudiam-97-2155897/workspace/jsonplaceholder-api-tests/collection/50210709-35183f5f-9559-48a2-ad97-705822ec8e01?action=share&source=collection_link&creator=50210709"
8+ },
9+ "item" : [
10+ {
11+ "name" : " Smoke Tests" ,
12+ "item" : [
13+ {
14+ "name" : " GET All Posts (Health Check)" ,
15+ "event" : [
16+ {
17+ "listen" : " test" ,
18+ "script" : {
19+ "exec" : [
20+ " pm.test(\" Status code is 200\" , function () {\r " ,
21+ " pm.response.to.have.status(200);\r " ,
22+ " });\r " ,
23+ " pm.test(\" Response time is less than 200ms\" , function () {\r " ,
24+ " pm.expect(pm.response.responseTime).to.be.below(500);\r " ,
25+ " });"
26+ ],
27+ "type" : " text/javascript" ,
28+ "packages" : {},
29+ "requests" : {}
30+ }
31+ }
32+ ],
33+ "request" : {
34+ "method" : " GET" ,
35+ "header" : [],
36+ "url" : {
37+ "raw" : " {{baseUrl}}/posts" ,
38+ "host" : [
39+ " {{baseUrl}}"
40+ ],
41+ "path" : [
42+ " posts"
43+ ]
44+ }
45+ },
46+ "response" : []
47+ },
48+ {
49+ "name" : " GET Single Post (Health Check)" ,
50+ "event" : [
51+ {
52+ "listen" : " test" ,
53+ "script" : {
54+ "exec" : [
55+ " pm.test(\" Status code is 200\" , function () {\r " ,
56+ " pm.response.to.have.status(200);\r " ,
57+ " });\r " ,
58+ " pm.test(\" Response time is less than 200ms\" , function () {\r " ,
59+ " pm.expect(pm.response.responseTime).to.be.below(500);\r " ,
60+ " });"
61+ ],
62+ "type" : " text/javascript" ,
63+ "packages" : {},
64+ "requests" : {}
65+ }
66+ }
67+ ],
68+ "request" : {
69+ "method" : " GET" ,
70+ "header" : [],
71+ "url" : {
72+ "raw" : " {{baseUrl}}/posts/1" ,
73+ "host" : [
74+ " {{baseUrl}}"
75+ ],
76+ "path" : [
77+ " posts" ,
78+ " 1"
79+ ]
80+ }
81+ },
82+ "response" : []
83+ }
84+ ]
85+ }
86+ ]
87+ }
0 commit comments