java - How to call an @AfterMethod testing method in one class after executing a test case in another class? -
abc.java
public abc { public test1(){} public test2(){} public test3(){} }
def.java
public def { @aftermethod public calc{} }
how call method calc in def.class after executing testcase in abc.class??
you have have @aftermethod
in test class scope can do:
public class abc extends def {}
or move calc()
abc
class.
Comments
Post a Comment