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.