public class MyTest : CustonWebAiiTest{
public MyTest(){
super(BaseState.whateverTheCase);
public void allStepsAreHere()throws Exception{
//all the test case methods that are called would be in here
}
}
}
//THIS WOULD BE MY ABSTRACT CLASS THAT TEST CASES DERIVE FROM. It takes a parameter for the constructor and it calls the execute method which in turns implements a base state and then calls down to MyTest to run the steps of the test case.
public abstract class TestCase : BaseWebAiiTest {
public TestCase(BaseState basest){
execute();
}
public abstract void AllStepsAreHere()throws Exception;
public void baseStateDef(BaseStateDef bs){
//sets my base state
};
public void execute(){
try{
baseStateDef(baset);
run();
} catch (Exceptions);
}
Thanks.