locked
Web tests not running in TFSBuild 2008 RRS feed

  • Question

  •  

    Hi,

     

    I am have created a TFS 2008 build type to build and test my application.  However I am having problems getting my webtests to run.

     

    Following the commented sample in the TFSBuild.proj file i have added the following line to my proj file:

     

    <TestContainer Include="$(SolutionRoot)\TestProject1\%2a.webtest" />

     

     

    But when the build runs i get the following error:

     

    "C:\Documents and Settings\srvlinkonetfs\Local Settings\Temp\Simple Project\TestBuild\BuildType\TFSBuild.proj" (TestConfiguration target) (1:6) ->

    (CoreTestConfiguration target) ->

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: The "TestToolsTask" task failed unexpectedly.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: System.BadImageFormatException: Could not load file or assembly 'file:///C:\Documents and Settings\srvlinkonetfs\Local Settings\Temp\Simple Project\TestBuild\Sources\TestProject1\WebTest1.webtest' or one of its dependencies. The module was expected to contain an assembly manifest.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: File name: 'file:///C:\Documents and Settings\srvlinkonetfs\Local Settings\Temp\Simple Project\TestBuild\Sources\TestProject1\WebTest1.webtest'

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at System.Reflection.Assembly.LoadFrom(String assemblyFile)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at Microsoft.Build.Tasks.TestToolsTask.GetUTFVersionFromAssembly(String assemblyName, Int32 version)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at Microsoft.Build.Tasks.TestToolsTask.Execute()

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018:

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: === Pre-bind state information ===

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: User = DEV\srvlinkonetfs

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Where-ref bind. Location = C:\Documents and Settings\srvlinkonetfs\Local Settings\Temp\Simple Project\TestBuild\Sources\TestProject1\WebTest1.webtest

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Appbase = file:///C:/WINDOWS/Microsoft.NET/Framework/v3.5/

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Initial PrivatePath = NULL

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: Calling assembly : (Unknown).

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: ===

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: This bind starts in LoadFrom load context.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Using application configuration file: C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe.Config

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: LOG: Attempting download of new URL file:///C:/Documents and Settings/srvlinkonetfs/Local Settings/Temp/Simple Project/TestBuild/Sources/TestProject1/WebTest1.webtest.

    C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning MSB4018: ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

     

    When i run the build on my desktop computer I have no difficulties running the tests.  Can you please advise how i get these tests to run in my automated build.

     

    Thank you,

    Daniel

    Monday, June 2, 2008 3:31 AM

Answers

All replies

  • Hello Daniel,

     

       Sorry you cannot use the TestContainer to run Load Test and Web Test now.

     

       Here is a link.

     

        http://ozgrant.com/2008/02/28/testcontainer-in-team-build-2008-doesnt-work-for-load-tests-or-web-tests/

     

        Please try the Test List  vsmdi file at the Team Build Type file.

     

       Addition

     

            http://msdn.microsoft.com/en-us/library/ms243136.aspx

     

     

       Thanks.

    Friday, June 6, 2008 4:54 AM
  • This is supposed to have been fixed with SP1.  When we installed the service pack on our build server that error disappeared, only to be replaced by one that says that .webtest is not a valid extension for a test container.  My suspicion is that this is because we don't have a Testers' edition on the build machine.

    Monday, September 1, 2008 2:53 PM
  • What about ordered tests?

     

    I have SP1 installed and Team System Developer and I get the same thing running ordered test.

    This theoretically should work since mstest runs them fine.


    N8
    Saturday, July 3, 2010 9:13 PM