WebService Basics
...
Duration
20Course Price
$ 299.004.5 (23)
Introduction to Webservices and API
Introduction and Basics of REST API
REST API Rules and important terminology
API Testing Basics
Introduction to JSON and XML
POSTMAN
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.
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.
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
Generally, there are some common tools of the API testing : Postman, Katalon Studio, SoapUI, Tricentis Tosca.
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.
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.
The architectural style for creating web api are
SOAPUI tool for SOAP WS and Firefox "poster" plugin for RESTFUL services.
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
Some key characteristics of REST includes
JSON and XML are the two markup language that can be used in restful web api
Testing tools for web services for REST APIs includes