• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.parameters;
2 
3 import org.testng.Assert;
4 import org.testng.annotations.Parameters;
5 import org.testng.annotations.Test;
6 
7 /**
8  * Checks to see if the parameters from parent suite are passed onto the
9  * child suite (referred by <suite-file>)
10  * @author nullin
11  *
12  */
13 public class InheritFromSuiteChild3
14 {
15    @Test
16    @Parameters({"parameter1", "parameter2", "parameter3", "parameter4"})
inheritedparameter(String p1, String p2, String p3, String p4)17    public void inheritedparameter(String p1, String p2, String p3, String p4) {
18       Assert.assertEquals(p1, "p1");
19       Assert.assertEquals(p2, "c3p2");
20       Assert.assertEquals(p3, "c2p3");
21       Assert.assertEquals(p4, "c3p4");
22    }
23 }
24