Home | History | Annotate | Download | only in tmp
      1 package test.tmp;
      2 
      3 import org.testng.Reporter;
      4 import org.testng.annotations.Parameters;
      5 import org.testng.annotations.Test;
      6 
      7 public 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