Automating Functional Tests with TestNG

Ashish Anand
Updated on 16-Aug-2023 14:48:20

348 Views

TestNG is a powerful testing framework, an enhanced version of JUnit which was in use for a long time before TestNG came into existence. NG stands for 'Next Generation'. TestNG framework provides the following features − Annotations help us organize the tests easily. Flexible test configuration. Test cases can be grouped more easily. Parallelization of tests can be achieved using TestNG. Support for data−driven testing. Inbuilt reporting. Selenium Webdriver allows to interact with webpages. It is an interface not a testing framework. To run any test or code only in selenium we must use java main method. TestNG ... Read More

Explain Focus Events in JavaScript

AmitDiwan
Updated on 16-Aug-2023 14:46:06

1K+ Views

The focus of items on a web page can be determined via focus events, which we will learn about in this article. The numerous browser−provided events that are triggered when an HTML element gains or loses attention are known as focus events in JavaScript. These occasions can be utilised in a number of contexts, for as in response to user actions like clicking on an input field. We can track when a web page element obtains or loses focus with the aid of focus events. There are three main focus events in JavaScript − Focus − This event gets ... Read More

LastIndex Property in JavaScript

AmitDiwan
Updated on 16-Aug-2023 14:28:09

136 Views

In this tutorial, we will learn about the lastIndex property in javascript. In addition to this, we will also learn about how we can use it to manage matches within a string The lastIndex property is a property given by regex objects in JavaScript. It represents the index at which the next search will start within a string passed in the regex, or in simple terms, the index at which to start the next match in a string. When using a regex object with methods like exec(), compile(), etc, the lastIndex property is automatically updated to the index after the ... Read More

What are JavaScript Symbols

AmitDiwan
Updated on 16-Aug-2023 14:24:58

757 Views

A symbol in JavaScript is a primitive data type, introduced in ES6 version update, that represents an immutable and unique identifier. Unlike other primitive types like strings, booleans, numbers, etc, symbols are guaranteed to be unique. This implies that even if two symbols have the same content, they are going to be distinct (separate) entities and not equal to each other. Symbols are primarily used to avoid naming conflicts when adding properties to objects. In this Tutorial, we will learn about symbols in JavaScript. Along with that we will also learn how we can use them to add properties in ... Read More

What Does Tag Mean in HTML

Aman Gupta
Updated on 16-Aug-2023 14:03:44

558 Views

Overview A *{ in HTML (Hyper Text Markup Language) is a universal symbol which depicts a whole HTML document. In another word we can say that this symbol is used to target a HTML body element or a HTML DOM which is Document Object Model. This symbol is mostly used in the CSS (Cascading Style Sheet) to select the whole HTML DOM to reflect the certain changes to it. In the CSS generally we use the class name, id name or tag name to define some CSS properties, but to make a common change to the page we can use ... Read More

What Are Hyperlinks in HTML

Aman Gupta
Updated on 16-Aug-2023 13:59:03

263 Views

Overview In simple definition hyperlinks are the link which helps the client to get redirected to that information that a user wants. Hyperlinks can redirect the user to the other pages or on the same page to the specific content. In the HTML an anchor tag element provides a developer to create hyperlinks to the web page. This anchor tag is an opening and closing tag, which require both the opening and closing tags.Syntax The syntax to create a Hyperlink in the HTML is shown below. Where it also contains an attribute “href” in which it contains the link of ... Read More

Show the 68-95-99.7 Rule in Statistics Using Python

Priya Sharma
Updated on 16-Aug-2023 13:55:45

797 Views

Statistics provides us with powerful tools to analyze and understand data. One of the fundamental concepts in statistics is the 68-95-99.7 rule, also known as the empirical rule or the three-sigma rule. This rule allows us to make important inferences about the distribution of data based on its standard deviation. In this blog post, we will explore the 68-95-99.7 rule and demonstrate how to apply it using Python. Overview of the 68-95-99.7 Rule The 68-95-99.7 rule provides a way to estimate the percentage of data that falls within a certain number of standard deviations from the mean in a normal ... Read More

Adjacent Coordinates in N-Dimension Using Python

Priya Sharma
Updated on 16-Aug-2023 13:55:14

302 Views

When you are working with scientific, mathematical, and programming applications, the ability to navigate and explore points in multi-dimensional space is an important requirement. Whether we are analyzing data, processing images, or conducting simulations, a solid understanding of adjacent coordinates in N-dimensional space becomes indispensable. In this comprehensive blog post, we will embark on a journey to unravel the intricacies of adjacent coordinates and explore how Python can be utilized to efficiently compute them. N-dimensional space refers to an abstract mathematical space with a variable number of dimensions. In this space, points are represented by coordinates that consist of N ... Read More

Age Calculator Using PyQt

Priya Sharma
Updated on 16-Aug-2023 13:52:47

266 Views

In today's digital age, creating user-friendly desktop applications with graphical user interfaces (GUI) has become increasingly important. Python, a versatile and popular programming language, offers a multitude of frameworks and libraries to develop powerful applications. PyQt, a Python binding for the Qt framework, is one such library that empowers developers to create robust and visually appealing desktop applications. Age calculators are commonly used tools that allow users to determine their current age based on their birthdate. By leveraging the capabilities of PyQt, we can create an intuitive and efficient age calculator application that provides a seamless user experience. Setting up ... Read More

Add Item After a Given Key in a Python Dictionary

Priya Sharma
Updated on 16-Aug-2023 13:51:52

268 Views

Python dictionaries are powerful data structures that allow you to store and retrieve key-value pairs efficiently. They provide a flexible way to organize and manipulate data, making them a fundamental tool in Python programming. While dictionaries have undergone improvements in recent versions of Python, such as maintaining the order of items starting from Python 3.7, they still lack a built-in method to insert an item after a specific key. In certain scenarios, you may find the need to insert an item into a dictionary after a particular key, while preserving the order of the existing items. This could be useful, ... Read More

Advertisements