I have done this with other products, but I am not certain how to do it with Telerik and if I would be missing soemthing by doing it this way.
I am not sure if I can have my test cases derive from another class which derives from BaseWebAiiTest. The test class will call a super class and then this super class will call down to the "steps" implemented in the "MyTest" class. Error will be thrown in caught by the super class if they happen to occur.
I am not sure if this would work in Telerik framework, what would would I comprimise from Telerik's framwework behind the scenes work , test execution, reporting, etc. Also what about the [] blocks that are defined withing the test case.
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.