01: package test.tmp;
02:
03: import org.testng.Reporter;
04: import org.testng.annotations.Parameters;
05: import org.testng.annotations.Test;
06:
07: public class Tn {
08: @Test(groups={"g1"})
09: 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: }
|