-
Notifications
You must be signed in to change notification settings - Fork 0
/
readSo.txt
59 lines (28 loc) · 1.06 KB
/
readSo.txt
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
API test
Website link : https://restful-booker.herokuapp.com
Requirements
JDK 8 Install (Link: https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html)
Node JS Install (Link: https://nodejs.org/en/)
Environment Variable Setup
Postman (Link: https://www.postman.com/)
Method:
1. Post
2. Get
3. Put
4. Delete
API :
1. https://restful-booker.herokuapp.com/booking/
2. https://restful-booker.herokuapp.com/booking/id
3. https://restful-booker.herokuapp.com/auth
4. https://restful-booker.herokuapp.com/booking/1
Newman
Install Command: npm install -g newman
Run Command:
newman run “Path/CollectionName.json” -e Path/EnvironmentName.json
newman run “Collection Link” -e “Path”/EnvironmentName.json
Report:
Install: npm install -g newman-reporter-html
npm install -g newman-reporter-htmlextra
Run Command:
newman run “Collection Link” -e EnvironmentName.json -r cli,html
newman run “Collection Link” -e EnvironmentName.json -r cli,htmlextra