I have a setUp() in my SuperTest class. Now in my ChildTest class, I want to set up another setUp(). This one will run specifically for ChildTest only.
So I currently have this
//SuperClass
protected void setUp(ITestContext context) {
...
}
//SubClass extends SuperClass
@BeforeMethod
protected void setUp(ITestContext context) {
super.setUp(context);
...
}
//ChildClass extends SubClass
@Override
@BeforeMethod
protected void setUp(ITestContext context) {
super.setUp(context);
...
}
The problem is, when I run ChildTest, it runs both of the setUp() from SubClass and it's own... How can I get it so it'll only run it's own setUp()?