WEBLOG
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 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...
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...
Concatenate Strings Using String.concat()
The String class has a method called concat. It accepts as parameter a String value and concatenates it with the current String. The following code demonstrates this: As before, this code creates string1 and string2. It then invokes the concat() method on string1 and passes string2 as an argument. So, this code also prints the same output as before: ...
Concatenate Strings Using Plus Operator
In Java, a String is a sequence of characters. There are often programming situations where you will need to concatenate Strings. There are several ways in which you can achieve this. The + operator is also known as the concatenation operator. It can be used to concatenate Strings. The following code demonstrates this: This code creates two Strings called string1...
Working with Selenium WebElements
Table of Contents 1. Selenium WebElements 2. WebElement Locators 3. Working With Text Box 4. Working With Buttons 5. Checkboxes and Radio Buttons 6. Selecting from Drop-Downs 7. File Uploads 8. Locating Links 9. Summary In our previous tutorial, Getting Started with Selenium WebDriver, we discussed the way to set up the environment for automating testing using Selenium and wrote...
Remove Duplicates from List Using Stream
Java 8 has added the Stream API that helps to easily perform bulk operations on Collections. A new method called stream() method has been added to all the collection interfaces that returns a Stream corresponding to the underlying collection. The Stream interface has a method called distinct that can be used to eliminate duplicates. The following code demonstrates...
HomeWeblog
FT AUTOMATION
Review of Test Design Studio 2.0
While QTP offers greater flexibility to automate testing procedures, the IDE lacks certain professional features. A QTP...
HOW-TO'S
How To Add SSH Private Keys to Eclipse
One of the common use cases for accessing Git repositories on Github is authentication via SSH keys....
NFT AUTOMATION
Best Practices For Evaluating Automation Tool
With rapidly changing financial conditions, businesses face the tough challenge of optimizing resources to produce maximum results....
PROGRAMMING
Create Basic Hibernate Program
Hibernate is an ORM framework that helps in accessing database tables from Java code. It is an...
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...
An Overview Of Unit Testing
With an increased need for an agile and optimized project development system, programmers have a tough time dealing with the code and making it error-free. Unit testing is a nice option for programmers to create applications with minimal errors. Be it unit testing or integrating testing, businesses need to ensure that an application offers nice and useful features and at...
Virtualization Challenges with Resource-Intensive Apps
Today, virtualization has become a part of every IT infrastructure. Right from server virtualization to desktop virtualization, every resource can be virtually created to leverage available resources. While data centers are first things that are virtualized, companies have a second thought when it comes to virtualized business-critical applications. Today, the internet is full of praises for this innovative concept....
HP Quality Center vs Productivity Challenges
While the internet has revolutionized the technology, the innovation hasn’t stopped yet. As technology keeps innovating, there arises a greater need for an efficient testing system that can streamline the innovation. HP has been a leader in the testing market with products like QTP, UFT and Quality Center. The HP Quality Center (QC), being a commercial test management tool by...
Traditional Framework Definitions (QTP)
Over the years Functional Test Automation has come a long way from WinRunner to QTP and until ALM. The tools have evolved to a great extent in terms of enhanced functionality, look and feel and inclusion of support for new technologies, etc. The competition between some market-leading tools like Silk Test, and QTP including freeware communities like Selenium led...
How is Poka Yoke different from FMEA?
QA Tushar Sharma - 2
Software QA is not about finding mistakes in a code. It is about enhancing the quality of the product to meet objectives while delivering consistent performance at a higher level. Whether the project is in the analysis phase, design mode or the implementation stage, there are different types of software QA practices that are followed by organizations in recent times....
Dummy Publication Category Post
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus gravida tincidunt nisi, ut volutpat nisi pretium at. Proin gravida ipsum et leo auctor, in sodales tortor rhoncus. Fusce et magna nec felis ultrices sagittis. Vestibulum et massa sem. Etiam egestas ornare commodo. In at nisi in felis lacinia tempus vitae quis ante. Praesent est lectus, imperdiet ac sem ac,...
CODE SNIPPETS | CODEX
Java Gists
Format Decimal Numbers Using Pattern
The java.text.DecimalFormat class is used to format numbers using a user specified formatting. This concrete subclass of NumberFormat,...
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...
How-To VBScript
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...
ÂÂ



