Professional Documents
Culture Documents
By Keshav
www.tothenew.com
Agenda of API Testing
API and API Testing Right tool for API Testing How API works ?
www.tothenew.com
What is API?
www.tothenew.com
What is API Testing?
www.tothenew.com
API Workflow
www.tothenew.com
API Workflow
Response
Request
Response
www.tothenew.com
REST API
www.tothenew.com
HTTP Methods
www.tothenew.com
What is API Testing ?
PUT PUT
REQUEST RESPONSE
GET GET
REQUEST RESPONSE
POST POST
REQUEST RESPONSE
DELETE DELETE
REQUEST RESPONSE
www.tothenew.com
REST API Inputs
www.tothenew.com
GET Methods
Request Response
Status : 200 OK
GET
{
message: "Beam Detail fetched successfully"
data:
https://uat-beam- {
ms.livfame.com/v1/event/de name : "name goes here"
eventStatus : "COMPLETED"
tail?beamId=7767 startTime : "10 Oct 2015
14:25:00"
viewCount : "2354"
likeCount : 88
disLikeCount : 99
commentCount : 5
duration : 1490
performerId : 10244
}
status: 1
}
www.tothenew.com
POST Methods
Request Response
Status : 200 OK
POST
{
"status": 1,
URL : http://qa- "message": "Login successfully",
"data": {
api.livfame.com/api/v11_1
"access_token": "rcd676up5kit3akd93a",
{
"email": "admn.famelive@gmail.com",
"email“ : "kkashyap1707@gmail.com", "roles": "[ROLE_USER]",
"password“ : "admin", "userId": "1",
"medium“ : "MANUAL", "isAccountVerified": true,
"apiVersion“ : "1.0", "timeZoneName": "GMT +05:30 - New Delhi",
"appKey“ : "myAppKey", "timeZoneId": 8,
"actionName“ : "login" "fameName": "admin.famelive",
} "imageName": "zsdasdaw",
"userChannel": "a468784e6e2a9874619e7f",
},
"code": 10001
}
www.tothenew.com
PUT Methods
Request Response
Status : 200 OK
GET
{
message: "Beam Detail fetched successfully"
https://uat-beam- data:
{
ms.livfame.com/v1/event/detai name: "name goes here"
l?beamId=7767 eventStatus: "COMPLETED"
startTime: "10 Oct 2015 14:25:00"
viewCount: "2354"
likeCount: 88
disLikeCount: 99
commentCount: 5
duration: 1490
performerId: 10244
}
status: 1
}
www.tothenew.com
DELETE Methods
Request Response
Status : 200 OK
GET
{
message: "Beam Detail fetched successfully"
https://uat-beam- data:
{
ms.livfame.com/v1/event/detai name: "name goes here"
l?beamId=7767 eventStatus: "COMPLETED"
startTime: "10 Oct 2015 14:25:00"
viewCount: "2354"
likeCount: 88
disLikeCount: 99
commentCount: 5
duration: 1490
performerId: 10244
}
status: 1
}
www.tothenew.com
HTTP Response Codes
Some HTTP response codes, which are often used with REST:-
www.tothenew.com
Common Types of Tests in API Testing
www.tothenew.com
Advantages of API Testing
Time Effective
Language Independent
Test Core Functionality
Reduce Testing cost
Reduced Risks
www.tothenew.com
Challenges of API Testing
www.tothenew.com
Basic Inputs
URL : http://qa-api.livfame.com/api/v11_1
Header Method
www.tothenew.com
Email us at:
Keshav.Kashyap@tothenew.com
Our Office
Client Location
www.tothenew.com