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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -