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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -