Testing is the process of checking the functionality of an application to ensure it works as per requirements. Unit testing comes into picture at the developer level where adequate measures are taken to test every single entity (class or method) to ensure the final product meets the requirements. JUnit has driven developers to understand the usefulness of tests, especially of unit tests, when compared to any other testing framework. Leveraging a rather simple, pragmatic, and strict architecture, JUnit has been able to "infect" great number of developers. Do look at our tutorial on JUnit to have a good understanding of ... Read More
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'. A website should be tested across multiple browsers like IE, Chrome, Firefox, Safari to validate the compatibility of website and functionality. Since the HTML, CSS and java scripts are unique across all browsers, it is always recommended to do cross browser testing to ensure the compatibility of website. Selenium supports cross browser testing so does the TestNG. In this article, we will analyze how to perform cross browser testing in Selenium ... Read More
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
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. Java 1.5 or higher version allows to interact with TestNG. To run any test or code only in java we must use java main method. TestNG provides us a framework that ... Read More
Testing is the process of checking the functionality of an application to ensure it works as per requirements. Unit testing comes into picture at the developer level where adequate measures are taken to test every single entity (class or method) to ensure the final product meets the requirements. JUnit has driven developers to understand the usefulness of tests, especially of unit tests, when compared to any other testing framework. Leveraging a rather simple, pragmatic, and strict architecture, JUnit has been able to "infect" great number of developers. Do look at our tutorial on JUnit to have a good understanding of ... Read More
jQuery Mobile is a framework that helps programmers construct mobile-friendly web pages. A back icon returns to the previous page or screen when clicked. The data-rel="back" property in jQuery Mobile generates a back button. It is often decorated with predefined classes that determine the button's form, color, and icon. You may change the look of the button by adding or deleting these classes. JQuery Mobile provides a consistent and responsive design across multiple devices, including mobile phones, tablets, and desktop computers. The reason we have used JQuery Mobile to create it because, it supports a wide range of web browsers, ... Read More
The Horizontal Select Control Group is an interface component that enables users to choose from a range of choices that are presented horizontally. Step 1: Include jQuery Mobile in your project Include jQuery Mobile in your project as the first stage in creating a Horizontal Select Control Group. jQuery Mobile's most recent version can be added to your HTML page directly or through a content delivery network to accomplish this (CDN). Algorithm Load the jQuery Mobile CSS file from the given CDN URL Load the jQuery library from the given CDN URL Load the jQuery Mobile JS file ... Read More
HTML canvas is a sophisticated web−based tool for producing interactive and dynamic visuals. Developers may use JavaScript to edit the canvas element to create animations, games, data visualizations, and more. There are alternative methods to create empty HTML Canvas − Fabric.js is a simple JavaScript library for working with the HTML5 canvas element. It offers an object−oriented API for creating and modifying canvas elements. Using Konva.js: Another powerful JavaScript library that provides an easy−to−use API for creating and manipulating canvas elements is Konva.js. It is built on top of the HTML5 canvas element and offers a comprehensive set of tools ... Read More
Google AMP (Accelerated Mobile Pages) is an open−source framework designed to create fast−loading and mobile−friendly web pages, while amp−accordion is a component in the AMP library that allows for collapsible content sections on a web page. Google offers the Accelerated Mobile Pages (AMP) framework allowing you to make hidden content that the user can toggle open and closed. Algorithm Declare a new HTML5 document using the declaration at the beginning of the file. Inside the element, add the ⚡ attribute to indicate that this is an AMP HTML document. Inside the element, add the meta element with the ... Read More
In this article we are going to learn how to use internla python functions like len(), slicing(), replace(), ljust() to retain first N element of a string and replace the remaining by k. The python strings are easily made by simply surrounding letters in quotations. Python treats single quotes and double quotes the same way. Assigning a value to a variable and creating a string is really straightforward. Example Assume we have taken an input string N, K values. We will now retain the first N characters of an input string and replace it with the given K character ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP