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

[Solved] Test generation fails on missing assembly

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Villads
Top achievements
Rank 1
Villads asked on 17 Feb 2009, 09:09 AM
I installed the software, worked just fine, recorded a 6 step test, that worked really well, but when I converted the code to teststeps to code I got the following error:

Error    1    The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)    C:\Projects\xxxx\xxxx\WebAiiTest1.aii.cs    62    17    xxxxTest

In an autogenerated region:

        #region [ Dynamic Pages Reference ]

        private Pages _pages;

        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }

        #endregion


I have added no code to the solution yet, and there were no errors when I just ran the tests "quick execute test against selected browser".

The following references are present in the project:
  • ArtOfTest.WebAii
  • ArtOfTest.WebAii.Design
  • Microsoft.VisualStudil.QualityTools.UnitTestFramework
  • System
  • System.Core
  • System.Windows.Forms
  • Telerik.Web.UI.Translators

Any clues?

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 17 Feb 2009, 09:37 AM
Hello Villads,

The assembly references look fine, but the project class should not be empty. Actually, each recorded step should result into adding the corresponding element into the project  file so that it can be accessed further by the converted test code. It looks like the recording failed to add these elements to the project repository in your case.

Can you please try with a new test project from scratch? Just check if recording test steps (you don't need to convert the code) updates the project class source accordingly.

Additionally, you can submit a formal support ticket from your account sending the zipped test project there.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Villads
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or