Java Class and Object

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:

Top 25 Selenium Webdriver Commands for Test Automation

In this tutorial you will learn about basic Selenium Webdriver Commands which would be the backbone of your GUI automation scripts. We have divided the commands in to different categories so that you can grasp them without difficulty. Table of Content 1. Selenium Browser Commands 2. Get Commands 3. Navigation Commands 4. Web Element Commands 5. Select Dropdown Commands 1. Selenium Browser Commands Browser commands are the starting point of your Selenium Webdriver script. These commands used to launch browser, maximize it, open URL to be tested and other navigation commands. i. Set Path of browser/driver executable: It is the starting point of the webdriver script.  You have to download the browser executable file for the browser and make sure it is compatible with the version of your browser. For example, for firefox you have to download geckodriver.exe and place in your project. Download geckodriver executable from this link - Si

REST API Automation Testing with Postman Tutorial

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