WEBLOG
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...
Convert String to Date Using java.util.Calendar
The java.util.Calendar class also encapsulates a date. The Calendar class has some more features than the java.util.Date class. It provides the ability to extract the day, month, year, and other fields corresponding to the date that the Calendar represents. So, sometimes, you may need to convert a String date to a Calendar instance. For this, you first need to...
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...
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 Create Maven Project in Eclipse Without Archetype
Maven is a very popular build and dependency management tool. Eclipse is an IDE that helps developers...
NFT AUTOMATION
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...
PROGRAMMING
Java Tutorial #1 – Variables and Data Types
Table of Contents Introduction 1. Variables 2. Data Types Primitive Data Types Integer Data Types Decimal Data Types ...
How To Write Windows Environment Variables With VBScript
This is in continuation to the last post where we saw how to read windows environment variables using VBScript. As mentioned in the last post, we can use the following preferred methods to achieve this : Using the WSH Shell object Using WMI's Win32_Environment class In the below example we would be using the WSH Shell's Environment method. For 'strEnvVarType',...
How To Read Windows Environment Variables With VBScript
Reading an environment variable is simple. There are a couple of methods available to do this but the main preferred ones are the below two : Using the WSH Shell object Using WMI's Win32_Environment class In the below example we would be using the WSH Shell's Environment method. For 'envVarType', the valid parameters for Environment are PROCESS, SYSTEM, USER and...
How To Load XML File into DOM Using MSXML
Microsoft XML Core Services (MSXML) provides two methods for loading XML documents into the Document Object Model (DOM) and one method and one property for serializing that object model back into an XML stream. The load and loadXML methods parse documents into a DOM. You can use the load method to load an XML file by pathname, URL 7ae75e517e8831f3ea4b1ca3bc74c19f
Introducing Testing-as-a-Service (TaaS)
The 'Cloud Computing' technology has revolutionized the IT industry and it has something good to offer to the testing industry too. After Iaas, PaaS, and SaaS concepts, there is a new testing area called Testing as a Service (TaaS) that is making waves in recent times. Increasing IT costs, shrinking budgets and growing business demands pose a great challenge...
Virtualization Technology in Intel Processors (VT)
As one of the best practices, businesses are always on the run to leverage resources to the fullest. Virtualization has offered a great way to optimize business resources. The world is running after virtualization while multi-core, multi-tasking, hyperthreading have been in the market for too long now that for innovative businesses, they are already spent force! The new buzzword is...
Best Practices For Evaluating Automation Tool
With rapidly changing financial conditions, businesses face the tough challenge of optimizing resources to produce maximum results. Choosing the right automation tool for functional testing is one of the important tasks in doing so. The rising popularity and emerging technologies have brought in several testing tools into the market which makes it difficult for organizations to identify the right one...
Performance Testing on Firewall-Protected Networks
HP Load Runner is the most popular tool from HP for performance, load and stress testing tasks. Using the LR, you can check different aspects of performance testing on a native system or a remote system. However, remote networks are always behind a firewall. When a firewall is used, it blocks the commonly used port 80. So, the LR controller...
CODE SNIPPETS | CODEX
How-To PowerShell
How To Install Oh-My-Posh On Windows PowerShell
Oh-My-Posh is a powerful custom prompt engine for any shell that has the ability to adjust the prompt...
Java Gists
Format Decimal Numbers with Grouping Separator
The DecimalFormat class has a method called setGroupingSize() which sets how many digits of the integer part to...
Linux Gists
CronTab Basic Commands With Examples
Cron is a time-based job scheduler in Unix-like operating systems, which is used to automate repetitive tasks. It...
ÂÂ



