Implementation Deriving ArtOfTest.WebAii.Design.Web.BaseWebAiiTest

5 posts, 0 answers
  1. IXCOM
    IXCOM avatar
    3 posts
    Member since:
    Dec 2013

    Posted 15 Dec 2013 Link to this post

    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.

     

  2. IXCOM
    IXCOM avatar
    3 posts
    Member since:
    Dec 2013

    Posted 15 Dec 2013 Link to this post

    Using Telerik Test Studio.

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 19 Dec 2013 Link to this post

    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!
  4. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 11 Dec 2014 in reply to Boyan Boev Link to this post

    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


  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 16 Dec 2014 Link to this post

    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!
Back to Top