Back to Browse

HOW TO GROUP THE TESTS IN TESTNG? TestNG Framework Malayalam Tutorial

347 views
Jul 15, 2023
14:10

TestNG Grouping Malayalam Tutorial Please find the code below: public class TestNGGroups { @Test(priority=1,groups= {"sanity", "regression"}) public void tc1() { System.out.println("Test case 1"); } @Test(groups= {"sanity"}) public void tc2() { System.out.println("Test case 2"); } @Test(groups= {"regression"}) public void tc3() { System.out.println("Test case 3"); } @Test(groups= {"sanity"}) public void tc4() { System.out.println("Test case 4"); } } TestNG, TestNG Groups, TestNG Grouping, TestNG Examples, TestNG XML Configuration, TestNG Integration, TestNG Java Framework.

Download

0 formats

No download links available.

HOW TO GROUP THE TESTS IN TESTNG? TestNG Framework Malayalam Tutorial | NatokHD