As we know that an abstract class can have constructors, data members, and non-abstract methods as well. This chapter will shows, how we can declare and use the Constructors in the abstract class. Important Features of Abstract Class and Methods Abstract Class An abstract class would be declared using the ‘abstract’ keyword. The creation ofRead More
tutorials
QnA | Perform Multiplication and Division without * or / or % operators.
Problem: How to write a program that can be used for Multiplication or Division two integer values without using “*” operator and “/” or “%” operators? Example:Inputs:-6 and 3 (Multiply)50 and 10 (Multiply)18 and 2 (Divide)39 and 4 (Divide)Output:-Multiplication of 6 and 3 = 18Multiplication of 50 and 10 = 500Division of 18 and 6:Quotient 3Read More
Computer Basics -9 || Understand and Implement Data Validation in Excel.
Data Validation is the feature to restrict the end user to enter incorrect or invalid data in a particular cell or report. Data Validation Data Validation can be used for a range, specific list of values, formula-based condition etc. based on the requirement. There are multiple scenarios where we need to restrict the user, fewRead More
Computer Basics -8 || Let’s learn the usage of MS-Excel.
Excel is mainly used to do accounts related work and to maintain huge record like we do in databases. When we open the Excel application and create a new file it looks like the Math Copy, we have used in our school during the study. These files contain grids to store data and records. ExcelRead More
TestNG – 20 || Run TestNG Program using main() method.
Running a TestNG Program using main() is very simple. We just need to use the object of TestNG class in main() and all set. Till now we have used below steps to run a TestNG program: Create class files and XML file Rightclick on XML file Select Run As Click on TestNG Suite If youRead More
TestNG -19 || Concept of Parallel Execution.
The fundamental concept of parallel execution is based on the fact that each process should have its own processor. To understand this observe the two different scenarios in the below image: Scenario – 1: We have three containers and one truck to move from Source to Destination. If it takes 1 hour to cover theRead More
TestNG – 18 || Multiple Browser and Parallel Execution in TestNG.
Parallel execution of the script on multiple browser can be handled using the TestNG very easily and in a simple way. It means same set of test cases can be run over the more than one web browser. Multiple Browser Handling First of all, we need to understand the concept of Multiple Browser Handling. ItRead More
TestNG – 17 || Passing multiple Parameters in testng xml.
We can also pass parameters via TestNG XML file. These could be accessible using @Parameters annotation. This has been used in combination with the <parameter> tag in XML File. Parameters Annotation Parameters in TestNG XML File The process of using the Parameter is very simple. In the XML file, we have to use <parameter> tagRead More
TestNG – 16 || Access data from Excel sheet using DataProvider.
We can use an Excel sheet as a source of input. We can access data from excel sheet using DataProvider annotation and pass arguments through @Test methods. Mainly this approach is used in Data Driven Framework. Data Driven Framework: A data-driven framework is used to run the same script for a huge amountRead More
TestNG – 15 || DataProvider with parameters.
DataProvider with parameters provides ways to work with different type of datasets using single DataProvider. In our last chapter, we have learned how to use DataProvider annotation and attribute in a TestNG program. I would recommend to go through with the previous chapter then move with this. DataProvider Parameter Types DataProvider method supports two typesRead More