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

Error missing Pages.g.cs

3 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 28 Oct 2013, 04:52 PM
Hello,

I have created a new WebTest using VS 2010. The file Page.g.cs is not displaying on the Solution Explorer and I can execute the Test without error, but the problem is that VS cannot resolve the 'Pages' object and the Intellisense is not working, please find attached screenshot 'pages_error.png'.
I tried to include the file Pages.g.cs manually(see pages_included.png), the 'Pages' problem is solved but I' ve got an another error
The item "Pages.g.cs" was specified more than once in the "Sources" parameter.  Duplicate items are not supported by the "Sources" parameter.


Could you please help in this matter?

I'm working with Version 2012.2.1527.0 and ie9

Regards,
Eliada Gierschner

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 28 Oct 2013, 05:16 PM
Hello Eliada,

First I hope you don't mind, I converted your post into a public forum post for the benefit of our other customers.

What you are experiencing is not a problem with Visual Studio specifically but is actually a compatibility problem with ReSharper (a Visual Studio add-on). Also, just FYI, it is normal for Pages.g.cs to not appear in Solution Explorer. Test Studio makes a small modification to your .csproj file which instructs Visual Studio to always include this file during the build phase. That's why it works even though it's not listed as a project file.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Martin
Top achievements
Rank 1
answered on 29 Oct 2013, 10:57 AM
Hello Cody,

thanks a lot for your help.

I have another question, I have set a project wide BaseUrl as shown in the attached screenshot. But I've got en error
Unable to resolve the passed uri '/' to an absolute url
when I execute the test.

I notice that I don't have this problem with Test Studio Standalone.

Regards,
Eliada Gierschner
0
Rodney
Telerik team
answered on 29 Oct 2013, 11:00 PM
Hello Jochen,

Thanks for your question. The screenshot shows a test list's BaseURL (configured in a .testsettings file). To configure a project-wide BaseURL, simply click on the project settings icon within your test view and select the gear icon. This article contains a screen shot of what it looks like:

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/project-settings.aspx

Regards,
Rodney
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Cody
Telerik team
Martin
Top achievements
Rank 1
Rodney
Telerik team
Share this question
or