TFS 2012 Test Agent keep alternating status Online/Disconnected

TFS 2012 environment
Test Controller and Agent Update 3.  
We are using a shadow account to connect the Agent (not on domain) to the Controller (on domain).
The problem I'm having is that the Test Agent Status alternates constantly between Online and Disconnected. 
I have all TCP and UDP ports open in the Firewall on the Agent and Controller (can't just turn it off because of policy settings).  
I have created an environment in Lab Center and can kick off a Lab Template based build definition to execute an automated test.  The process get to a point of wait for the the test environment to be ready, starts a test execution, and completes the
test run with a Warning: "An error occurred while communicating with Agent vstfs:///LabManagement/TestMachine/###", where ### is a three digit number.
If I just sit and watch the Test Agent status, with no test runs running, the status will show Online for about 10-15 seconds and then show Disconnected for about 30-60 seconds.  And then it repeats.  
Another thing to mention, the Test Controller for this effort was cloned from a previous Test Controller that was used for another project.  The previous Controller was on the domain at the time of being cloned and had issues of being the same computer
name on the network and then other issues because the Controller was already assigned to a collection.  Another person here went through a process of fixing by uninstalling the controller software and then deleting some XML files that were left behind
after uninstalling the controller software.  I feel that a new controller should be created from scratch because I feel that there is still some conflicts between the old and new Controllers.
Any assistance would be greatly appreciated.

I have additional information to supply to this thread for the benefit of others who may come across this issue.
The main issue of using the same version of Test Manager with the version of TFS you have running is the first part.
After this post, I added additional testing environments and virtual machines in SCVMM and started having the "Online/Disconnected" issue again.  With more research, I figured out that I had to add the IP address and host name of
the Test Controller to the hosts file on the Test Agents (path to the
hosts file "C:\Windows\System32\drivers\etc\").  Just open this file in NotePad (or the editor of your choice) and add a line at the end with the IP and host name.
Example hosts file:
# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
123.456.78.9 computername.domain.com
I have used this several times and it has worked every time (so far) where I use shadow accounts in the TFS test environments.  Hope this helps!

Similar Messages

  • Connectivity to Test Controllers and Test Agents in virtual machine

    Hi,
    I’m setting up the load test infrastructure- configured test controller and test agent on skytap virtual machine (which is windows server 2012). I have configured as below:
    The load tests exist on my machine (TFS 2013) , in test settings I selected – Local execution with remote collection, tried with selecting remote execution, selected the controller, the status shows as connected to controller: ‘XXXXXXXXXXX:6901’
    I have configured the test controller ( TC 2013 )  for load testing, specified logon account as – Local system, since I’m not connecting the TFS in my virtual machine I skipped the Team Project Collection part. The load test database (SQLExpress)
    is connected.
    The Text Agent (TA 2013) also exists on the same virtual machine and is registered with controller. The test agent is running as service , logon as – Network service
    I had checked the services, admin users on my machine and virtual machine, made the firewall exceptions, tried disabling the firewall too, checked the config files for QTController and QTTest Agent(C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE)
     for port 6901, I can ping my machine( IP or with DNS) to Virtual machine ( vice versa). I also tried to set the logging – verbose for all TA, TC , devenv config ( however, I could see any logs).
    The machines are in same domain and port 6901 is accessible from local machine.
    When I try to run my load test from my machine it gives the below error:
    Error:     Failed to queue test run 'LoadTests (2015-01-22 15:04:00)': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host
    has failed to respond.             
    I tried troubleshooting with all the online help available, could not find a solution.
    Please help on this.
    Dhillon_H

    Hi Tina-Shi
    Thank you for the response. Please see below my findings and the logs
    - There were no errors while configuring TC, TA on VM , only warnings as 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.
    -The test Agent is ready status in the Manage Test Controllers Window in the local.testsetings file.
    - The load tests run successfully when I select local execution.
    - I have referred the links mentioned , couldn't find the solution, also sending some content from logs I have on the VM machine where my TC, TA exist.
    - Also, I’m the admin on my TFS machine and VM .
    - TC configuration – as Local system , TA configuration- as network service.
    VSTTAgent.log
    I, 4988, 41, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTAgentService.exe, AgentService: Connecting to controller. Using AgentName: XXXXX-XXX-XXXX : Domain : DEVOP.Xxxxx-xxx-xxxx.com
    V, 4988, 32, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentService: calling AgentObject.Hello
    V, 4988, 32, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: waiting for agents to start.
    V, 4988, 32, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: Agents started.
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Calling 'DataCollectionEnvironmentContext' on the data collection agent
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: waiting for agents to start.
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.WaitForDataCollectionAgentProcessToStart: Agents started.
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Successfully called 'DataCollectionEnvironmentContext' on the data collection agent
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Calling 'DataCollectionEnvironmentContext' on the test agent
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Successfully called 'DataCollectionEnvironmentContext' on the test agent
    I, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentService: Successfully connected to controller.
    V, 4988, 41, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentStatusAggregator.ControllerConnected: Connection to controller XXXXX-XXX-XXXX:6901 has been established.
    V, 4988, 44, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Calling 'SetAgentDataCollectorInformation' on the controller
    V, 4988, 44, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTAgentService.exe, AgentProcessManager.PerformActionIgnoringExceptions: Successfully called 'SetAgentDataCollectorInformation' on the controller
    EqtTraceAgent.log
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, Agent XXXXX-XXX-XXXX: created Controller Event Sink
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: starting state machine on different thread.
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): SetNextState Online called
    V, 568, 7, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): In state Online. Waiting for state change...
    V, 568, 7, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): Exit wait for state change, current state is Online.
    V, 568, 7, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): Uninitialized => Online
    V, 568, 7, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): calling state handler for Online
    V, 568, 7, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): In state Online. Waiting for state change...
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectorWatcher: DataCollectorDiscoveryPeriod set to: 5000
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectorWatcher.Start: Starting to watch for changes in the data collector files.
    V, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: constructor is done, success.
    I, 568, 1, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentProcess: Calling into AgentService to register the agent.
    V, 568, 8, 2015/01/23, 12:28:31.395, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectorCache.ForceCacheUpdate: Performing data collector discovery.
    I, 568, 1, 2015/01/23, 12:28:31.411, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentProcess: Successfully registered data collection agent process.
    I, 568, 1, 2015/01/23, 12:28:31.411, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentProcess: waiting for shutdown notification.
    V, 568, 8, 2015/01/23, 12:28:32.192, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectorCache.ForceCacheUpdate: Done performing data collector discovery.
    V, 568, 10, 2015/01/23, 12:28:32.458, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 568, 10, 2015/01/23, 12:28:32.458, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-f0f6cfb9-454f-4e8a-c857-170546772b6e/
    V, 568, 25, 2015/01/23, 12:38:33.345, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 568, 25, 2015/01/23, 12:38:33.345, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-f0f6cfb9-454f-4e8a-c857-170546772b6e/
    V, 568, 33, 2015/01/23, 12:48:32.667, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 568, 53, 2015/01/23, 12:48:32.667, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-f0f6cfb9-454f-4e8a-c857-170546772b6e/
    V, 568, 54, 2015/01/23, 12:58:33.943, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 568, 54, 2015/01/23, 12:58:33.943, XXXXX-XXX-XXXX\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-f0f6cfb9-454f-4e8a-c857-170546772b6e/
    EqtTraceController.log
    V, 2608, 20, 2015/01/23, 13:08:10.287, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: Hello
    V, 2608, 20, 2015/01/23, 13:08:11.302, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    I, 2608, 20, 2015/01/23, 13:08:11.302, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: Creating ControllerExecution for TestRun 9f0e53e4-09da-40f4-90d8-01bdaeec7365
    I, 2608, 20, 2015/01/23, 13:08:11.318, XXXXX-XXX-XXXX\QTController.exe, ControllerSpooledJob: creating spooled job for test run 'LoadTests (2015-01-23 13:08:08)'
    I, 2608, 20, 2015/01/23, 13:08:11.318, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: Queuing TestRun 9f0e53e4-09da-40f4-90d8-01bdaeec7365
    V, 2608, 22, 2015/01/23, 13:12:54.566, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 22, 2015/01/23, 13:12:54.566, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: AgentHello from XXXXX-XXX-XXXX
    V, 2608, 22, 2015/01/23, 13:12:54.566, XXXXX-XXX-XXXX\QTController.exe, Verifying the connection integrity for following number of objects: 1
    V, 2608, 24, 2015/01/23, 13:17:54.596, XXXXX-XXX-XXXX\QTController.exe, Agent : NT AUTHORITY\NETWORK SERVICE
    V, 2608, 24, 2015/01/23, 13:17:54.596, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 24, 2015/01/23, 13:17:54.596, XXXXX-XXX-XXXX\QTController.exe, User NT AUTHORITY\NETWORK SERVICE is in group TeamTestAgentService.
    I, 2608, 24, 2015/01/23, 13:17:54.596, XXXXX-XXX-XXXX\QTController.exe, A user has successfully authenticated to obtain the ControllerObject.
    V, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.ConnectAgent: Agent: XXXXX-XXX-XXXX from machine: xxxxx-xxx-xxxx.DEVOP.Xxxxx-xxx-xxxx.com trying to connect.
    V, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, User NT AUTHORITY\NETWORK SERVICE is in group TeamTestAgentService.
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, AgentDomainTrusted : Controller Domain DEVOP.Xxxxx-xxx-xxxx.com Agent Domain DEVOP.Xxxxx-xxx-xxxx.com
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, AgentDomainTrusted : Same domain DEVOP.Xxxxx-xxx-xxxx.com
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.ConnectAgent : Ignoring the identity
    V, 2608, 27, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, Successfully verified connection for agent XXXXX-XXX-XXXX
    I, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, AgentManager: Agent 'XXXXX-XXX-XXXX' successfully connected.
    V, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, Verifying the connection integrity for following number of objects: 1
    V, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.ConnectAgent: Agent: XXXXX-XXX-XXXX Returning.
    V, 2608, 24, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 29, 2015/01/23, 13:19:13.442, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    I, 2608, 29, 2015/01/23, 13:19:13.442, XXXXX-XXX-XXXX\QTController.exe, A user has successfully authenticated to obtain the ControllerObject.
    V, 2608, 28, 2015/01/23, 13:19:14.114, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: Hello
    V, 2608, 28, 2015/01/23, 13:19:14.364, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    V, 2608, 28, 2015/01/23, 13:19:16.270, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    V, 2608, 28, 2015/01/23, 13:19:16.489, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    V, 2608, 32, 2015/01/23, 13:22:54.593, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 32, 2015/01/23, 13:22:54.593, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: AgentHello from XXXXX-XXX-XXXX
    V, 2608, 32, 2015/01/23, 13:22:54.593, XXXXX-XXX-XXXX\QTController.exe, Verifying the connection integrity for following number of objects: 1
    VSTTController.log
    V, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, User NT AUTHORITY\NETWORK SERVICE is in group TeamTestAgentService.
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, AgentDomainTrusted : Controller Domain DEVOP.Xxxxx-xxx-xxxx.com Agent Domain DEVOP.Xxxxx-xxx-xxxx.com
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, AgentDomainTrusted : Same domain DEVOP.Xxxxx-xxx-xxxx.com
    I, 2608, 23, 2015/01/23, 13:17:55.877, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.ConnectAgent : Ignoring the identity
    V, 2608, 27, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, Successfully verified connection for agent XXXXX-XXX-XXXX
    I, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, AgentManager: Agent 'XXXXX-XXX-XXXX' successfully connected.
    V, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, Verifying the connection integrity for following number of objects: 1
    V, 2608, 23, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.ConnectAgent: Agent: XXXXX-XXX-XXXX Returning.
    V, 2608, 24, 2015/01/23, 13:17:55.893, XXXXX-XXX-XXXX\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: XXXXX-XXX-XXXX of environment [Default] trying to connect.
    V, 2608, 29, 2015/01/23, 13:19:13.442, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    I, 2608, 29, 2015/01/23, 13:19:13.442, XXXXX-XXX-XXXX\QTController.exe, A user has successfully authenticated to obtain the ControllerObject.
    V, 2608, 28, 2015/01/23, 13:19:14.114, XXXXX-XXX-XXXX\QTController.exe, ControllerObject: Hello
    V, 2608, 28, 2015/01/23, 13:19:14.364, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    V, 2608, 28, 2015/01/23, 13:19:16.270, XXXXX-XXX-XXXX\QTController.exe, User XXXXX-XXX-XXXX\dhilloha is system, Admin, or controller user
    V, 2608, 28, 2015/01/23, 13:19:16.489, XXXXX-XXX-XXXX\QTController.exe, User xxxxxxxx\dhilloha is system, Admin, or controller user
    Thanks you for looking into this.
    Dhillon_H

  • Test Agent - QTAgentProcessUI - Display on Startup Problem

    Hello,
    Currently we have a suite of VM's setup on Amazons Web Services (AWS) that have been configured with TFS 2013 Test Agents. These Agents are configured in Interactive Mode as we are attempting to automate our CodedUI tests. Everything is working correctly
    with our Test Controller and Test Agent setup. I am using Agents for TFS 2013 Update 4.
    The problem is with the QTAgentProcessUI.exe and the "Display this window at startup" checkbox. No matter how many times I uncheck this option to mark it as "do not display this on startup", every single time after a restart, the checkbox
    is checked again and the window is displayed.
    If i also uncheck this box, perform a correct "Quit" of the application and then fire it up again, the application returns and the checkbox is clicked on again.
    I have done some research and the only other solution someone recommended was to do a complete reinstall of windows. I have tried this and I still have the same problem. I've even tried setting up some Powershell scripts to find the QTAgentProcessUI process
    and Close the main window, which works if I run the script directly but fails for unknown reasons when run during a Build.
    This is becoming a real problem as it is blocking the test application and therefore our tests fail. I'm at my wits end and would just like this tool to work as it's obviously meant to and I'm all out of ideas. Does anyone have any suggestions or ideas on
    how to fix this?

    Hi Natahnd, 
    Thanks for your post.
    As you have submitted this issue in feedback site:
    https://connect.microsoft.com/VisualStudio/feedback/details/1114851/qtagentprocessui-display-this-window-on-startup, please tracking the reply in there for the better response.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TFS 2012 Update 4 - Build Alert - "A build controller or agent's status changes" doesn't work correctly

    We are running TFS2012 Update 4 and have set up some build alerts.  The alert we have set up is "A build controller or agent's status changes".  When this alert is first set up the default filters which are included are for fields "Team
    Project" and "Status".  However through much testing we have discovered that when either of these fields are included as a filter the alert doesn't work.  When other fields are used in the filter the alert works fine (as long
    as neither of the stated fields are included), indeed if all alert filters are removed then the alert also works successfully.  Has anyone else experienced this?  Is there an issue with the fields "Team Project" and "Status"?

    Hi T Quinn,   
    Thanks for your post.
    I reproduced this scenario in my TFS 2012 Update 4 Server and received the same result.
    For this scenario, please submit it to Microsoft Connect Feedback portal at:
    https://connect.microsoft.com/VisualStudio. Microsoft engineers will evaluate them seriously. 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Upgraded TFS 2010 SP1 to TFS 2012 but "Test-SPContentDatabase" throws error while upgrading SP2010 to SP2013

    Hello All,
    Executed the following command in the SP 2013 management shell as administrator:
    "Test-SPContentDatabase -Name WSS_CONTENT -WebApplication http://tfs2010"
    Errors:
    1. Category        : MissingSetupFile
    Error           : True
    UpgradeBlocking : False
    Message         : File [Features\ReportServer\ReportViewer.dwp] is referenced
                      [2] times in the database [WSS_CONTENT], but is not
                      installed on the current farm. Please install any
                      feature/solution which contains this file.
    2. Category        : MissingSetupFile
    Error           : True
    UpgradeBlocking : False
    Message         : File [Features\TfsDashboardAgileReports\Reports\Report
                      Template.xltx] is referenced [2] times in the database
                      [WSS_CONTENT], but is not installed on the current farm.
                      Please install any feature/solution which contains this file.
    3. Category        : MissingSetupFile
    Error           : True
    UpgradeBlocking : False
    Message         : File [Features\TfsDashboardCmmiReports\Reports\Report
                      Template.xltx] is referenced [2] times in the database
                      [WSS_CONTENT], but is not installed on the current farm.
                      Please install any feature/solution which contains this file.
    4. Category        : Configuration
    Error           : False
    UpgradeBlocking : False
    Message         : The [SharePoint - 80] web application is configured with
                      claims authentication mode however the content database you
                      are trying to attach is intended to be used against a
                      windows classic authentication mode.
    Tried for the error 4: New-SPWebApplication -Name "TFSWEBAPP" -ApplicationPool "SharePoint Web Services System" -AuthenticationMethod "NTLM" -ApplicationPoolAccount
    (Get-SPManagedAccount "XXX\spservice") -Port 80 -URL "http://tfs2010
    After executing the above command I was getting ">>",
    didn't got any other reply for long time. Is there any power shell command to convert "claims mode" to "classic mode"
    Can someone help on the above mentioned errors.
    Thanks ,
    Rajukumar

    Hi Charles,
    Thanks for the reply.
    Environment  details:
    OS: Windows server 2008 R2
    Database: SQL Server 2008 R2
    TFS: TFS 2010 with SP1
    SharePoint: SharePoint 2010 with SP2
    Upgrade Environment details:
    OS: Windows server 2012
    Database: SQL Server 2012 with SP1
    TFS: TFS 2012
    SharePoint: SharePoint 2013
    Steps followed by me for upgradation:
    1. Stopped all the services of TFS and IIS
    2. Took backup of TFS and SP databases from SQL server 
    3. Installed the new environment and restored databsases to new Database server
    4. Upgraded to TFS 2012
    5. Installed and configured SP 2013
    6. Upgraded to SP 2013
    Go the errors mentioned in earlier message during up-gradation. I queried the files from ALLDOCS table of WSS_Content and deleted those.
    7. Upgraded successfully with minor issues ( reports are not available for the old Team project in the report manager URL)
    8. I updated the reports manually.
    Question: Please let me know is there any script to update reports in all the team projects.
    Thanks,
    Rajukumar

  • Error "Test Agent could not connect to the test controller" while configuring the Test Agent on Client machine

    Hi,
    I am getting an Error “Test Agent could not connect to the test controller”
     while configuring The Test Agent on Client machine.
    Pre-requisite used:  
    VS2012 update 4, Test agent & Test controller of same version used
    User has TFS admin access.
    Same user id used for configuring Test Agent.
    Description:
    Test controller is installed on server A. I want to install test agent on client machine B.
    Windows Fire wall is OFF on both Machines A & B. While configuring Test Agent below error is occurred:
    “Test Agent could not connect to the test controller”
    In log file error was “I, 2015/04/02, 15:32:21.723, Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified.”
    In Event viewer below error details given:
    Unable to connect to the controller on ‘My Server: 6901’. The agent can connect to the controller but the controller cannot connect to the agent because of following reason: The requested name is valid, but no data of the requested type was found.
    Make sure that the firewall on the test agent machine is not blocking the connection.
    Could you please help me to find solution?
    Thanks in advance!
    Kanchan M
    Kanchan

    Hi Kanchan,
    So on each computer, you create a local user account that is a member of the Administrators group, and use the same account and password on each machine(controller and Agent), am I right?
    Could you enable the detailed log message?
    http://blogs.msdn.com/b/aseemb/archive/2010/03/07/how-to-enable-test-agent-logs.aspx
    http://blogs.msdn.com/b/aseemb/archive/2009/11/28/how-to-enable-test-controller-logs.aspx
    >>In log file error was “I, 2015/04/02, 15:32:21.723, Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified.”I
    met a similar issue before which was related to the Firewall exceptions, maybe you could refer to it here:
    http://stackoverflow.com/questions/12249093/test-agent-could-not-connect-to-the-test-controller-vs2012-agents
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller

    we are using VS 2013, I need to run multiple Coded UI Ordered Tests in parallel on different agents.
    My requirement :
    Example:   I have 40 Coded UI Test scripts in single solution/project. i want to run in different OS environments(example 5 OS ).  I have created 5 Ordered tests with the same 40 test cases. 
    I have one Controller machine and 5 test agent machines. Now I want my tests to be distributed in a way that every agent gets 1 Ordered test to execute. 
    Machine_C = Controller (Controls Machine_1,2,3,4,5)
    Machine_1 = Test Agent 1 (Should execute Ordered Test 1 (ex: OS - WIN 7) )
    Machine_2 = Test Agent 2 (Should execute Ordered Test 2 (ex:
    OS - WIN 8) )
    Machine_3 = Test Agent 3 (Should execute Ordered Test 3
    (ex: OS - WIN 2008 server)  )
    Machine_4 = Test Agent 4 (Should execute Ordered Test 4 (ex:
    OS - WIN 2012 server) )
    Machine_5 = Test Agent 5 (Should execute Ordered Test 5 (ex:
    OS - WIN 2003 server) )
    I have changed the  “MinimumTestsPerAgent” app setting value
    as '1' in controller’s configuration file (QTController.exe.config).
    When I run the Ordered tests from the test explorer all Test agent running with each Ordered test and showing the status as running. but with in the 5 Test Agents only 2 Agents executing the test cases remaining all 3 agents not executing the test cases but
    status showing as 'running' still for long time (exp: More then 3 hr) after that all so  its not responding. 
    I need to know how I can configure my controller or how I can tell it to execute these tests in parallel on different test agents. This will help me reducing the script execution time. 
     I am not sure what steps I am missing. 
    It will be of great help if someone can guide me how this can be achieved.
    -- > One more thing Can I Run one Coded UI Ordered Test on One Specific Test Agent?
    ex: Need to run ordered Test 1 in Win 7 OS (Test Agent 1) only.
    Thanks in Advance.

    Hi Divakar,
    Thank you for posting in MSDN forum.
    As far as I know, we cannot specify coded UI ordered test run on specific test agent. And it is mainly that test controller determine which coded UI ordered test assign to which test agent.
    Generally, I know that if we want to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller.
    We will need to change the MinimumTestsPerAgent property to 1 in the test controller configuration file (QTControllerConfig.exe.config) as you said.
    And then we will need to change the bucketSize number of tests/number of machines in the test settings.
    For more information about how to set this bucketSize value, please refer the following blog.
    http://blogs.msdn.com/b/aseemb/archive/2010/08/11/how-to-run-automated-tests-on-different-machines-in-parallel.aspx
    You can refer this Jack's suggestion to run your coded UI ordered test in lab Environment or load test.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/661e73da-5a08-4c9b-8e5a-fc08c5962783/run-different-codedui-tests-simultaneously-on-different-test-agents-from-a-single-test-controller?forum=vstest
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ApplicationUnderTest.CloseOnPlaybackCleanup property doesn't work as intended with MS Test Agent 2010

    Hi All, 
    I launch the application which I need to test by using ApplicationUnderTest.Launch() method and I need to keep the application open for the rest of the tests so I tried to set ApplicationUnderTest.CloseOnPlaybackCleanup = false to achieve that. 
    1) I use MS Test Agent 2010 to run my Coded UI Tests in a server machine and without running tests it threw an error which said "Method not found: 'Void Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest.set_CloseOnPlaybackCleanup(Boolean)".
    Then I replaced UITesting.dll in the server machine with the one used by Visual Studio 2010 SP 1 which is located in my machine. Then it started to run tests. 
    2) Even though I have set  ApplicationUnderTest.CloseOnPlaybackCleanup = false Coded UI Test closes the application at the end of the test which was really strange. It sounds like that disregard
    of the value I have set, CUIT always close the application when running with MS Test Agent. 
    3) Then I noticed that on my machine it happens completely other way around most of the time. Irrelevant of the value it always keep the application open after the test. Which means even I set  ApplicationUnderTest.CloseOnPlaybackCleanup = true that
    will keep open the application. But if I can remember correctly this didnt happen when I first tried this approach, it worked perfectly. 
    Is this a a bug that should be fixed? Or am I missing something obvious?
    Thanks in advance, 
    /Rakitha

    Hi Rakitha,
    As far as I know, this issue has been resolved in VS2012.
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/11/08/using-same-applicationundertest-browserwindow-across-multiple-tests.aspx
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SCOM 2012 R2 Agent Deployment - Uninstall Old and Install New

    By chance anyone come up with a scripted method for removing an existing SCOM 2012 SP1 agent and installing a new 2012 R2 agent? While I've come across a few scripts I'm trying to kill a few birds with one stone. This is a cross-domain attempt where the
    SCOM servers sit in one domain and the member servers are scattered across multiple domains. Member servers range from Windows Server 2003, 2008, and 2012. In most cases the servers have the 2012 SP1 agent installed and in some cases there are multiple management
    groups from previous SCOM standups. In addition there's a separate DEV SCOM 2012 R2 environment to manage DEV/QA servers. Active Directory Integration is configured and I have the necessary security groups created. There is a group policy created which is
    filtered to just that security group. So the plan is to simply drop the servers into the correct group and have the agent installed via group policy start up script. ADI should have DEV servers appear in DEV SCOM and PROD in PROD SCOM.
    Although there are ways to facilitate agent deployment via the console I need to perform a staged migration against a ton of server so as to not impact the existing production environment. So I'd rather do this remotely to pre-selected servers. This process
    should involve removing the existing agent, installing the new one, and if possible removing any existing management groups. So far I've come up with the following:
    Uninstall SCOM Agent:
    %WinDir%\System32\msiexec.exe /x <path>\MOMAgent.msi /qb
    Install SCOM Agent:
    msiexec.exe /i \\path\Directory\MOMAgent.msi /qn /l*v \logs\MOMAgent_install.log USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<MG_Name> MANAGEMENT_SERVER_DNS=<MSDNSName> ACTIONS_USE_COMPUTER_ACCOUNT=0 ACTIONSUSER=<AccountUser> ACTIONSDOMAIN=<AccountDomain>
    ACTIONSPASSWORD=<AccountPassword>
    Remove Management Group via Script
    http://gallery.technet.microsoft.com/Remove-a-Management-group-336c849a/view/Discussions#content
    I'm guessing this wheel has already been invented or maybe there's a better way. So I'm open to ideas or suggestions.
    Any responses appreciated.

    Wow! 4 days and no responses, not good Microsoft SCOM Community. So here's a status on this issue.
    As stated I have Active Directory Integration configured which means:
    I see the OperationsManager container in AD: dev_scom
    I see the HealthService SCP and separate OU's for each of my management servers.
    I have an ADI security group containing my management servers and scom action account.
    I have an Agent security group which will contain servers the scom agent will be deployed via group policy.
    I also have an AD LDAP query set to target the SCOM agent group.
    (&(objectCategory=group)(name=DSCOM_ADI))
    I finally get the script to install via the following steps:
    Reference:
    http://technet.microsoft.com/en-us/library/cc754995.aspx
    http://technet.microsoft.com/en-us/library/cc770556.aspx
    http://blog.coretech.dk/msk/install-a-scom-2012-agent-silent/
    1. Launch Notepad ++ and enter the following:
    msiexec /i
    \\server.yourdomain.com\opsmgragent\%Processor_Architecture%\MOMAgent.msi USE_SETTINGS_FROM_AD=1 MANAGEMENT_GROUP=DEV_SCOM MANAGEMENT_SERVER_DNS=YourSCOMsrvr1.yourdomain.com ACTIONS_USE_COMPUTER_ACCOUNT=0 USE_MANUALLY_SPECIFIED_SETTINGS=0 ACTIONSUSER=svc_dscom
    ACTIONSDOMAIN=yourdomain ACTIONSPASSWORD=YourPassword! AcceptEndUserLicenseAgreement=1 /qn /l*v c:\scom2012r2mmainstall.log
    2. Save the script to a name of your choice. For me it's installdopsmgragent.cmd. Watch the extensions as you may end up saving it as installdopsmgragent.cmd.txt.
    Note: Make note of this steps in the reference articles listed above:
    "In the Add a Script dialog box, do the following:
    In the Script Name box, type the path to the script, or click Browse to search for the script file in the Netlogon shared folder on the domain controller."
    It's been a while since having to use a startup script so it took me a minute to figure this out. "getting too old 'fer this..."
    3. Copy the script to the Netlogon folder which is located in the following directory on my Windows 2012 server: E:\SYSVOL\sysvol\yourdomain.com\scripts
    4. Launch the group policy management console, create a new policy, edit it, and navigate to the following location:
    Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown)
    5. Double-click Startup to open the Startup Properties window.
    6. Click Add and browse to the location of the script which you copied to the Netlogon share.
    7. Click OK to close the Startup Properties window.
    8. Close the Group Policy Management Editor.
    9. Link the policy to an OU containing the servers.
    10. Add the SCOM Agent group to the Security Filtering area of the group policy. I also remove Authenticated Users.
    Note: make sure you have a few test servers in your Agent security group.
    11. Drop to a command line and run gpupdate /force. You can also use gpupdate /force /sync but you will have to reboot the box you're running this from.
    12. Log into one of the servers you have slated to deploy the agent to, drop to a command line, and run the same gpupdate command.
    13. Follow this with a gpresult /r command to ensure that you see the policy applied in the Computer Settings area.
    14. Reboot the server and you should see the startup script run.
    15. Log into the server and launch the Control Panel.
    16. If all went well you'll see the "Microsoft Monitoring Agent" icon.
    17. Launch Event Viewer, navigate to the Operations Manager events node located under Applications and Services Logs and validate the logs.
    17. If all didn't go well check the error log located, for me, on the C:\scom2012r2mmainstall.log
    My issue: I don't see the management info in the Agent properties.
    I installed this last night and waited until the next day still no changes. Event logs show the following:
    Event ID: 2011 The Health Service did not find any policy in Active Directory
    Event ID: 2003 No management groups were started.  This may either be because no management groups are currently configured or a configured management group failed to start.  The Health Service will wait for policy from Active Directory configuring
    a management group to run.
    I see the HealthService is Running in Task Manager on this server and of course I don't see anything listed in the Management Groups registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService\Parameters\
    I don't want to manually add the management group info. Checking as I may have missed something in one of the switches. 
    Any responses appreciated.

  • Do I need Install VS in test agent

    Hi. I have test agent in my local TFS 2013. I try execute remotely CodedUI Test from Build Definition. But I see error:
    Exception Message: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.CreateTestRun(CodeActivityContext context, ITestManagementService testManager, ITestManagementTeamProject project)
       at Microsoft.TeamFoundation.Lab.Workflow.Activities.ExecuteRemoteTestRun2.TestRunCreation.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    So. In Virtual Machine didn't install Visual Studio 2013.  Do I need install VS to test agent to solve this problem?
    Or If I will put this missing library's in some folder in test agent. Can I use it, when I execute test?  

    Hi Max,
    I am glad to hear you resolved the issue. Thanks for sharing your experience here, it is good to other members who experience the same issue in the community.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Microsoft Test Agent appears to be blocking Outlook connectivity to Exchange

    Core Problem
    The problem I am having is that connectivity to Exchange from Outlook is blocked while executing an integration test through the Microsoft Test Agent (i.e. Outlook
    is in the disconnected state). The test is launched through Microsoft Test Manager.
    Below is the code for the integration test I am having problems with and I simplified the code as much as possible to rule out code within the integration test
    causing the problem. I also eliminated all other tests from running.
    [TestMethod]
    public void LaunchOutlook()
    Process.Start(new ProcessStartInfo(@"C:\Program Files (x86)\Microsoft Office\Office14\Outlook.exe"));
    Thread.Sleep(120000);
    I can change how long Outlook is blocked by changing the Thread.Sleep timeout. While the test is running, I can restart Outlook and Outlook is still blocked.
    After the test ends while Outlook is still running, connectivity to Exchange is restored. This happens for Outlook 2010 and Outlook 2013. If I run the integration test within a console app, Outlook connectivity is not blocked. If I run the test code manually
    through MSTest.exe, Outlook connectivity is not blocked.  The only way it’s blocked is if the integration test is executed by the Microsoft Test Agent which is the required approach for integration testing.
    More details on the problem
    Outlook is running on a machine that is part of a Hyper-V Lab with network isolation enabled. There are other machines within the same lab that have Outlook
    instances pointed against the same Exchange server. Executing the test on one machine causes Outlook connectivity issues with other machines within the same lab where the Outlook instances are pointed at the same Exchange server.
    I have small Hyper-V lab with network isolation enabled which is very similar to the lab mentioned above. The major difference is that it only has one machine
    with Outlook installed. This Outlook is able to connect to Exchange while executing the test above through Microsoft Test Manager. It is very clear that this is an environmental issue since it works in one lab and not the other. Both labs have the same Exchange
    server installed, and the same Microsoft Test Agent installed on all machines within the lab.
    I have ruled out the Outlook version as being the issue since the larger lab contains the same Outlook version as the Outlook version in the smaller lab.
    During test run
    Notice that Outlook is in the disconnected state.
    After test run.
    Notice that Outlook is not connected to Exchange.
    Environment Information
    Outlook 2010 Version: (14.0.7113.5000) SP2 (14.0.1740.5002) 64-bit or 32-bit Outlook 2013 Version: (15.0.4667.1000) MSO (15.0.4675.1002) 64-bit or 32-bit Windows
    7 Version: 6.1 (Build 7601: Service Pack 1)
    Exchange 2013 Version: 15.0 ‎(Build 847.32)‎ Windows Server 2008 R2 Version: 6.1 (Build 7601: Service Pack 1) Microsoft Test Manager 2013 Version: 12.0.31101.0
    TFS 2013 Update 4 Version: 12.0.31101.0 Microsoft Test Agent Version: 12.0.31101.0 Update 4
    Troubleshooting Steps
    I launched procmon and looked for failed TCP and UDP operations for indication of network failures and found none.
    I turned on enable troubleshooting logging in Outlook and nothing within the logs looks obvious.
    Pinging the Exchange server while the test is running still works.
    I ran the integration test through the command line using MSTest.exe and outlook connectivity is not blocked.
    Requesting Help
    Can you please help me troubleshoot this problem? I see two approaches to identifying the problem.
    Looking for differences between the two environments
    Obtaining logs or other information that would expose the core problem.
    I am open to suggestions or ideas especially if you have a different approach to solving the problem. Feel free to ask for other information related to the problem
    like logs, PowerShell commands, and registry values.
    If you are short on time, can you at least post some suggestions or ideas related to resolving this problem?
    Thanks, Keith

    After installing fiddler I figured out what the problem was. The Microsoft Test Agent was activating a proxy server which was blocking connectivity to exchange. The proxy server was activated due to having the ASP.Net Client Proxy for IntelliTrace and Test
    Impact turned on. 
    Below is a link to the article with the exact same problem.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ecc0b342-8e4d-436c-90c2-5f11bce1e9d8/proxy-server-settings-being-set-automatically-which-is-causing-me-not-to-be-able-to-run-manual-test?forum=vsmantest

  • Test Agents issues

    Hello, 
    I am working on setting up an environment where we will be running Coded UI tests. I’m planning on triggering the tests from TFS builds.
    I have a test plan with 1 automated test case that doesn’t do much – it’s meant to always succeed
    5 VMware servers with Test Agents – each is used in Desktop Client role – automated test launches browser window and types in user name on a Login page
    If I RDP onto test machine, my Test Run (triggered by TFS build) is executed and succeeds
    I am able to have the Test Run execute and succeed without me logging onto the test machine with the test user – so I know that, at least at some point –
    Controller and agent accounts are in correct security groups
    Firewalls exceptions got created during the configurations of controller & agent
    Screen savers are disabled
    Agent runs as process and is able to interact with the desktop
    Without any changes to the Coded UI test or the environments themselves (as far as I can tell), my TFS test build randomly fails. I’ve seen a number of different errors:
    The unit test adapter failed to connect to the data source or to read the data
    Error calling Initialization method for test class PortalCodedUI.Tests.PageLogInCodedUITest: Automation engine is unable to playback the test because it is not able to interact with the desktop.  This could happen if the computer running the test is
    locked or it’s remote session window is minimized.
    Test method PortalCodedUI.Tests.PageLogInCodedUITest.CodedUITestMethod1 threw exception… Failed to find any control that matched the search condition…
    NOTE: screenshot shows minimized browser window
    Failed to queue tests for test run […] on agent […]: No connection could be made because the target machine actively refused it
    An error occurred while communicating with Agent
    Unable to create instance of class PortalCodedUI.Tests.PageLogInCodedUITest. Error: System.ComponentModel.Win32Exception: Access is denied.
    Another error that shows up in the Test Controller’s log is: Unable to delete temporary files on the following agent(s): vstfs:///LabManagement/TestMachine/1 – please note that the account the controller is running under is an admin on the Test Agent box.
    Usually, restarting the machine and repairing the environment makes the test run and succeed again.
    Given the fact that the errors I’m seeing are all over the place, they usually don’t occur twice in a row – I get a different one with every run – and that no obvious changes are made to the code or the environments themselves, I’m finding it very challenging
    to troubleshoot any of them. I also suspect there may be another reason that causes all of my issues.
    Any suggestions would be greatly appreciated.
    Thank you

    Starain – thank you for your response.
    I just want to reiterate that I have one test case with very simple code and no changes are being made
    to it. I’m also not re-configuring the environments. After a reboot of a test machine, my runs succeed, and then at some point they start failing with one of the listed errors – once that happens, a reboot is needed for another successful build. To answer
    your questions/comments:
    I am using the build template – it’s pulling code from the TFS drop location
    The test user can connect and execute Coded UI tests. It works a couple of times and then just stops and starts throwing errors. There are no screen savers, auto logon is enabled.
    Test method PortalCodedUI.Tests.PageLogInCodedUITest.CodedUITestMethod1 threw exception… Failed to find any control that
    matched the search condition
    This error is thrown when the very same (and only) test is executed as before. My build runs a couple of
    times in the row and the test succeeds. At some point, the test just starts failing with this error. There is a screenshot attached to the test result – it shows that IE was launched but it’s minimized.
    I have enabled logs and I didn’t see anything in there that would point to reasons why these errors just start showing up after a
    few successful runs.

  • TFS 2012 Setup failes

    Hi,
    I am trying to run a test installation of TFS for testing purpose.
    The Setup fails with the following error: 
    TF400534: Zwischenspeicherung von Paket (tfs:objectmodel_x64) ist mit folgendem Stauts fehlgeschlagen: 0x80070001. HRESULT: 0x80070001
    Error Lookup For 0x80070001 returnes: Incorrect function.
    System is a not activated Windows 2008 R2 Server Std. Ed. SP 1 (temporary validation system for this testing purpose).
    What is wrong here?

    Hi Markus, 
    Thanks for your reply.
    Which language of TFS 2012 you tried to install? Please try to install the English version of TFS 2012.
    Which version of the TFS 2012 you tried to installing? RC or RTM? For the TF400534 error, please confirm the following information:
    1       
    Make sure your TFS2012 installer is not corrupted. Please re-download it from Microsoft official site here:
    http://www.microsoft.com/visualstudio/11/en-us/downloads#tfs
    2       
    The user account you log on the machine to install TFS2012RC should be a member of the Administrators group.
    3       
    Please run the installer with Administrator privilege.
    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • TFS 2012 Scheduled Backups - Permission error

    Hi All,
    I am trying to configure auto backup using the Schedule Backups wizard.  However, I get the below erros during the Readiness Checks step.  I have check the SQL databases but couldn't figure out which one is having issue.  Need some help.  Thanks
    [Info   @20:37:34.839] +-+-+-+-+-| Running VerifySqlServerPermissionsGranted: Verifying TFS Job Agent has permissions to create and alter databases |+-+-+-+-+-
    [Info   @20:37:34.839] 
    [Info   @20:37:34.839] +-+-+-+-+-| Verifying TFS Job Agent has permissions to create and alter databases |+-+-+-+-+-
    [Info   @20:37:34.839] Starting Node: ALTERCREATEDATABASE
    [Info   @20:37:34.839] NodePath : Container/Progress/ALTERCREATEDATABASE
    [Info   @20:37:34.846] Node returned: Error
    [Error  @20:37:34.846] User does not have permission to perform this action.
    [Info   @20:37:34.846] Completed VerifySqlServerPermissionsGranted: Error
    [Info   @20:37:34.846] -----------------------------------------------------

    Hi Ultragc88, 
    Thanks for your post.
    What’s the detailed version of your TFS 2012?
    To create Backup plan, you must be a member of both of the following groups:
    1       
    The Administrators security group on the server that is running the administration console for Team Foundation.
    2       
    The SQL Server System Administrator security group. In addition, the service account for TFS (TFSService) must have
    SQL Server Perform Back Up and Create Maintenance Plan permissions set to
    Allow on each instance of SQL Server that hosts the databases that you want to back up.
    3       
    The Farm Administrators group in SharePoint Foundation 2010, or an account with the permissions required to back up the farm.
    If you ensure you have the above permissions correctly, but still occur the same error, please share the full backup plan creating log here.
    For more information about create TFS 2012 backup plan, please refer to this document:
    http://msdn.microsoft.com/en-us/library/vstudio/hh561429.aspx.
    John Qiao [MSFT]
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • Test Controller and Test Agents on Azure

    Hi everyone,
    I am trying to run a Test Controller and Test Agents on Azure and the controller fails when trying to register with TFS.  We did set up a VPN and it seems to be working but I saw this on MSDN:
    If the On-Premise machines are domain joint, you will need to add an IPSec exemption so that the bidirectional communication can succeed. This can be avoided if you can unjoin the On-premise machine from the domain and join it to a workgroup instead.
    I don't know what "domain joint" means but I am wondering about the IPSec exemption.  Can anybody explain what this means?
    Thanks!
    Randy

    Hi Randy,
    Do you refer to this article below?
    # Hosting TestController and TestAgents on Azure
    http://blogs.msdn.com/b/visualstudioalm/archive/2014/01/13/hosting-testcontroller-and-testagents-on-azure.aspx
    I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Af:iterator and getting values from a particular row

    Hi, I am using af:iterator to loop through a resultSet in a VO. <af:iterator binding="#{backingBeanScope.backing_subscribe.i1}" value="#{bindings.SubscriptionPublicView1.collectionModel}" var = "row" id="i1"> For each iteration, I display a row of da

  • Devices Can't Find Airprinter when Macbook is asleep?

    Hello all, I have a printer connected and airprint enabled on my airport express. The main computer on my network (The one which I set up all my airport devices) is a macbook. When the macbook is up and running, all my other ipods, ipads, pcs, macs c

  • How to store/manipulate Date and long text fields with Dictionary project

    I am able to save string values into my backend (SQL Server) database in my web dynpro project but I am getting errors dealing with my date string and my long text (comments) field.  I want to figure out both how I need to define the fields in the di

  • Alerts configuration in XI

    Hi All, Could you pls let me know about the Alerts configuration steps in detail or pls let me know use full links Thanks in advance, Nousheen.

  • IWeb text gone crazy!

    Trying to add some new text boxes to my existing home page, but all of a sudden they 'publish' as plain black text, looking nothing like the colored text (in different fonts) that I added. No matter how many times I re-do it, it still won't publish a