Posts

Showing posts from January, 2020

How to start with designing framework for Automation testing

Image
A framework standardizes your code, choosing the right framework for your automation script is paramount such that it blends all technologies in the market such as Test NG for generating reports, Jenkins, Maven, etc. We will be sharing one such Framework in this article. How to start with designing framework for Automation testing - The Framework can be divided into various components such as  - Base class/ Parent class - Consists of driver initialisation or driver properties which will be further re-used by all other sub-class or child class. for example, PageloadTimeOut, implicitWait, deleteAllCookies, getUrl and so on. Let's say we name it as com.qa.base. Page Layer  - Add one class for each screen you are navigating to and the class should contain the web-elements and actions to be performed. for instance, the login page has username, password and submit functionality, we can add web-elements and the method to perform the action. Let's add these classe...

Interview puzzles

Few of the interview puzzles which will baffle you will be shared in this article. Interview puzzles -  How do you pay an employee with 7 unit rod each day such that 1 unit is given per day Solution - Cut the rod into 3 pieces - 1,  2 and 4. 1st day - pay 2 unit rod to employee 2nd day -pay 1 unit rod to an employee and take back 2 unit rod. 3rd day - pay 2 units of the rod. 4th day - pay 4 units and take back 2 and 1 unit. 5th day - Pay 2 unit 6th day - pay 1 unit and take back 2 unit 7th day - pay 2 units of the rod. There are 2 uniform rods, both the rods gets entirely burnt in 60 mins exactly. Calculate 45 minutes by burning the rods. Solution - We will burn 1st rod from both the ends first, that will give us 30 mins of time, once the first rod is burnt completely, the second rod is burnt from

IOT and its impact in Future

A lot of us have come through the term IOT and it is the very next big thing happening around globally. In this article, we will discuss how it will impact the future and our lives. It is flourishing each and every day, big MNCs and governments are regulating it to influence the lives of many citizens. What is IOT?  To begin with, IOT stands for Internet of Things, different devices which are connected to internet shares data with each other.  The devices are equipped with chips to amass and communicate data over a network. The IOT devices are rapidly fluorishing in the market and it is predicted that by 2025 it will become part of our daily lives, be it the washing machine that we use for washing clothes or the referigerator and Air conditioners for smart cooling. It will not only impact the individuals but the cities as well, we can utilize IOT to gather data to eradicate congestion problems in the cities. It will save us time and money. Areas which wi...

IELTS Band 9 essay - 4

Image
Bringing another IELTS Band 9 essay on impact of social media - both positive and neagtive. IELTS Band 9 essay -  Band 9 vocabulary used - Proliferation  - Rapid increase in the number of amount of something easy accessibility living at a distant place On the flip side person's disconnect with his immediate surroundings people engrossed - engaged judicious use of social media Collocations used - Moreover While On the flip side For instance In Conclusion

PhaseZero Interview Experience

Image
Sharing a few PhaseZero interview questions for the Java Developer role. The questions were very basic. PhaseZero Interview Experience questions - What is the difference between Extend and Implement? -  Extends is used when we are extending the base class. Implements is used when we are implementing an interface.  A class can extend only one class but can implement any number of interfaces. For example, ArrayList implements 4 interfaces, i.e. List, RandomAccess, Cloneable, and Serializable. A class must implement all the methods from an interface. What is the difference between Hashmap and Hashtable? Hashmap is non-synchronized . It cannot be shared between many threads without proper synchronization code, whereas Hashtable is synchronized. However, Hashmap can be made synchronized by inserting a code. Hashmap allows one null key and multiple null values, whereas Hashtable doesn't allow any null key or value. Hashmap is comparatively faster than Hashtabl...

Java Tutorial series - ArrayList

Image
ArrayList is one of the finest concepts of java. It is most widely used when one is dealing with dynamic arrays, ie resizable array which can be found it java.util package. It inherits the AbstractList class and implements the List interface. Few important points to consider - ArrayList contains duplicate elements ArrayList class contains elements in an insertion order. ArrayList class is non-synchronized List interface extends Collection and iterable interfaces. By using ArrayList, below functions can come in handy - add() get() set() remove() clear() size() How to iterate the elements of the collection in Java? For Loop For each loop By iterator interface Array List can be declared using below syntax - ArrayList list = new ArrayList(); OR ArrayList<Integer> number = new ArrayList<Integer>(); OR List<String>  values = new ArrayList<String>(); number.add(10); number.add(100); number.add(50); System.out.prin...

Java Tutorial Series - Constructor

Image
We are coming up with Java series for our blog and will be covering new concepts as much as possible. The very first concept which we would like to cover is a constructor in Java, it is a very important topic and is often covered in a lot of programming interview questions. Input and output questions are derived from this topic. Be prepared with Constructor questions before appearing for any written interview. What is Constructor in Java? The constructor is like any other method in Java with the same name as of class name. It is called when an object is created using new() keyword. Java compiler creates a default constructor if the default class doesn't have any. It is called as a constructor because it constructs the value at the time of object creation. The rules for Constructor -  The constructor name is the same as that of the class name. A constructor must have no explicit return type A constructor cannot be declared as abstract, static, final and synchronized....