Posts

Java Class and Object

Image
Classes and Objects are the fundamental building blocks of OOPS (Object Oriented Programming). A java object is a physical and logical entity where as java class is logical entity. In this tutorial, we will learn about Java Objects and Classes. What is a Class in Java? Before creating an object in Java, you need to define a class. A class is a blueprint from which object is created.  We can think of class as a sketch (prototype) of a house. It contains all the details about the floors, doors, windows etc. Based on these descriptions we build the house. House is the object. Since, many houses can be made from the same description, we can create many objects from a class. A class can have following entities inside it: Fields (Variables) Methods Constructor Nested Class Interface Blocks Syntax to define a Java Class: public class Dog { String breed; int age; String color; public void barking () { } public void hungry () { } } Explanation of the example code:

REST API Automation Testing with Postman Tutorial

Image
Automation has now become a norm across sectors, and when used in testing, it can undoubtedly improve the depth and scope of the tests. Since it is not possible to test everything manually, so using Postman automation can save our time as well as efforts. Postman is the ultimate tool for API automation. In this blog, we will be taking a look at how to  achieve API automation using Postman. Example Scenario for Automation using Postman: Let’s say, a login API generates a Token (oAuth, JWT etc) and refreshes it every hour. The API utilizes this token to get the expected response. If we don’t automate, we will have to copy and paste this every time for each API. And for a test suite containing 100 API’s, a good amount of manual effort will go into pasting the token for each API. By introducing automation, this process of updating the newly generated taken can be automated. Let’s automate the Login API through Postman Open Postman Application and create a collection. Then make a P

What are Java Methods?

In this post, we'll learn everything about Java Methods. Table of Contents What is a Java Method ? How to Create a Method ? What is a Main method in Java ? Types of Java Methods Parameterized Methods Non - Parameterized Methods How to Call a Method ? Static Methods Non - Static Methods 1. What is a method in Java? A method in java is a group of instructions that are performed together to do a specific task. Methods are generally known as Functions in other languages like C, C++ etc.  Let's say you want to print numbers 1 to 10 in your program multiple times. So, if you have created a method with code which can print 1 to 10 numbers then you can just call that method multiple times in your program and you do not have to write the code to print 1 to 10. Java Methods have some features, let's take a look at them: Java Method can be public, private, protected or default. Java method can or cannot return a value. If you do not want your method to return anything, you have to dec

How to Test a Website or Web Application?

Image
In this post you will learn the guidelines and checklist for Web Application Testing. All these guidelines will help you become a good Website Tester. 1. Functionality:      1.1   Links      Objective is to check for all the links in the website.      1.1.1          All Internal Links      1.1.2          All External Links      1.1.3          All mail to links      1.1.4          Check for orphan Pages      1.1.5          Check for Broken Links 1.2   Forms       Test for the integrity of submission of all forms.      1.2.1          All Field Level Checks      1.2.2          All Field Level Validations.      1.2.3          Functionality of Create, Modify, Delete & View.      1.2.4          Handling of Wrong inputs (Both client & Server)      1.2.5          Default Values if any      1.2.6          Optional versus Mandatory fields. 1.3   Cookies       Check for the cookies that has to be enabled and how it has to be expired.