7. How REST API Testing Works || API Testing Basics || Application Programming Interface
Please use the following link to install the Katalon Studio: https://katalon.com/sign-up?getr=krishnaRef Check Tubebuddy Features Here: https://www.tubebuddy.com/krishnasakinala How #REST API #Testing Works? =========================== A REST request composed of the following parts: - An HTTP VERB that determines what ACTION to take? - A URI/URL (Uniform Resource Locator) that specifies the location of request. - HTTP HEADERS that give data to the server about the request. - A request BODY provides further details for the request (sometimes empty). Most useful #HTTP VERBS: ======================= - GET - POST - PUT - DELETE - PATCH GET in REST: =========== - The HTTP GET method is used to RETRIEVE DATA. - It is a READ ONLY call and data cannot be modified with GET. - If it is successful request, without any errors, then the status code is 200(OK) is received along with the data requested in the particular format which is generally XML or JSON. - GET method is considered as a SAFE method to call as no corruption or modification of data will be done. POST in REST: ============ - The HTTP POST method is a WRITE method. - It is mainly used to create a new resource by providing the input in the form of JSON or XML format. - When a POST request is made, a new resource is created with the values provided along with it. - If it is an error free call, then the status code is 201. - POST methods are responsible for MODIFICATION of data and should be handled carefully. - These methods are not idempotent and thus can result in errors or duplicate records if called more than one time. PUT in REST: ============ - The HTTP PUT method is more like an UPDATE command. - It is used to CHANGE the value of any resource whose original value was something else. - PUT method can also be used to create resources but only if the request is from client and not the server. - PUT methods are also NOT SAFE as these are responsible for resource modification. - But if we call the same PUT request again then no changes are mode. DELETE in REST: =============== - The HTTP DELETE method, as the name suggests, it is used to delete a resource. - If the request is made successfully then the status code is 200(OK) - These are also idempotent as if a resource is deleted once it cannot affect it. PATCH in REST: ============= - The HTTP PATCH method, replaces part of the a record with the new information. HTTP HEADERS can give more information to the server such as: - Authorization: Credentials of the user making a request. - The HOST : Includes domain and port number of the user making the request. - The Content-Type: The format of the data given in the body of the request. - The request body is utilized when making a POST, PUT or PATCH requests. The BODY determines precisely what data added to the database. It is generally in - JavaScript Object Notation(JSON) format - Extensible Markup Language (XML) format Protractor with Javascript - https://bit.ly/2jZ5XkX Selenium Java Tutorial - https://bit.ly/2keM2Pb Jasmine Tutorial - https://bit.ly/2lv0m6l Java - https://bit.ly/2lylSHq TestNG Tutorial - https://bit.ly/2lTpB2d PdfUtil - https://bit.ly/2keBDTA Shutterbug - https://bit.ly/2lX6xQV Selenium Realtime Examples - https://bit.ly/2k0FqDQ Java Interview Questions - https://bit.ly/2kopsmY Katalon Studio - https://bit.ly/2lWhyln Database Testing - https://bit.ly/2ko4jcJ Fillo Excel API - https://bit.ly/2jRyWqC Ashot - https://bit.ly/2kqXk2y Extent Reports Version 3 Java - https://bit.ly/2k0FweG Robot class - https://bit.ly/2lshPfJ Sikuli - https://bit.ly/2lTq2cR Excel Read Write using Java - https://bit.ly/2lyXRj8 AutoIt - https://bit.ly/2lyIYgM Extent Reports Version 2 C# - https://bit.ly/2kqIY2d Extent Reports Version 2 Java - https://bit.ly/2k0XkGA Facebook : https://www.facebook.com/automationtesting2016/ LinkedIn : https://www.linkedin.com/feed/?trk=hb_signin Google+ : https://plus.google.com/105286300926085335367 Twitter : https://twitter.com/krishnasakinala Website : http://automationtesting.in/
Download
0 formatsNo download links available.