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

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

6 Answers 424 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 11 Nov 2013, 05:36 PM

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

6 Answers, 1 is accepted

Sort by
0
Gavin
Top achievements
Rank 1
answered on 12 Nov 2013, 01:45 PM
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!  
0
Velin Koychev
Telerik team
answered on 13 Nov 2013, 10:52 AM
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!
0
Jost von
Top achievements
Rank 1
answered on 06 Feb 2014, 02:56 PM
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
0
Velin Koychev
Telerik team
answered on 11 Feb 2014, 02:42 PM
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!
0
Velocitas
Top achievements
Rank 2
answered on 27 Apr 2016, 02:04 PM

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

0
Ivaylo
Telerik team
answered on 28 Apr 2016, 07:13 AM
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!
Tags
General Discussions
Asked by
Gavin
Top achievements
Rank 1
Answers by
Gavin
Top achievements
Rank 1
Velin Koychev
Telerik team
Jost von
Top achievements
Rank 1
Velocitas
Top achievements
Rank 2
Ivaylo
Telerik team
Share this question
or