WEBLOG
How To Do Database Testing with JMeter
Introduction In this 'How-To', You will be guided to perform a database load test using JMeter. We will be installing Apache JMeter to perform the test. You can download Apache Jmeter from this link as your first step and keep it ready for further steps to follow where we shall be creating, running and analyzing simple demo-based database test script...
How To Create Maven Project Using Command Line
Maven project can be easily created using built-in plugins from the popular IDEs such as Eclipse and IntelliJ IDEA. However, in scenarios where you don't or cannot use IDE, we can also create a maven project from the Maven native command line without using any IDE. In this article we would create a simple Java project using Maven command...
How To Create Singleton Class in Java
Design patterns Overview Design patterns are basically solutions to programming problems that developers normally encounter during software development. Design patterns were first documented by four authors known as the Gang of Four (GoF). Design patterns are broadly classified into creational, structural, and behavioral patterns. Creational patterns aid in object creation, structural patterns help to alter the structure of an object...
Create Basic Hibernate Program
Hibernate is an ORM framework that helps in accessing database tables from Java code. It is an object-oriented way of accessing database tables and it eliminates boilerplate code that is required with JDBC. In this article, I will be explaining how you can create a basic Hibernate application that saves a record into a database table via Hibernate. Prerequisites Before writing...
Introduction to Apache Maven
1. What is Maven When you write a software application, there are many steps in it like adding the necessary JAR files, compiling the source code, running unit tests, creating the output jar/war file, etc. This is where Maven comes into play, it automates the build process, dependency management, testing, packaging, and much more. It allows executing all these steps...
How To Do API Testing with JMeter
Introduction Application Programming Interface is a very popular term among developers. It is simply a request provider that responds to your request. In other words, it is an intermediate that allows communication between two applications. Google Maps, Twitter, Amazon S3, Weather API are some popular APIs in the industry. The two widely used Web services are SOAP and API. In this...
HomeWeblog
FT AUTOMATION
HP Borland’s Silk Test for Multi-Channel Testing
The growing web and mobile applications have posed several challenges for software QA teams. While usability and...
HOW-TO'S
How To Install WordPress Locally using XAMPP
1. Introduction Installing WordPress on your computer helps you try out WordPress, test themes and plugins, and learn...
NFT AUTOMATION
Common Issues with HP Load Runner
HP Load Runner is a popular automated load and performance testing tool that emulates actual load to...
PROGRAMMING
Format Decimal Numbers with Grouping Separator
The DecimalFormat class has a method called setGroupingSize() which sets how many digits of the integer part...
Convert String to Date Using SimpleDateFormat Class
Sometimes, you may need to convert a String to a java.util.Date object. For this, you need to use the SimpleDateFormat class. You need to specify the format in which the String date is present and invoke the parse method. The following code demonstrates how this can be done: 9511d34805f97b537363b6106339b495 This code creates a SimpleDateFormat instance. Since the input date is in...
Java Tutorial #4 – Control Statements
Introduction Control statements are used to change the flow of execution based on changes to certain variables in the code. One of the types of control statements are the selection statements or decision statements. These should be used when you want to check some condition and take a decision based on the condition. Java supports the if and switch statement...
Java Tutorial #3 – Java Arrays
Table of Contents One Dimensional Array Declaring Array Allocting Memory to Array Accessing Array Elements Initializing Array Length of Array Multi Dimensional Array Creating 3 Dimensional Array Introduction Arrays are used to store a group of values of the same data type. So a single variable can be used to refer to the group of values. Arrays can store data of any...
Concatenate Strings Using String Joiner
Java 8 has added a new class called StringJoiner. This concatenates Strings using a delimiter as well as adds a prefix and suffix to the concatenated String. Performance-wise, it is similar to StringBuffer.append, but it has the added advantage that it automatically adds a delimiter, prefix and suffix. The following code demonstrates how the StringJoiner class can be used to...
Concatenate Strings Using String.join() for Collections
There is an overloaded version of the String.join method that accepts as parameter an Iterable implementation. Since all Collection classes implement the Iterable interface, this method can be used to concatenate all the elements in a Collection. The following code demonstrates this: This code creates a List of String values and passes this List to the String.join method with a...
Concatenate Strings Using String.join()
Java 8 has added a static join method to the String class. This concatenates Strings using a delimiter. Performance wise, it is similar to StringBuffer.append, but it has the added advantage that it automatically adds a delimiter. As before, this code creates string1 and string2. It invokes the join method with these Strings and specifies space (“ “) as...
Concatenate Strings Using StringBuffer.append()
In addition to String, Java has the java.lang.StringBuffer and java.lang.StringBuilder classes. These can also be used to concatenate Strings. The advantage of these classes is that both these classes are mutable, so using them does not result in the creation of new String objects. So StringBuffer and StringBuilder have a better performance as compared to the + operator...
CODE SNIPPETS | CODEX
Java Gists
Remove Duplicates from List Using Set.addAll
The Set interface has a method called addAll. This accepts a 'Collection' as the parameter. So if you...
How-To Git
How To Setup Automatic SSH-Agent for GitBash
Using below procedure, you shall be able to setup SSH-Agent to run automatically whenever GitBash is launched on...
Java Gists
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...
ÂÂ



