Course Price$ 299.00
Introduction to Webservices and API
- What is WebService
- Why we need Webservice based Architecture
- Type Of WebServices
- What is SOAP
- What is REST Full Webservice
- REST vs SOAP Webservice
Introduction and Basics of REST API
- What is Client and Server in Webservice based Architecture
- What is Request and Response
- Type of HTTP response codes
- What is REST API and why it is better than SOAP
REST API Rules and important terminology
- What are the basic rules of REST API
- What is URI
- What is methods in REST api
- Types of REST api methods- GET,POST,PUT,DELETE etc
- When and Why we use these methods in REST api
API Testing Basics
- Why we need api testing .
- What we verify in API testing.
- Way of performing API testing.
Introduction to JSON and XML
- What is XML
- What is JSON
- How to Parse XML file
- How to parse JSON file
- Installation of POSTMAN
- Understanding POSTMAN UI
- Sending the first Request
- Sending different type of REST API using POSTMAN
- POSTMAN Collections
- Creating the first Collection
- Manage environments in POSTMAN
- Manage Variables in POSTMAN
- Introduction to scripts
- Pre-request scripts
- Test Scripts
- Running a Collection
- Using environments in collection runs
- Reading test data from external files
Interview Questions & Answer
1) What is API testing?
API testing : is a type of software testing. It involves testing APIs directly. API is a part of integration testing to check whether the API meets expectations in terms of functionality, reliability, performance, and security of applications. Multiple API system can perform API testing. In API testing, our primary focus is on Business Logic Layer of the software architecture.
2) What is API framework?
API framework is self-explanatory. API framework is described by the config. Values for test run and for holding the configurable parts, config file is used. Automated test cases must represent in “ parse-table” format within config file. When testing API, it is not necessary to test each API so the config file have some section whose all API are activated for that specific run.
3) What are web services?
For any web application, there are two ends –client and server. In which requests are sent by the client side and are responded back by the server side. Web services are web-enabled components that helps to communicate the data between the client and server. This can be easily accessed over the internet. It works on the concept of XML messaging concepts
4) Name some of the API testing tools.
5) What is REST and RESTFUL?
REST represents REpresentational State Transfer; it is a relatively new aspect of writing web API.
RESTFUL is referred for web services written by applying REST architectural concept are called RESTful services, it focuses on system resources and how state of resource should be transported over HTTP protocol to different clients written in different language. In RESTFUL web service HTTP methods like GET, POST, PUT and DELETE can be used to perform CRUD operations.
6) What is a RESTFul Web Services?
Mostly, there are two kinds of Web Services which should be remembered in your next API testing interview:
SOAP : (Simple Object Access Protocol): An XML-based method to expose web services.
REST : (Representational State Transfer): Web services developed in the REST style are referred to as RESTful web services. These web services use HTTP methods to implement the concept of REST architecture. A RESTful web service usually defines a URI, Uniform Resource Identifier a service, provides resource representation like JSON and a set of HTTP methods.
7) Explain the architectural style for creating web API?
The architectural style for creating web api are
- HTTP for client server communication
- XML/JSON as formatting language
- Simple URI as the address for the services
- Stateless communication
8) Mention what tools are required to test your web API?
SOAPUI tool for SOAP WS and Firefox "poster" plugin for RESTFUL services.
9) Mention what are the HTTP methods supported by REST?
HTTP methods supported by REST are:
GET : It requests a resource at the request URL. It should not contain a request body as it will be discarded. Maybe it can be cached locally or on the server.
POST : It submits information to the service for processing; it should typically return the modified or new resource
PUT : At the request URL it update the resource
DELETE : At the request URL it removes the resource
OPTIONS : It indicates which techniques are supported
HEAD : About the request URL it returns meta information
10) Mention some key characteristics of REST?
Some key characteristics of REST includes
- REST is stateless, therefore the SERVER has no state (or session data)
- With a well-applied REST API, the server could be restarted between two calls as every data is passed to the server
- Web service mostly uses POST method to make operations, whereas REST uses GET to access resources
11) Mention which markup language can be used in restful web api?
JSON and XML are the two markup language that can be used in restful web api
12) List out the tools or API for developing or testing web api?
Testing tools for web services for REST APIs includes
- Spring REST web service using MVC
- Jersey API