Hi Dave,
From your description, you're encountering some problem open a webtest file
in your visual studio (2005? ) project, correct?
As for the WebTest, you created throught "Test-->NewTest ...", then do you
already have a web application(project) opened or you create a new
project/solution through "Test-->New Test"? As the error message indicate,
a webtest file must be embeded in a test project, I'm wondering whether
there is anything incorrect with the container project. I've performed a
simple test on my side via the following steps:
** open an existing ASP.NET web project (hosted in IIS)
** "Test-->New Test" and create a new Web Test in the project(also create
a new Test Project inside the solution that contain the original web
project)
** close the IDE and open it again, it seems the webtest file can be opened
correctly.
therefore, I think this should be a solution or project specific issue. For
general test, you can also try create a new solution and copy all the
original projects into the new one to see whether the problems can be
eliminated.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?RGF2ZQ==?= <>
>Subject: A test can be opened only within a test Project Error
>Date: Fri, 1 Feb 2008 18:56:00 -0800
>
>Having issues with a "Web Test" project.
>
>The project was created by Test => New Test => Web Test. Everything is
fine
>until I exit the IDE and then re-open the solution. When I try to open
the
>.WebTest file, the following error is issued:
>
>---------------------------
>Microsoft Visual Studio
>---------------------------
>Visual Studio could not open the file
"C:\Inetpub\wwwroot\Trax\TraxReportsTest\rptTimePe riodReturnsMultipleNames.w
ebtest"
>because the file contains tests. A test can be opened only within a test
>project. Add the file to a test project, add the test project to the open
>solution, and then try again.
>----------------------------
>
>The .webtest is in the "Web Test" project described above.
>
>What is the cause of this error and how can it be avoided? I can't afford
>to create new Test Projects everytime I open the IDE.
>
>Any help will be greatly appreciated!
>
>
>
>