WEBLOG
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...
Finding Web Elements with Selenium
I'm going to explain in this tutorial about the usage of the findElement and findElements method of Selenium Webdriver on the Chrome web browser. The findElement method is used when you want to deal with one HTML element on a website. On the other hand, the findElements method is used when you want to deal with more than one...
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...
HomeWeblog
FT AUTOMATION
Common Errors with QTP/UFT – Part 1
As the name suggests, this article focuses on the common problems faced during or after QTP/UFT installation....
HOW-TO'S
How To Auto-launch VBscript with Elevated Privileges
For cases when you need to execute a VBS script (*.vbs file) as admin with elevated privileges...
NFT AUTOMATION
Getting Started with Apache JMeter
1. Introduction As a developer, you may have tested the functionality of your code hundreds of times during...
PROGRAMMING
Convert List to Array Using ToArray Without Param
Java provides a toArray method on the 'List' interface. This can be used to convert a 'List'...
Common Issues with HP Load Runner
HP Load Runner is a popular automated load and performance testing tool that emulates actual load to check the performance and behavior of a product. Load Runner comprises three important components namely Virtual User Generator (VuGen), Controller and Load Generator and Analysis. In fact, before we start discussing the 'common issues', let's take a moment to go through the main...
How To Create The Right Software QA Strategy
QA Tushar Sharma - 0
In today’s highly competitive world, businesses do not get much time to test a product before releasing it into the market. With the competitor’s product out in the market, you have to quick-fire your production to provide an innovative set of features or updates. Studies reveal that most of the companies spend ½ of the project budget on testing. To...
QA Challenges in Mobile App Testing
QA Tushar Sharma - 0
Mobile application testing is always challenging. Smaller footprints, numerous types of devices and changing technologies are some of the factors that make it a complex task. With the increased use of mobile apps everywhere, companies have to ensure that the product works according to expectations and meets the required criteria before launching it. The growing popularity of iPhone and Android...
Testing Challenges In Agile Development Model
QA Tushar Sharma - 0
The recent cloud computing revolution has raised the technology bar to a higher standard. While the incorporation of cutting edge technologies into business processes has improved the efficiency of software products, shrinking IT budgets have resulted in optimized software development strategies. The new innovation in the software development segment is DevOps. This innovative software development methodology integrates the development teams...
Common Errors with QTP/UFT – Part 2
Welcome to the second and final part of this series on 'Common Errors for QTP/UFT'! Earlier, we discussed about some of the 'Common QTP/UFT Installation Issues'. In this post however we shall be discussing some assorted issues which you may face, when using both QTP/UFT and 'JAVA' related tools and software (e.g. JDK, Eclipse IDE), on the same machine. This...
A Brief Review Of WATIR
WATIR stands for 'Web Testing Application in Ruby'. It is an OLE-based testing application that automates your browser using Ruby libraries. Here are some of the pros and cons of Watir in brief at first glance. Functionality of Watir Watir takes advantage of the built-in OLE capabilities of Ruby to automate browsers. Normally, HTTP-based tools create a browser simulator for a...
Anti Malware File For Testing System Security
With ever-growing malware, it is inevitable to protect your system with the right anti-virus solution. However, you have to constantly monitor the performance of your anti-virus program as well. You never know when your security program can be infected. Malware normally target the anti-virus program first. To know if your anti-virus program is working fine, you need to take the...
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
Format Decimal Numbers with Grouping Separator
The DecimalFormat class has a method called setGroupingSize() which sets how many digits of the integer part to...
Java Gists
Remove Duplicates from List Using HashSet
The Set is also an interface in the 'Java Collection' framework. Unlike a List, a Set does...
ÂÂ



