Depends On - TestNG Tutorial 5

Published: 21 October 2018
on channel: Automation Zone
248
11

This Tutorial will help you understand how to use Depends On Method in TestNG

Sample Code:

iimport org.testng.annotations.Test;

public class Tutorial5 {

@Test(groups = {"reg"} ,
dependsOnGroups = {"smo"}
)
public void TC_1() {
System.out.println("TC_1 : Regression");
}

@Test(groups = {"reg"})
public void TC_2() {
System.out.println("TC_2 : Regression");
}

@Test(groups = {"smo"})
public void TC_3() {

System.out.println("TC_3 : Smoke");
}

@Test(groups = {"smo"})
public void TC_4() {
System.out.println("TC_4 : Smoke");
int i = Integer.valueOf("ABC");
}
}


Watch video Depends On - TestNG Tutorial 5 online without registration, duration hours minute second in high quality. This video was added by user Automation Zone 21 October 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 248 once and liked it 11 people.