@Listeners(MyListener.class)
@Test(testName = "MyTest")
public class MyTest {
@Parameters({ "apiurl", "useratorg", "password", "catalogname", "vapptemplatename", "vappusr", "vapppwd", "jobid" })
@BeforeClass
public class MyListener extends TestListenerAdapter {
...
@Override
public void onStart(ITestContext testContext) {
jobId = testContext.getSuite().getParameter("jobid");
super.onStart(testContext);
}
...
}
unfortunately the getParameter returns null.
Is there a better way to implement this scenario?
Thanks,
Andrea
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/ve39WJ4fInEJ.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
--Cédric
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.