WEBLOG
How To Change Font for Eclipse Editor Pane
This article shows how to change the text size and style for the Eclipse editor pane. The font used for Eclipse editor pane can be customized with font preference. This preference is located under "Basic" settings and can be found in Window > Preferences > General > Appearance > Colors and Fonts. Open Eclipse Preferences Open the Eclipse Preferences via Window...
Types of Linux Shell Sessions
(A) Login Shell A login shell is a shell where you login, either via the terminal or via SSH. If the user first logs in into a terminal session or SSH via authentication, such a shell session will be considered as a login shell. In other words, a login session is a shell session that starts by authenticating or identifying the user. Login...
How To Create Maven Project in Eclipse Without Archetype
Maven is a very popular build and dependency management tool. Eclipse is an IDE that helps developers write and run Java code easily. In this article, I will be explaining how you can create a Maven project in Eclipse. Maven Basics Maven automates the steps involved in building a software application like adding the JAR files, compiling code, running unit tests,...
How To Create FTP Test Plan in JMeter
About File Transfer Protocol File Transfer Protocol is a widely used standard network protocol for FIle sharing between a client and server in the same network. FTP Server functions with a TCP/IP network. All the client connections are established by switching ON an FTP server. We are using FileZilla which is a free open source FTP and FTPS server for file...
How To Find Broken Links with Selenium
What is a broken link? Links are used for navigating between webpages. Users are directed to a web page when they click or type a link on a web browser. So a broken link indicates a link that is not working. In other words, it will not navigate the user properly to the requested web page. It happens due to...
Configuring Maven Compiler Plugin (Java)
1. What is Maven Compiler Plugin The ‘Maven Compiler Plugin’ or more commonly known as 'Maven Java Compiler' is used to compile the source code of your project/application. Internally this plugin uses the standard 'javac' compiler (JDK) and as of version 3.0 of this plugin the default compiler is javax.tools.JavaCompiler Unlike other Maven plugins, the ‘maven compiler plugin’ is ‘in-built’ and...
HomeWeblog
FT AUTOMATION
Working with Selenium WebElements
Table of Contents 1. Selenium WebElements 2. WebElement Locators 3. Working With Text Box 4. Working With...
HOW-TO'S
How To Sort List in Java
Introduction A List is an interface in the Java collection framework. It can be used to store objects....
NFT AUTOMATION
Performance Testing on Firewall-Protected Networks
HP Load Runner is the most popular tool from HP for performance, load and stress testing tasks....
PROGRAMMING
Concatenate Strings Using String.concat()
The String class has a method called concat. It accepts as parameter a String value and concatenates...
Java Tutorial #7 Part 1 – Classes & Objects
Classes are a very important concept in Java. Java code always needs to be written in a class. In this article, we will be taking a very close look at classes and understanding their syntax and semantics. Classes and objects A class defines a new data type. Once defined, this new type can be used to create objects of that type....
How To Use Mouse and Keyboard Events with Selenium
In this tutorial, we will discuss how to use mouse click events and keyboard events with Selenium WebDriver. The mouse click and keyboard events are used to automate the interactions of a user with a mouse and keyboard. Action & Actions We encourage the use of Action and Actions together with the keyboard and mouse events. Action & Actions are user-facing...
Java Tutorial #6 – Jump Statements
Introduction The break statement is used to stop further execution. It can be used either in a loop or within a switch statement. Break Statement The break statement is used to stop further execution. It can be used either in a loop or within a switch statement. Break in a loop When the break statement is used within a loop, it terminates the loop....
Convert String to java.time.LocalDate with Formatter
The LocalDate class has an overloaded parse() method. In addition to the String Date, it accepts a DateTimeFormatter instance that specifies the format of the input date. So, this can be used in case the String date is not in the yyyy-MM-dd format. The following code demonstrates this: The following code demonstrates this: dad430fbf471a3357dc0f4be9a99dfdd In this case, the String date is in the dd/MM/YYYY format. A...
Convert String to java.time.LocalDate without Formatter
The LocalDate class has a parse method. You can use this to convert a String to a LocalDate. So, this code simply invokes the parse method with the String date object. It prints the following output: 2015-06-12. The following code demonstrates this: cd2973313a135357d0890b0ba8152680 The LocalDate.parse() method requires the String date to be in the yyyy-MM-dd format. If the String date is in some...
How To Use TestNG with Selenium
1. What is TestNG? TestNG is an open-source automated testing framework with flexible and powerful features. It is inspired by JUnit and NUnit but with some additional advantages and functionalities. TestNG gives the developers to build tests with easy annotations, sequencing, grouping, and parameterizing. The ability to generate test reports to get an idea on what test cases passed, failed, and...
Java Tutorial #5 – Loop Statements
Iteration statements are used to repeat a particular block of code until a certain condition is true. In this article, we will be taking a look at Java’s iteration statements. While Statement The while statement repeats a block of code as long as a condition is true. Syntax A while statement has the following syntax: while (condition){ //body of the loop } The while keyword is followed...
CODE SNIPPETS | CODEX
Java Gists
Convert List to Array Using For-Loop
The simplest way to convert a List to an array is to use a for-loop. The following code...
Java Gists
Concatenate Strings Using StringBuilder.append()
In addition to String, Java has the java.lang.StringBuffer and java.lang.StringBuilder classes. These can also be used to concatenate...
Java Gists
Concatenate Strings Using String Joiner
Java 8 has added a new class called StringJoiner. This concatenates Strings using a delimiter as well as...
ÂÂ