Error message when converting a recorded step to code

4 posts, 0 answers
  1. Mike
    Mike avatar
    9 posts
    Member since:
    Jul 2015

    Posted 08 Jan Link to this post

    We are getting the attached error message when we try to convert a step to code.

     

    I am guessing I a missing referernce in the settings but I am not sure which one:

    References currently in the settings file:

    System

    System.Core

    ArtOfTest.WebAii

    ArtOfTest.WebAii.design

    Telerik.WebAii.Controls.Html

    Telerik.WebAii.Controls.Xaml

    Telerik.WebAii.Controls.Wpf

    Telerik.TestingFramework.Controls.KendoUI

     Error message:

    "Error adding functions: There are no classes in code behind that extend the webaii base class 'BaseWebAii'. Either add one to the file or delete the tests's .aii.cs or aii.vb file and we will generate a new one."

     

    Any help would be greatly appreciated.

     

    Mike

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 13 Jan Link to this post

    Hi Mike,

    Thank you for contacting us.

    The issue indicates that no class in your code-behind file inherits BaseWebAiiTest class (e.g. public class GOOGLE : BaseWebAiiTest).

    Every valid class in Test Studio should inherit this class.

    You can either modify your code-behind file or you can simply delete it and Test Studio will generate a new one for you.

    Let me know if that helps.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Mike
    Mike avatar
    9 posts
    Member since:
    Jul 2015

    Posted 13 Jan in reply to Boyan Boev Link to this post

    What file specifically should I delete?
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 15 Jan Link to this post

    Hello Mike,

    The code file which is associated with the test (e.g. WebTest.tstest.cs).

    When you run the test again the file will be automatically created.

    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