TestNG is a Testing Framework for the Java programming language and inspired by JUnit and NUnit. The design goal of TestNG is to cover an extensive range of test categories, like Unit testing, Functional testing, End-to-end testing, Integration testing, etc., with TestNG being more powerful and easy-to-use functionalities.

TestNG Execute Test Methods In Alphabetical Order

package techLearn.in; import org.testng.annotations.Test; import org.testng.annotations.BeforeTest; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.AfterTest; public class TestMethodsAlphabeticalOrder { WebDriver driver; @Test public void prakampanam() { driver.get("http://prakampanam.com/"); } @Test public void techlearn() {…

Continue ReadingTestNG Execute Test Methods In Alphabetical Order

TestNG Annotations Execution Order

package techLearn.in; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterSuite; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class TestNGExecution { @Test public void testCase1() { System.out.println("Test…

Continue ReadingTestNG Annotations Execution Order