I want to use testName, suiteName & description that are specified in @Test annotation in @BeforeMethod, but could not find anywhere a way to do so. I would appreciate your help.
@BeforeMethod
public void beforeMethod() throws Exception {
initTest(testName here, suiteName here, description here);
}
@Test(testName = "Test Name", suiteName = "Suite Name", description = "Description")
public void Test01() throws Exception {
//test code
}
Aucun commentaire:
Enregistrer un commentaire