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

Error message when converting a recorded step to code

3 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 08 Jan 2016, 12:27 PM

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

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 13 Jan 2016, 11:27 AM
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!
0
Mike
Top achievements
Rank 1
answered on 13 Jan 2016, 12:24 PM
What file specifically should I delete?
0
Boyan Boev
Telerik team
answered on 15 Jan 2016, 02:00 PM
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!
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Mike
Top achievements
Rank 1
Share this question
or