MSTest completes with exit code 1: FileNotFoundException (Cannot find Test Results)

Unanswered MSTest completes with exit code 1: FileNotFoundException (Cannot find Test Results)

  • Tuesday, May 08, 2012 12:54 AM
     
     

    Hi all.

    I have an interesting problem.  I am running a coded UI test as part of a TFS build (2010).  I am invoking MSTest.exe directly from the build.  The test runs on another VM set up with Test Controller/Agent so that I can get an interactive process.  The test passes but MSTest still exits with an error:

    Error 5/7/2012 12:18:21 Exception during deploying files back to host application: System.IO.FileNotFoundException: Could not find file 'C:\Documents and Settings\acs_tfs_devbuilder\Local Settings\Application Data\VSEQT\QTController\c19689d8-2155-487b-9cbd-0f123594f005\Results\6988639e-7439-4998-9d2c-494b7bb719ab\VPD6-TTA-004\DpDeploymentVerificationTest_20120507121523.log'.. TFSBUILD

    I drilled down to the path of the missing file and noticed that there is a file there only it is has a slightly different name: DpDeploymentVerificationTest_ResultsONLY_20120507121523.log.

    Anyone have any ideas how to correct this?


    -7

All Replies

  • Wednesday, May 09, 2012 2:36 AM
    Moderator
     
     

    Hi Smyrin, 

    Thanks for your post.

               

    Have you tried to running your tests using MSTest.exe manually on this “another VM”? MSTest still occur the same error? 

    And you can change the Build Service run as Interactive Process directly in TFS Admin Console>>Build Configuration>>Properties, then run your code UI tests using Team Build, please refer to the detailed steps in this article: http://blogs.msdn.com/b/mathew_aniyan/archive/2009/05/26/coded-ui-test-in-a-team-build.aspx.   


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us