1package test.tmp;
2
3import org.testng.Reporter;
4import org.testng.annotations.Parameters;
5import org.testng.annotations.Test;
6
7public class Tn {
8  @Test (groups = {"g1"})
9  public void m1() {
10  System.out.println("1");
11 }
12
13 @Test (groups = {"g1"}, dependsOnMethods="m1")
14  public void m2() {
15  System.out.println("2");
16 }
17
18 @Parameters(value = "param")
19 @Test (groups = {"g2"})
20  public void m3(String param) {
21  System.out.println("3");
22  Reporter.log("M3 WAS CALLED");
23 }
24}
25