TestNG is an open-source test automation framework for Java. It is developed on the same lines of JUnit and NUnit. Few advanced and useful features provided by TestNG makes it a more robust framework compared to its peers. The NG in TestNG stands for ‘Next Generation’. TestNG: Annotations An annotation is a tag that providesContinue reading “TestNG”
Category Archives: Uncategorized
Selenium WebDriver commands
Output:-
Selenium Webdriver Navigation command
Sample Program:- Output:-
Selenium Webdriver
sample Program:- MouseOver
Recursion
A recursive function solves a particular problem by calling a copy of itself and solving smaller sub problems of the original problems. Many more recursive calls … 1): Terminates when the base case becomes tr… 3): Every recursive call needs extra space in the … 2): Used with functions 4): Smaller code size Rules of Recursion:-Continue reading “Recursion”
Artificial
What is Artificial Intelligence? Artificial intelligence (AI) is a wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. AI Approaches and Concepts Less than a decade after breaking the Nazi encryption machine Enigma and helping the Allied Forces win World War II, mathematician Alan Turing changedContinue reading “Artificial”
Exception handling using Throw
Both throw and throws are concepts of exception handling in Java. The throws keyword is used to declare which exceptions can be thrown from a method, while the throw keyword is used to explicitly throw an exception within a method or block of code. Program:- Calculator.java Program:- PasswordException.java Output Screenshot:-
Scanner
The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available methods found in the Scanner class documentation. Program:- Output Screenshot:-
Exception Handling
Sample Program:- Output Screenshots:-