VS controller 2017 error on configuration - tfs

I am trying to set up the VS controller on a virtual machine, but it is giving me an error.
I have specified the lab account on the Configure Test Controller, but when I try to apply settings it is showing the error below.
Since you have not configured lab service account, make sure
a) test agent can communicate with the test controller,
b) test controller and test agent can access the build drop location, and
c) Microsoft Test Manager can connect to the test controller during manual test runs. Manual steps might be needed to setup the permissions mentioned above
Both users that I am using, are local admin, on the TFS server and also on the machine that I have installed the VS controller.
VS controller configuration
Can you someone help on this?
Tks in advance.

Related

Failed to Configure TFS Team Project Collection

Facing this issue while configuring test controller.
The user for the test controller is a member of the TeamTestControllerAdmins group and test controller is configured for the correct team project collection.
Please look into the logs and tell if i have to make any changes?
Logs2
Logs1
Logs3

MTM Lab Center cannot add new Machines

I'm trying to set up a new lab environment in MTM (2010) in TFS 2010 for a client. When I attempt to define a new environment I get to this screen and everything is disabled. Is this a permissions issue or perhaps was it TFS was not set up with Lab Environment?
Should I be able to add a machine? If I go to the test settings tabs, I get to the "Roles" section and it tells me there are no Test Environments, when I click the link it takes me back to this screen below.
We were able to create the controller yesterday and it shows up in the Controllers tab.
Experimenting futher on this tab I attempt to "Componse Virtual Environment" and this is the message it showed. "You cannot create a Virtual Environment"
I am not TFS Admin, and need to ask someone else to do this if indeed it's the issue. I'll look it up on google but am also looking for any tips.
The root cause was that I didn't know, at the time; when clicking on the "Machines" tab that you must highlight the controller and then click "Add to the Environment" once I did that I saw the machine pop up in the Environments window.

TFS- MTM - Unable to successfully configure the test controller to communicate with TFS

I am trying to set up a system where I can run selenium automated test from MTM.
The issue I am facing is I am not able to configure Test Controller successfully. I believe this is due to some permission issue. Below is the set up I am using
The error I am getting while clicking on Apply Settings is below
E, 2016/08/22, 16:20:19.541, Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information
I, 2016/08/22, 16:20:19.542, Failed to connect to the tfs project collection https://xyz.visualstudio.com/DefaultCollection. Microsoft.VisualStudio.TestTools.ConfigCore.ConfigToolException: Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information
at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.AttemptToAddServiceAccountToGroup(ControllerConfigurationUpdatePack updatePack, TfsTeamProjectCollection server, TfsServiceAccount account, DelegateStatusUpdate statusListener)
at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.ChangeTfsRegistration(ControllerConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)
E, 2016/08/22, 16:20:19.551, Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information
The log states that I need Edit collection-level information. I believe this is at the default collection level and I am afraid I will not get this persmission as this is something similar to super admin where I can have the power to delete/modify an existing project in the collection.
I believe this should not be provided to all the testers as this might lead to some accidental damages to the project.
Please correct me if I am wrong and advice as what I need to do next to make sure I am able to configure the test test controller successfully.
Thanks a lot for your help on this.
Your assumption regarding Edit collection-level information permission is wrong. It's not super admin. Please read https://msdn.microsoft.com/en-us/library/ms252587.aspx carefully.
Just ask your TFS admin
to add your account to project collection's Project Collection Test Service Accounts group or
to tell you an existing service account used for this purpose.

MTM wrong video attachment in test result

We have an automated test run (TFS 2013, MTM 2013) and in the Test Settings we have configured 'Screen and Voice Recorder' to be on.
The problem is that the wrong video is displayed when opening an attachment after a test run.
For example, the latest run is from 29/8, and when opening a video attachment, the video that is opened is from 25/8.
Have anyone encountered this issue?
A few more points that might help -
For this run, we have a test controller and two test agents, Let`s call them 1 and 2. The test controller is installed on machine 1, and the problem only exists when opening an attachment from agent 1. When opening an attachment from agent 2 - everything is ok.
Both machines are Windows Server 2012 R2 (Datacenter).
Thanks in advance!
What about user's who is running services? Are they domain, local accounts? Test controller stores test result data in user profile directory. Maybe test controller and agent are running on the same user?
MTM > LAB > Controllers has RMB menu to clean up local store. Try this and run test again. Controllers stores few test runs of test results as backup

Restore tfs collection from mdf/ldf

My server running TFS express crashed. I managed to mount the disk and extract mdf/ldf file for my TFS collection. Here is what I did next:
Built a new machine (with the same name/IP address) and installed SQL Express/TFS server express.
From SQL Server Management Studio, attached the mdf/ldf files. I can now see TFS_MyCollection as a new database.
From TFS Administrative console, clicked on "Attach Collection."
However, the new database is not being listed.
I went through a bunch of links on the Internet. https://social.msdn.microsoft.com/Forums/en-US/d949edf3-1795-448a-a1cc-39555ce87b50/tfs-2010-installation-error had a similar situation. Based on the suggestion, I had attached the database. I also looked at https://msdn.microsoft.com/en-us/library/ms404869(VS.80).aspx. However, this one talks about using backup/restore, which is not my case.
I must be missing some configuration step. Please advice. Regards.
You cant just attach a collection that was never detached.
You need to unconfigure your TFS instance (tfconfig.exe setup /uninstall:all) and then restore all of the databases.
You will need to restore each collection and the configuration DB. They are currently a set. Once you have all of the databses attached/restored you need to run the setup and "configure application tier only".
https://msdn.microsoft.com/en-us/library/ms404869.aspx
You need to follow the documentation for moving hardware. Make sure that you follow each step.
Note: You should take backups!

Resources