none
Test agent is showing running but no test case is executing RRS feed

  • Question

  • Hi Team,

    I am using a build definition with labDefaultTemplate11.xaml and gave MTM test suite. Test agent is showing running but no test case is executing in the machine. After some time test agent status do back to only and my build fails saying no test is executed.

    I was adding some external assemblies in my solution( these are our product dll's, using reflection is 1 testmethod). When I remove these dll's( and the method using these dll's) test cases are running fine. By adding back these dll's same problem repeats. Can you please help me in overcoming the issue?

    Regards,

    Swathi


    • Edited by swathi2016 Monday, May 23, 2016 6:59 AM
    Monday, May 23, 2016 6:56 AM

All replies

  • Hi Swathi,

    Please provide us the logs of test agent and test controller. I need the detailed logs information for better troubleshooting.

    # How to enable test agent logs
    http://blogs.msdn.com/b/aseemb/archive/2010/03/07/how-to-enable-test-agent-logs.aspx 

    # How to enable test controller logs
    http://blogs.msdn.com/b/aseemb/archive/2009/11/28/how-to-enable-test-controller-logs.aspx

    By the way, please also help to collect the MTM logs:

    # How To Enable Tracing for MTM

    https://blogs.msdn.microsoft.com/gautamg/2011/01/20/how-to-enable-tracing-for-mtm/

    Best Regards,

    Lake Xiao


    Tuesday, May 24, 2016 2:11 AM
    Moderator
  • Hi Lake Xiao,

    Sorry for late reply. I started working on this today. I was still facing the same issue. Test agent reads the test case number details but it will not run test cases. After some time test agent status goes to online with no test case is executed.

    Please find the test agent logs in attachment. I could not add test controller logs as I don't have permission to change the .config files in test controller machine.

    TestAgentConfigUI.Eqt.Trace:

    I, 3572, 1, 2016/05/04, 11:12:06.242, HYDKTMVM43\TestAgentConfig.exe, Checking whether account sqa is a network service account or not
    V, 3572, 1, 2016/05/04, 11:12:06.243, HYDKTMVM43\TestAgentConfig.exe, Created Nt account sqa for userName sqa
    V, 3572, 1, 2016/05/04, 11:12:06.244, HYDKTMVM43\TestAgentConfig.exe, Found Sid S-1-5-21-1057635297-1724064394-1636344862-74756 for userName sqa
    I, 3572, 1, 2016/05/04, 11:12:06.244, HYDKTMVM43\TestAgentConfig.exe, Observed that account sqa is network service account? False
    I, 3572, 1, 2016/05/04, 11:12:06.244, HYDKTMVM43\TestAgentConfig.exe, Checking whether account sqa is a local system account or not
    V, 3572, 1, 2016/05/04, 11:12:06.244, HYDKTMVM43\TestAgentConfig.exe, Created Nt account sqa for userName sqa
    V, 3572, 1, 2016/05/04, 11:12:06.244, HYDKTMVM43\TestAgentConfig.exe, Found Sid S-1-5-21-1057635297-1724064394-1636344862-74756 for userName sqa
    I, 3572, 1, 2016/05/04, 11:12:06.245, HYDKTMVM43\TestAgentConfig.exe, Domain: Test
    I, 3572, 1, 2016/05/04, 11:12:06.245, HYDKTMVM43\TestAgentConfig.exe, Final UserName: sqa.
    I, 3572, 1, 2016/05/04, 11:12:06.246, HYDKTMVM43\TestAgentConfig.exe, Loading account details for sqa
    I, 3572, 1, 2016/05/04, 11:12:06.280, HYDKTMVM43\TestAgentConfig.exe, Normalized account is sqa and Sid is S-1-5-21-1057635297-1724064394-1636344862-74756
    I, 3572, 1, 2016/05/04, 11:12:06.383, HYDKTMVM43\TestAgentConfig.exe, Checking whether account sqa is a network service account or not
    V, 3572, 1, 2016/05/04, 11:12:06.383, HYDKTMVM43\TestAgentConfig.exe, Created Nt account sqa for userName sqa
    V, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Found Sid S-1-5-21-1057635297-1724064394-1636344862-74756 for userName sqa
    I, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Observed that account sqa is network service account? False
    I, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Checking whether account sqa is a local system account or not
    V, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Created Nt account sqa for userName sqa
    V, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Found Sid S-1-5-21-1057635297-1724064394-1636344862-74756 for userName sqa
    I, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Domain: Test
    I, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Final UserName: sqa.
    I, 3572, 1, 2016/05/04, 11:12:06.384, HYDKTMVM43\TestAgentConfig.exe, Loading account details for sqa
    I, 3572, 1, 2016/05/04, 11:12:06.404, HYDKTMVM43\TestAgentConfig.exe, Normalized account is sqa and Sid is S-1-5-21-1057635297-1724064394-1636344862-74756
    I, 2016/05/04, 11:12:06.405, AgentConfiguration: Unconfiguring...
    I, 2016/05/04, 11:12:06.407, Checking the status of service VSTTAgent
    I, 2016/05/04, 11:12:06.409, Found that service VSTTAgent is installed:False
    V, 2016/05/04, 11:12:06.413,
    V, 2016/05/04, 11:12:06.413, Stop test agent process:
    V, 2016/05/04, 11:12:06.429,   Test agent process stopped successfully.
    V, 2016/05/04, 11:12:06.431,
    V, 2016/05/04, 11:12:06.431, Update auto logon:
    I, 2016/05/04, 11:12:06.509, Adding agent setting AutoLogonEnabledByAgentConfiguration=0 on agent machine
    I, 2016/05/04, 11:12:06.509, Adding agent setting AutoLogonEnabledByAgentConfiguration=0 on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.511, Added agent setting AutoLogonEnabledByAgentConfiguration=0 on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.511, Adding agent setting AutoLogonEnabledByAgentConfiguration=0 on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.512, Added agent setting AutoLogonEnabledByAgentConfiguration=0 on agent machine - 64 bit hive
    V, 2016/05/04, 11:12:06.512,   Disabled auto logon on the machine successfully.
    I, 2016/05/04, 11:12:06.513, Removing event sources VSTTAgent
    I, 2016/05/04, 11:12:06.513, Removing event sources VSTTAgent
    I, 2016/05/04, 11:12:06.568, Removing event sources VSTTAgentProcess
    I, 2016/05/04, 11:12:06.568, Removed event source
    I, 2016/05/04, 11:12:06.573, Not proceeding with port reset as current port 6910 is same as default 6910.
    I, 2016/05/04, 11:12:06.573, Removing agent setting InstallationPath on agent machine
    I, 2016/05/04, 11:12:06.573, Removing agent setting InstallationPath on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.574, Removed agent setting InstallationPath on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.574, Removing agent setting InstallationPath on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.574, Removed agent setting InstallationPath on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.574, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentContractVersion on agent machine
    I, 2016/05/04, 11:12:06.574, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentContractVersion on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.574, Removed agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentContractVersion on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.574, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentContractVersion on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.574, Removed agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentContractVersion on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.574, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentVersion on agent machine
    I, 2016/05/04, 11:12:06.574, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentVersion on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.574, Removed agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentVersion on agent machine - 32 bit hive
    I, 2016/05/04, 11:12:06.575, Removing agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentVersion on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.575, Removed agent setting Microsoft.TeamFoundation.Lab.TestIntegration.AgentVersion on agent machine - 64 bit hive
    I, 2016/05/04, 11:12:06.575, GetControllerName : The controller name managed by lab is
    I, 2016/05/04, 11:12:06.588, IsManagedByLab : lab managed controller name :
    I, 2016/05/04, 11:12:06.589, GetLabEnvironmentName vstfs:///LabManagement/TestMachine/4366 under us01vmtfs04
    I, 2016/05/04, 11:12:06.665, Creating Channel
    I, 2016/05/04, 11:12:07.758, CreateControllerObject : ControllerVersion : 12.0
    E, 2016/05/04, 11:12:08.696, Unable to retrieve agentinformation data for vstfs:///LabManagement/TestMachine/4366 from controller us01vmtfs04
    I, 2016/05/04, 11:12:08.697, IsManagedByLab : lab evironment name :
    V, 2016/05/04, 11:12:08.701,

    QTAgent32.EqtTrace:

    V, 5236, 122, 2016/07/08, 11:59:29.205, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 5236, 122, 2016/07/08, 11:59:29.486, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 5236, 122, 2016/07/08, 11:59:29.486, HYDKTMVM43\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-4c4afd10-90a3-4f0f-0781-90c885a2703e/
    I, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.CleanupPlugins: CleanupPlugins called
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.CleanupPlugins: Cleaning up 2 plugins
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.CleanupPlugins: raising the SessionEnd event
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, DataCollectionEvents: Raising event 'System.EventHandler`1[Microsoft.VisualStudio.TestTools.Execution.SessionEndEventArgs]' to 'Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector'
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, SystemInfoDataCollector: Retrieving system information
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, SystemInfo.Snapshot.Update() called
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, SystemInfo: retrieving runtime memory information
    W, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, SystemInfo.AddScreenInfo: ReleaseDC failed with error code 1
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, DataCollectorSink: Sending stream for SystemInformation.xml.
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender.QueueFileTransfer: Sending file 'SystemInformation.xml' for session '{4ae74a12-2a85-40d5-b92c-93b556ace111}' and test '(null)'.
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender.QueueFileTransfer: Sending the following header message. OriginalPath: 'SystemInformation.xml', Description: 'System Information from HYDKTMVM43', PerformCleanup: True, IsTransient: False, RequestId: (null), IsRemote: True
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: invoking special job checker for job 'FileDataHeaderMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: successfully invoked special job checker for job 'FileDataHeaderMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: isSpecial = False
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: Queuing job 'Type Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataHeaderMessage: FileDataHeaderMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, Header message sent successfully. Queuing the file transfer message
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor).TryEnqueueJob: Queuing job 'Type Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob: Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender.QueueFileTransfer-End
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, DataCollectionEvents: Raised event 'System.EventHandler`1[Microsoft.VisualStudio.TestTools.Execution.SessionEndEventArgs]' to 'Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector'
    V, 5236, 128, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, DataCollectionEvents: Raising event 'System.EventHandler`1[Microsoft.VisualStudio.TestTools.Execution.SessionEndEventArgs]' to 'Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector'
    V, 5236, 128, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, DataCollectionEvents: Raised event 'System.EventHandler`1[Microsoft.VisualStudio.TestTools.Execution.SessionEndEventArgs]' to 'Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector'
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor).TryEnqueueJob: Queuing job 'Type Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob: Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 121, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender)+ExternalJob.ProcessJob: invoking job processor for job 'FileDataHeaderMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor)+ExternalJob.ProcessJob: invoking job processor for job 'Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender.FileDataSenderWorkerThread: Sending contents of file 'SystemInformation.xml' for session '{4ae74a12-2a85-40d5-b92c-93b556ace111}' and test '(null)'.
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender: Sending file contents for SystemInformation.xml.
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: invoking special job checker for job 'FileDataContentsMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: successfully invoked special job checker for job 'FileDataContentsMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundSpecialJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: isSpecial = False
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender).TryEnqueueJob: Queuing job 'Type Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataContentsMessage: FileDataContentsMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor)+ExternalJob.ProcessJob: successfully invoked job processor for job 'Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor)+ExternalJob.ProcessJob: invoking job processor for job 'Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, FileDataSender: Triggering reset event for waiting job.
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor).DoAbort: Clearing 0 queued jobs and 0 jobs waiting to be queued
    V, 5236, 123, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor)+ExternalJob.ProcessJob: successfully invoked job processor for job 'Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob'
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor).Dispose
    V, 5236, 122, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Execution.Aggregation.FileDataSender+FileTransferJob>(FileDataSender.FileTransferJobProcessor).DoAbort: Clearing 0 queued jobs and 0 jobs waiting to be queued
    V, 5236, 139, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.DataCollectorInfo.DisposeDataCollector: calling Dispose() on Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector
    V, 5236, 128, 2016/07/08, 11:59:29.642, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.DataCollectorInfo.DisposeDataCollector: calling Dispose() on Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector
    V, 5236, 117, 2016/07/08, 11:59:30.611, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending heartbeat
    I, 5236, 122, 2016/07/08, 11:59:31.080, HYDKTMVM43\QTDCAgent32.exe, ExecutionPluginManager.CleanupPlugins: CleanupPlugins finished
    V, 5236, 121, 2016/07/08, 11:59:31.689, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender)+ExternalJob.ProcessJob: successfully invoked job processor for job 'FileDataHeaderMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 121, 2016/07/08, 11:59:31.689, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender)+ExternalJob.ProcessJob: invoking job processor for job 'FileDataContentsMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 121, 2016/07/08, 11:59:32.751, HYDKTMVM43\QTDCAgent32.exe, BackgroundJobProcessor<Microsoft.VisualStudio.TestTools.Common.TestMessage>(DataCollectionAgentObject.TestMessageSender)+ExternalJob.ProcessJob: successfully invoked job processor for job 'FileDataContentsMessage SessionId: {4ae74a12-2a85-40d5-b92c-93b556ace111} TestId: (null)'
    V, 5236, 117, 2016/07/08, 11:59:40.611, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Sending heartbeat to listeners
    V, 5236, 117, 2016/07/08, 11:59:41.704, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending heartbeat
    V, 5236, 117, 2016/07/08, 11:59:51.704, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Sending heartbeat to listeners
    V, 5236, 117, 2016/07/08, 11:59:52.751, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending heartbeat
    V, 5236, 117, 2016/07/08, 12:00:02.751, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Sending heartbeat to listeners
    V, 5236, 117, 2016/07/08, 12:00:03.813, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending heartbeat
    V, 5236, 117, 2016/07/08, 12:00:13.813, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Sending heartbeat to listeners
    V, 5236, 117, 2016/07/08, 12:00:15.125, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending heartbeat
    V, 5236, 117, 2016/07/08, 12:00:25.125, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Sending heartbeat to listeners
    V, 5236, 117, 2016/07/08, 12:00:26.188, HYDKTMVM43\QTDCAgent32.exe, DataCollectionAgentObject: Returned from sending

    Please let me know if I need to add any other details?

    Friday, July 8, 2016 7:24 AM
  • Hi swathi2016,

    Did you run the code ui test via MTM? I have found this in your log:

    V, 2016/05/04, 11:12:06.512,   Disabled auto logon on the machine successfully.

    If the test is code UI test. You need to enable auto logon and make sure the desktop of the test agent machine is free. By the way, in the lab environment, you need to specify the test agent machine to run the code UI test. And the test agent should also be configured as "Interactive Process".

    Make sure all above conditions were meet then try to test it again.

    Best Regards,

    Lake Xiao

    Friday, July 8, 2016 7:52 AM
    Moderator
  • Hi Lake Xiao,

    We add our sanity codedui test to MTM test suites.We use TFS build definition->In build definition, we configure deployment steps, test environment, MTM test suite. We execute codedui test daily triggering the tfs build

    Our requirement is to open an XYZ link created in our application and edit some properties in XYZ. So we are doing following steps:

    • We already have a ABC solution which creates a XYZ link.
    • We use the ABC solution dll and call the method that creates a xyz link.
    • We created a codedui Test method in our solution with ABC dll.Methodname() and we  are able to create XYZ.  When we run test method in dev machine, it works fine
    • When I add this test method in MTM test suite and trigger TFS build. I face the problem, "Test agent shows running test but does not run any method"

    When I remove the ABC solution dll's, test methods run fine when I trigger TFS build. Can you please help me in overcoming the problem?

    Regards,

    Swathi

    Thursday, July 14, 2016 12:47 PM
  • Hi swathi2016,

    Thanks for your response.

    How about running this code UI test in MTM directly?  Please do a simple test like:

    1.Link the code ui test with the test case in your MTM

    2.Create a XAML Build in Visual Studio and queue the build

    3. In MTM, select the build and assign to the test plan.

    4. Run the test case in MTM

    If you can run the test successfully. I think the problem is not in the lab environment. May be in your TFS build definition.

    Best Regards,

    Lake Xiao

    Friday, July 15, 2016 1:58 AM
    Moderator
  • Hi Lake Xiao,

    I have build definition(I use labdefaulttemplate11.xaml) in visual studio 2013. When I trigger the build it does not generate any dll as I do not map my automation solution to it. I manually copy my automation dll's to shared location and give the path in Build. Please find below screenshot:

    In order to run automation test cases in MTM, I have to give build in use.

    But I do not have any build definition, that on triggering builds my automation dll's to particular location. Please let me know any other alternative solution to run automated test cases in MTM?

    Regards,

    Swathi


    • Edited by swathi2016 Wednesday, July 20, 2016 6:27 AM
    Wednesday, July 20, 2016 6:25 AM
  • Hi Swathi,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best Regards,

    Lake Xiao

    Wednesday, July 20, 2016 6:52 AM
    Moderator
  • Hi Lake Xia,

    I Created a CodedUi Test method using api methods. I added all the api related dll's in the reference. When I execute the test method from visual studio, test method works fine.

    I use use definition(labdefaulttemplate11.xaml) where I map the codedui test cases to MTM test suite and give mtm test suite in build definition.

    I place all the automation dll's in share location and give the share location path under process->Build in build definition

    When I trigger the build, test agent shows running but it shows none in currently executing test and after some time it goes to online

    Can you please help me in resolving the issue?

    Regards,

    Swathi

    Wednesday, July 27, 2016 11:50 AM