TestNG supports to group the test cases based on similar functionality or uses. Sometimes user has customized conditions to pick classes/methods/groups at run time based on conditions and use cases. TestNG supports simple frequently use scenarios but covering all expects are unnecessary. For Example, user may add multiple groups to single test. While running the group using syntax, TestNG runs all tests those are part of the group. It works as OR statement. Like if a test has 2 groups and only 1 is mentioned in tag it will run the test. But, when user wants ... Read More
AFIS (Automated Fingerprint Identification System) and biometric fingerprint systems are used for fingerprint recognition and identification; however, they differ significantly in scope and functionality. Read this article to find out more about AFIS and Biometric fingerprint systems and how they are different from each other. What is AFIS? AFIS stands for Automated Fingerprint Identification System. It is a computer-based biometric technology that automates fingerprint identification and comparison. The fundamental goal of AFIS is to store, search, retrieve, and analyses massive amounts of fingerprint data for identification and investigation reasons. Law enforcement and forensic departments use AFIS to help solve ... Read More
Strings are a fundamental data type in Python, and manipulating them is a common task in many programming scenarios. One specific requirement you may encounter is the need to insert a phrase or substring in the middle of an existing string. Python provides several methods and techniques to accomplish this task efficiently. In this blog post, we will explore some of these methods and discuss how to add a phrase in the middle of a Python string. Let's explore different approaches to adding a phrase in the middle of a Python string. We will cover methods like string concatenation, f-strings, ... Read More
TestNG allows to run the test suites from IntelliJ IDE as well as command line. When user run the testing.xml either from IDE or command line, TestNG generates a default report. It saves all reports and respective html files in Project −>test−output folder. If folder is not present, TestNG creates the folder. Enable the Report Generation While running the testing.xml from IDE, the user has to enable the default reports generation at Add Configuration −> Listeners tab. The following screenshot shows how to enable default report generation in IntelliJ. If the user wants to generate report at customized path ... Read More
In object-oriented programming, inheritance allows us to create new classes that inherit the properties and methods of an existing class. This powerful concept enables code reuse, modularity, and extensibility in our programs. Before diving into accessing parent class attributes, let's have a quick refresher on inheritance. In Python, when a class inherits from another class, it acquires all the attributes and methods defined in the parent class. This mechanism allows us to create specialized classes that inherit and extend the functionality of a more general base class. The derived class is also known as a child class, while the class ... Read More
In many programming scenarios, we often come across the need to find all possible combinations of a certain size from a given set of elements. These combinations can be useful in various applications such as generating permutations, solving combinatorial problems, or exploring different subsets of data. In this blog post, we will explore an efficient approach to find all unique combinations of size K until a given number N using the Python programming language. Understanding the Problem Before we dive into the solution, let's clearly define the problem we are trying to solve. Given a range of numbers from 1 ... Read More
The cryptographic algorithms AES (Advanced Encryption Standard) and RC4 (Rivest Cipher 4) are both used for encryption; however, they differ significantly in terms of security, usage, and design. Read this article to find out more about AES and RC4 and how they are different from each other. What is AES? AES (Advanced Encryption Standard) is a popular symmetric block cipher encryption algorithm for protecting sensitive data. It was chosen in 2001 by the United States National Institute of Standards and Technology (NIST) to replace the outdated Data Encryption Standard (DES) as the new encryption standard. Key Features of AES ... Read More
In many programming scenarios, there arises a need to find all possible pairs within a given list. Whether you're analyzing data, solving algorithmic problems, or working on a machine learning project, finding these pairs can be crucial for uncovering meaningful insights. In this article, we will explore different approaches to efficiently find all possible pairs in a list using Python. We'll discuss both brute-force and optimized solutions, along with their time complexities. Brute-Force Approach The brute-force approach is straightforward and involves iterating through the list twice to generate all possible pairs. Let's see the implementation − Example def find_all_pairs_brute_force(lst): ... Read More
TestNG file is a simple java class. IntelliJ supports TestNG class as simple java class. To create a TestNG class, user should create a java class first and then enter the desired TestNG annotations and respective code to execute. In this article, let’s follow the steps to create a TestNG file in IntelliJ. Approach/Algorithm to solve this problem Step 1: Go to the project where TestNG file needs to create. Step 2: Select a folder where to create a TestNG file either in src or test folder. We will create the file in src folder in this article. Step ... Read More
When working with Python, you may frequently encounter scenarios that require generating all possible combinations of items from a given dictionary. This task holds significance in various fields such as data analysis, machine learning, optimization, and combinatorial problems. In this technical blog post, we will delve into different approaches to efficiently find all possible item combinations using Python. Let's begin by establishing a clear understanding of the problem at hand. Suppose we have a dictionary where the keys represent distinct items, and the values associated with each key denote their respective properties or attributes. Our objective is to generate a ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP