The type or namespace name 'Pages' could not be found

7 posts, 0 answers
  1. Gavin
    Gavin avatar
    3 posts
    Member since:
    Nov 2013

    Posted 11 Nov 2013 Link to this post


    I'm using the Test Studio 2013.1 plugin for Visual Studio 2012.

    I've successfully managed to record and run a number of tests, but trying to add a coded test step has resulted in my project failing to build, with the error:
    The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)

    I've checked that the Pages.g.cs file has been included in my test project, and that the file is being generated from time to time.
    I've also checked the namespace used in the Pages.g.cs file matches the namespace of the test project, which it does.

    Having searched your forums and the web, I see this is a long standing, recurring issue.
    I hope you have a robust solution to this issue available.

    Thank you,
    Gavin
  2. Gavin
    Gavin avatar
    3 posts
    Member since:
    Nov 2013

    Posted 12 Nov 2013 Link to this post

    Although Pages.g.cs was visible in my Visual Studio project, it wasn't actually "included" in my project. 
    Having manually included Pages.g.cs in my Visual Studio project, the code compiles correctly.

    Please resolve your bugs. This is an issue that has been affecting your Test Studio product for at least the past three years, as shown by a search of your forums!  
  3. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 13 Nov 2013 Link to this post

    Hi Gavin,

    It is good to hear that you've been able to resolve this problem on your own. 

    Usually the cause of this problem is different and we have a troubleshooting guide to help you locate and fix the cause of this error.

    Thank you for your feedback, which we always use to improve our product. 

    Regards,
    Velin Koychev
    Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  4. Jost von
    Jost von avatar
    2 posts
    Member since:
    Mar 2013

    Posted 06 Feb 2014 in reply to Velin Koychev Link to this post

    Hi,
    after I inserted a coded step in my standalone test I received the same error "The type or namespace name 'Pages' could not be found".
    Copying all test steps (except the coded one) into a new test helped to make the test runnable again - but at last I needed a coded step.
    I checked the fully qualified .cs file in error message and found that this was related to an old test I had already removed some time before. So I renamed the .cs file to .cs_old and .. this worked. Now the test could be successfully compiled.
    Maybe this will help you bugfixing, too.
    Kind Regards
    Jost
  5. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 11 Feb 2014 Link to this post

    Hi Jost,

    Thank you for sharing your experience and discoveries. They could be very helpful for anyone who is experiencing the same problem. 
    We will investigate this issue further. 

    Regards,
    Velin Koychev
    Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  6. Velocitas
    Velocitas avatar
    11 posts
    Member since:
    Mar 2016

    Posted 27 Apr Link to this post

    Hey Telerik Team,

    I am having a similar issue, but I have placed my dlls in the root project folder, and it still says "The type or namespace name . .. ." This only occurs when I am trying to run my lists via ArtOfTest.Runner.exe. My test list runs correctly locally and remotely, but when I use ArtOfTest.Runner.exe it cannot find my 3rd party libraries.

    Any suggestions?

    Thank you,

    Kelly

  7. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 28 Apr Link to this post

    Hello Kelly,

    Your problem is completely different so please focus on the support ticket you have submitted for more details.

    Thank you.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top