This is a migrated thread and some comments may be shown as answers.

Implementation Deriving ArtOfTest.WebAii.Design.Web.BaseWebAiiTest

4 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
IXCOM
Top achievements
Rank 1
IXCOM asked on 15 Dec 2013, 07:39 PM
I have a question, I am evaluating Telerik and  it looks like I need to customize the base class that the test cases derive from.
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.

 

4 Answers, 1 is accepted

Sort by
0
IXCOM
Top achievements
Rank 1
answered on 15 Dec 2013, 09:49 PM
Using Telerik Test Studio.

0
Boyan Boev
Telerik team
answered on 19 Dec 2013, 10:44 AM
Hi Mayra,

Thank you for contacting us.

You can implement you own custom class tell Test Studio to use in the Recording Options.

Please see this article for more information.

Hope this helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
John
Top achievements
Rank 2
answered on 12 Dec 2014, 02:33 AM
I tried to open that link and I see the following error: 

The resource cannot be found.Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /teststudio/user-guide/project-settings/recording-options.aspx

Thanks,
John


0
Boyan Boev
Telerik team
answered on 16 Dec 2014, 09:41 AM
Hi Mayra,

Please excuse me.

Here is the correct link.

Hope this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
IXCOM
Top achievements
Rank 1
Answers by
IXCOM
Top achievements
Rank 1
Boyan Boev
Telerik team
John
Top achievements
Rank 2
Share this question
or