We are trying to run automated tests using Microsoft Test Manager 2015.
We've almost reached our goal. This is what was done so far:
When we try to run a separate coded UI test that is associated with a test case using Microsoft Test Manager 2015, we get an error:
The build directory of the test run either does not exist or access permission is required
Any help will be greatly appreciated
Update:
TcmRunner : Build Directory \\\\bhc-appqa01\\TFSShare\\Build Definition 2\\
TcmRunner: Error starting the test run: The build Directory of the test run either does not exist or access permission is required
So I'm super confused now... The controller says that it can see Build Directory and the next log message says build directory does not exist.
I feel you have mixed up a lot of things here.
Good news is that given the fact you are on 2015 you can use the new build workflow to run your automated tests from a test plan/suite
Seems this issue is caused by there are no Visual Studio installed on the build agent.
Microsoft Visual Studio is required to be installed on the build server for the following scenarios:
- To build any CPP test project, you must install Visual Studio Professional or later.
- To run unit tests, or coded UI tests, you must install Visual Studio Professional or later.
To use data and diagnostic data adapters:
Code coverage: Visual Studio Premium or later.** Test impact: Visual Studio Ultimate. IntelliTrace: Visual Studio Ultimate.
To build any modern style apps on a build machine: Visual Studio Ultimate or Visual Studio Express for Windows 8 (Operating system on
build server must be Windows 8).- To compile and run tests for a project with a faked assembly: Visual Studio Ultimate
Please see the source link from MSDN: Run tests in your build process
PS: As long as you have MSDN there is no additional license for Visual Studio required on a Build Agent.
Update
Seems you still need to assign a build to your test plan that contains your Coded UI tests when your running it with MTM. More details, please refer the similar question: Run CodedUI from MTM 2013
Back in August 2015 Microsoft announced that they are not investing in MTM anymore (see this blog article Lab management evolution )
In FAQ part at then end you will find following statement:
But, you can safely assume that we will not invest on new features in MTM Lab Center, nor in enhancing the XAML build templates. We will also not bring in any of the above features such as integrations with newer platforms, integration with newer versions of SCVMM, or integration with the new Build and Release Management services into MTM Lab Center . Similarly, we will not integrate the current Lab environments from MTM into the new Build and Release Management services . We will probably not ship another major version of MTM Lab Center.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.