Few more @Test annotations 1. enable annotation import org.testng.annotations.*; /** * TestNG enable Test * @author Himanshu Bish...
alwaysRun annotation
@Test Annotation: alwaysRun 1. alwaysRun annotation : Lets explain alwaysRun with an example import org.testng.annotations.*;...
All TestNG annotations with attributes
@BeforeSuite @AfterSuite @BeforeTest @AfterTest @BeforeGroups @AfterGroups @BeforeClass ...
TesNG annotations with example
Commonly used TestNG annotations import java.util.*; import org.testng.Assert; import org.testng.annotations.*; public class Exampl...
Import Statements
Import Statements with examples: Let me explain import statement with an example Example 1: class Test { public static void ma...
Java Source File explained
Java Source File: 1. A Java program can contain multiple classes 2. Only one class in a java program can be declared as publi...
Method Overloading
Method Overloading Method overloading means when two or more methods have the same name but a different signature. Signature of ...
Selenium Q & A
Some general selenium Q & A Q1. Handling Frames using selenium 2.0 (webdriver) A1. You can use “switchTo” frame method to brin...