Home » Tag Archives: core java

Tag Archives: core java

Selenium Name Locator Example

In this post, we feature a comprehensive Selenium Name Locator Example in Automation Scripts. 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end testing of an application. This ensures ...

Read More »

Logback Custom Appender Example

This article discusses creating a custom Appender for logback, a logging framework for the Java application. 1. Introduction to Logback Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ~10x faster on some critical areasAutomatic Reloading of configuration ...

Read More »

Selenium Exceptions Example

1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end testing of an application. This ensures that the application works as designed. Selenium supports various programming languages such as C#, ...

Read More »

Selenium Best Practices Tutorial

This article explores best practices and use cases for Selenium. For our purpose, We will be utilizing Selenium with Java. 1. Introduction Selenium is used to automate browsers. Selenium WebDriver has found its place in test automation for web applications. It is used to create robust, browser-based regression automation suites and tests. It can be used for end to end ...

Read More »

Java Factory Method Design Pattern Example

1. Introduction In this article we will discuss one of Java’s most common design patterns – Factory Method Design Pattern. This type of design pattern is a type of creational design pattern but it is one of the finest ways to generate an object. So, in Factory Method design pattern, we develop objects but without revealing the logic or functionality of creation ...

Read More »

Java Builder Design Pattern Example

1. Introduction In this article, we will describe Java Builder Design Pattern in detail. The Builder design pattern, as its name suggests, seems to be an alternative way to develop complex objects. This can only be used if you choose to create different unchangeable objects who use the same process of object building. This design pattern in Java is a type of Creational ...

Read More »

Java Flyweight Design Pattern Example

1. Introduction In this article, we will look at the Java flyweight design pattern. This design pattern helps us to reduce the memory usage. It can also improve performance in applications where object attachment is costly. The main intent of Flyweight design pattern is “Facilitates the reuse of many fine grained objects and makes the use of large numbers of ...

Read More »

Java Chain of Responsibility Design Pattern Example

1. Introduction In this article, we will discuss about a widely used Design pattern – Java Chain of Responsibility Design Pattern. In the name itself it suggests that, the Chain of responsibility design pattern generates a chain of receiver objects for a request. This pattern separates the sender and receiver for a request based on the type of request. This design pattern is a classification ...

Read More »

Java Proxy Design Pattern Example

1. Introduction In this article, we will discuss about one of the simple and easiest design pattern – Java Proxy Design Pattern. In real world proxy means representative or on behalf of or in place of are exact synonyms of proxy. In Simple words, proxy means an object representing another object. According to this, we can do many operations like encapsulating the ...

Read More »

Java Observer Design Pattern Example

1. Introduction In this article, we would discuss one of the numerous Java Design Patterns – The Java Observer Design pattern which is being used popularly in a variety of messaging and notification frameworks. The Observer design pattern is a typical way of managing communication between multiple classes. This pattern helps in organising the code in a way that makes ...

Read More »