abstract class which is used for achieving partial abstraction. Unlike abstract class an interface is used for full abstraction. Abstraction is a process where you show only “relevant” data and “hide” unnecessary details of an object from the user Interface looks like a class but it is not a class. An interface can have methods …
Continue reading Interface in java with example programsUncategorized
TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration. Introduction of TestNG TestNG, where NG stands for “next generation” is a test automation framework inspired by JUnit …
Continue reading TestNG TutorialsWhy Use Maven? Some of the key reasons Maven is used are: It simplifies the build process and provides a uniform system It handles compilation, distribution, dependency management and other tasks efficiently. It increases reusability. It reduces steps, like adding jar files to the project library, building reports, executing JUnit test cases, creating jar/war/ear files …
Continue reading Maven TutorialWhat Is Plain Old Java Object (POJO) ? – Full Stack QA (viralqa.com) How To Create POJO Classes Of A JSON Object Payload – Full Stack QA (viralqa.com) How To Create POJO Classes Of A JSON Array Payload – Full Stack QA (viralqa.com) How To Create POJO Classes Of A Nested JSON Payload – Full …
Continue reading POJOAPI Testing Overview Http methods for RestFul services Overview about RestAssured Setup a Basic REST Assured Maven Project Reason for Static Import In RestAssured Write First GET REST Assured Test Write First POST Request In REST Assured Write First PUT Request In REST Assured Write First DELETE Request In REST Assured Write API Response In …
Continue reading RestAssured AutomationMost commonly used HTTP methods are GET, POST, PUT, PATCH and DELETE HTTP POST This method is used to Create new resources on server. normally Http 201 (Created) response is returned by server along with the ID of the newly created resource. Server may return 409 (Conflict), if the resource already exists or 404 (Not …
Continue reading Http methods for RestFul servicesLet us say that we need to get the weather data for my city today. To do this I will need to ask someone who knows about the weather conditions in my city. Assuming that computers are not yet available, we would typically look at the day’s newspaper or may be listen to the radio. …
Continue reading Client Server ArchitectureAPI API stands for Application Programming Interface. API is a set of routines, protocols, and tools for building Software Applications. Routine: a program that performs a particular task. Routine is also known as procedure, function, or subroutine. Protocols: A format for transmitting data between two systems. API acts as an interface between two software applications …
Continue reading API Testing OverviewCollection Framework Need to collection If we need to store one value one variable is required 2 values two variables are required but if we need 10000 values to stored 10000 variables are required. To overcome this problem Arrays are available. Eg:- But there are limitations of arrays ie:- Arrays are fixed in size. …
Continue reading Collection in JavaAn enum is a special type of data type which is basically a collection (set) of constants. Internal Implementation of enum Enum declaration Use of Enum in Switch-Case Statements Here is the example to demonstrate the use of enums in switch-case statements. public enum Directions{ EAST, WEST, NORTH, SOUTH } public …
Continue reading Enum Introduction