Anda di halaman 1dari 3

❖ What are WebServices?

Services over web in a client server architecture that involves request and response typically
using HTTP protocol with data transfer using JSON or XML file formats.

❖ What is API testing?

It is a type of Software testing that involves testing API’s directly and also as part of integration
testing to check whether API meets expectations in terms of functionality, reliability, performance
and security of application.
In API testing our main focus will be on business logic layer of the software architecture.

❖ Why the web applications are built on RESTful architecture commonly nowadays?
By doing this the ​services or operations ​are exposed through API’s which can be used in
other applications.
Ex: CinePolis and PVR in ​BookMyShow, ​weather​.com exposed their weather API’s were weather
info can be accessed from other applications, ​JIRA ​has exposed their API which is integrated
in my project to submit defects.

Note:​ All Google applications, Jira, Git, and Facebook are built on RESTful architecture.

❖ Explain RESTful architecture?

o RESTful architecture uses Client-Server architecture over web using HTTP protocol.
o It uses request and response for communication between client and the server (App Server).
o The request would contain the method or verb like GET, POST, PUT, DELETE, URI or the
endpoint and parameters if any.
o We may also pass the payload using XML or JSON file format.
o Similarly the response is send by the server which typically contains response code or status
code and data if any through XML or JSON file format.

❖ What is the importance of webservice testing/API testing?

Since the data transfer happens on the web using webservice and the response send from the
server is reflected in the UI. It becomes important to test if proper request is being sent and getting
the expected response from the server.

❖ How can you test WebServices?

We can test it manually or automate the testing.

❖ How do you test it manually?

Using tools like Postman or SOAP UI.

❖ What will you test in WebServices?

In this we do this testing of business rules of the application to ensure that all implemented
functions are working as expected; i.e. basically functional testing.

❖ What types of testing can be done?

o Functional Testing.
o Load Testing.
o End to End Testing.
o UI Testing.
o Security Testing.
o Validation Testing.

❖ What are the different tools for API testing?
o Soap UI.
o Postman.
o Katalon.
o Assertible.
o Apigee.
o JMeter.
o Karate DSL.
o Tricents.
o REST- Assured.

❖ How can you test API/WebServices manually?

Manually we test using Postman, SOAP UI.

❖ How can you automate the WebServices testing ?

We can use Kataloons, REST-Assured, and Karate DSL, Python WebServices modules or C#

❖ What is endpoint?
o An end point is a reference to an URI that represents the resources.
o WebServices expose one or more endpoints to which webservice messages are addressed.
o Endpoint references convey the information needed to address a webservice endpoint.

❖ What is Swagger?
It is an open-source framework for developing AP’s, interacting and testing.

❖ What is URL?
URL stands for Uniform Resource Locator which is a reference to a web resource that specifies its location
on a network.
URL is a specific type of Uniform Resource Identifier (URI).

❖ What is URI?
URI stands for Uniform Resource Identifier which is a standard for identifying documents using a short
string of numbers, letters and symbols.

❖ What are the characteristics of RESTful webservice?

o Platform independent communication.
o Client server architecture.
o Caching.
o Stateless.
o Layered.
o Using WebServices, two different applications can communicate to each other and exchange

❖ What are the different constraints for RESTful architecture?

o Uniform Interface.
o Stateless.
o Cacheable.
o Client-Server.
o Layered System.
o Code on Demand.

❖ What is Request and Response?
o Request is a message for service from the server.
o Response is the reply/message from the server.

❖ What does Request contains?

Request contains the Verb like GET, POST, PUT, DELETE and the endpoint i.e. base URL plus
resource and parameters if any. It may also contain header, body, cookie information and
authentication information.

❖ What is Header?
An ​HTTP Header is a component of a network packet and we can have request header and
response header.
A ​HTTP Request Header is a component of a network packet sent by a browser or client to the
server to request for a specific page or data on the web server.

A ​Response is defined by its HTTP status code and the data returned in the response body
and/or headers.
A ​HTTP Response Header is a component of a network packet sent by web server to client and
can contain metadata about the data or response sent.
Response Header contains particulars such as type, date and size of the file sent back by the
server as well as information regarding the server.

❖ What is the difference between PUT and POST?

❖ What is the difference between PUT and PATCH?
❖ What is 100x series, 200x, and 300 x?