WebTest with Team Build?

Is it possible to run WebTests with Team Build I'm using Beta 3 Refresh and I couldn't manage it to work, no matter what I do the test always fail under Team Build (it runs perfect when using Test Manager). I'm getting the error:

Results Top Level Tests

------- ---------------

Failed (FullTests/)c:\fullbuild\projeto apresentacao\fullbuild\sources\classlibteste\testproject\webtest1.webtest

Run has the following issue(s):

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Cannot open the ASP.NET project 'F:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite6'.

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Code coverage instrumentation warning while processing file ClassLibTeste.dll:

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2013 : Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this.

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : .

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Code coverage instrumentation warning while processing file TestProject.dll:

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2006 : Could not locate PDB for c:\FullBuild\Projeto Apresentacao\FullBuild\Binaries\Release\TestProject.dll

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning VSP2013 : Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this.

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : .

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning: Test Run deployment issue: Failed to copy file 'c:\FullBuild\Projeto Apresentacao\FullBuild\Binaries\Release\TestProject.instr.pdb' to 'c:\FullBuild\Projeto Apresentacao\FullBuild\TestResults\TFSSERVICE_VSTSB3 2005-12-14 14_57_39_Any CPU_Release\Out\TestProject.instr.pdb': System.IO.FileNotFoundException: Could not find file 'c:\FullBuild\Projeto Apresentacao\FullBuild\Binaries\Release\TestProject.instr.pdb'.

F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Cannot find the local web page 'F:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite6'.



Answer this question

WebTest with Team Build?

  • Timmos101

    Max - your build output suggests that you are not even building a web project in your daily builds. I cannot see the _PublishedWebsites folder since your web project itself has not been built. Can you confirm that the web project you want is in the team project sources

    While configuring for WDS, in the physical path, you need to give %PathToWebRoot%\WebsiteName as described in the blog I suggested above.



  • sonique

    I did everything but it didn't work... so I created a new test project and make sure the location of the web site was the same as the solution (sadly, after change the default location we lost the possibility to use %PathToWebRoot%). I couldn't change the platform, the only option available under build wizard window is "Any CPU". Any way, it worked! I'm going to test more, but looks like the problem really was the location of the web project, what I consider an issue.

    No idea why my previous solution didn't work even after the reconfiguration... if I find out something, I'll post it...


    Thanks,
    Max Andrade

     


  • IraFel

    Please, take a look at this video and tell me what is wrong: http://media.putfile.com/teambuild/original

    Regards,

    Max Andrade


  • chovy

    Max - this is undoubtedly the best and most detailed repro I have seen on our forums so far. Thanks!

    Actually there are 2 issues with your solution:

    1. Your web project is not structured properly before checkin into source control. Check out Nagaraj's post on putting web projects into SC to solve this

    2. You are building your solution in Any CPU platform. You will have to choose "Mixed Platforms" for building a solution with web and managed projects in the Configurations tab of the build type wizard. Check out this post for more details.

    Please let me know if you hit any more issues.

    - Anu

     



  • Pokey

    Not with B3R. Now that I installed RC the "Mixed Plataforms" option is available, but unfortunately, I'm getting the error below and couldn't complete a build until this moment:

    Build started 2/24/2006 9:50:29 AM.

    __________________________________________________

    Project "c:\temp\builds\Teste do Dalton - CNS\Full\BuildType\TFSBuild.proj" (EndToEndIteration target(s)):

    Target InitializeEndToEndIteration:

    F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(166,11): error MSB4064: The "TeamFoundationServerUrl" parameter is not supported by the "UpdateBuildNumberDropLocation" task. Verify the parameter exists on the task, and it is a settable public instance property.

    F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(165,5): error MSB4063: The "UpdateBuildNumberDropLocation" task could not be initialized with its input parameters.

    Done building target "InitializeEndToEndIteration" in project "TFSBuild.proj" -- FAILED.

    Done building project "TFSBuild.proj" -- FAILED.

    Build FAILED.

    F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(166,11): error MSB4064: The "TeamFoundationServerUrl" parameter is not supported by the "UpdateBuildNumberDropLocation" task. Verify the parameter exists on the task, and it is a settable public instance property.

    F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(165,5): error MSB4063: The "UpdateBuildNumberDropLocation" task could not be initialized with its input parameters.

    0 Warning(s)

    2 Error(s)

    Time Elapsed 00:00:00.06


  • Oirad

    From the video, it seems to be some upgrade problem. Did the upgrade of Build Machine to RC bits went through fine

    What is the "File Version" of "%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.dll" (assuming you installed in ProgramFiles)

    Thanks,

    Gautam


  • Luis D. Rojas

    Are you hosting your web site on IIS or on Web Dev server If you are using WDS, does your build machine have the web development server Also, the path to the web site seems to be hardcoded. Please refer http://blogs.msdn.com/anutthara/archive/2005/10/19/482910.aspx for a blog post with detailed instructions on how to run web tests on Team Build

     



  • rouellet

    Max - this error is unrelated to the web tests issue that you started the post with. This error is occurring due to using a wrongly named parameter with the task. This parameter(TeamFoundationServerUrl) might have been renamed in the task UpdateBuildNumberDropLocation.

  • badbadboy

    Max - Did you ever resolve your issue

  • Martyn Upson

    Thanks Anutthara, but I didn’t get it. How do I configure my web test to run over build output I’m currently using WDS and for that I’ve configured the “Parameterized Web Server”. Bui it demands a physical path, right How do I create a test to run on developer machines and on build server I couldn’t find the _PublishedWebsites folder on build directory (you can see a picture of my build directory structure here: http://photos1.blogger.com/blogger/2662/1978/1600/BuildStructure.png).< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

     

    Regards,

    Max Andrade


  • morgar

    Thanks for the video Max. We are investigating this and I'll get back with a fix soon.

  • Keith Schengili-Roberts

    The location of the assemblies using PathToWebRoot might be a bit of an involved problem. We'll soon have info on the web surrounding this. 

    But the build wizard not showing up "Mixed Platforms" as an option in the drop down is strange. You said you were on B3R bits, so this should really show up. Is yours an upgrade scenario or did you reinstall from scratch



  • Solange

    I understand that but, unfortunately, I’m not able to get into the web test once I can’t get the built to work. I recorded a video that shows exactly what I’m doing here: http://max.andrade.googlepages.com/Build.wmv. As you can see, I didn’t mess with the build attributes, so, why it doesn’t work Do you have any idea I already reinstalled Team Build but no success…

    Regards,

    Max Andrade


  • oholliday

    Yep, I installed B3R from scratch. I'm out of office now, but I can record another video Mondey morning if this helps to understand the situation...

    Regards,
    Max Andrade


  • WebTest with Team Build?