I'm trying to create a new environment in Lab Center and I get the following error on the Verification step
Text version:
Verify that the machines are accessible using the user name and password provided. Failed
JPTest: Microsoft Test Manager cannot install test agent on these machines. Possible causes:
- Machines are not running or they are not available on the network.
- The File and Printer Sharing exception is not enabled on the machines.
I've verified (many times) that the File and Printer Sharing exception is enabled, and that the machine is available on the network. Also the username and password provided is correct.
Curiously this step worked before the machine was added to the domain (note that the machines name is not JPTest, its actually a name generated by the windows installation)
I'm using Visual Studio 2012 and the machine is in a SCVMM environment.
My biggest problem is that I can't find any more information other than this very vague error message. How can I diagnose this problem?
Run as administrator. I had the same issue in Microsoft Test Manager 2013, you just have to run it as administrator. Ate least worked for me!
The best way to diagnose the problem is to activate MTM logging.
There is some blogs describing this activation via mtm.exe.config file (that is located in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE for Visual Studio 2012).
See this one for example: How to enable logs for MTM?
But this did not work for me for some reasons.
The only way I could activate MTM logging was via registry keys.
For Visual Studio 2012 create a file with the following content, rename it so that it has .reg extension and double click on it in Windows Explorer:
Or just create these keys manually.
The EnableTracing variable controls whether tracing is ON (1) or OFF (0).
The TraceLevel variable is for level (granularity) of tracing:
LogsDirectory is optional. If that is not specified, %TEMP% will be used.
Trace file name is <Process name>.EqtTrace.log, e.g. mtm.EqtTrace.log.
You should restart MTM after you've changed the registry.
And do not forget to deactivate logging once you solved the problem (set EnableTracing to 0).
try running MTM as administrator, and Provide the correct computer name while adding the machine. Worked for me..
I narrowed it down to two things.
After enabling MTM.exe.config logging as described here I noticed 2 files were created after trying to Verify the new Lab Environment:
This MSDN thread discusses missing these temporary files and the problem looks like its caused from a Trust between two domains. However, I believe this is a red-herring and the reason these (<GUID>_Aum.xml) files are not created is a symptom of an earlier problem seen in the second <GUID>MTMTrace.log file
In my experience DLL BadImageFormatException load problems tend to be caused by x86 and x64 compilation.
In any case, I suspected the problematic VideoRecorderEngine.dll was needed for the environment to run UI Tests, so I turned that off:
Then the verification was successful:
I'm not sure if adding the service account to the Admin Group was needed but I did it - thanks Elena!
Finally I disabled the logging from the MTM.exe.config.
Check the User name and Password on the "Machines" tab.
It will be set to the current user of the machine where MTM is running each time you open a test environment.
If this user is not a member of Administrators group on all machines in your environment you will get this error message during verification.