The Coded UI test cases executed with Run functional tasks exit with the following error message: "The agent process was stopped while the test was running." These test cases were executed successfully before and the error description is not clear to investigate further and resolve the issue. Could you please share some information on the root cause and the probable solutions for the same. Thanks in advance.
Error message:
[error]System.Exception: Some tests in the test run did not pass, failing the task.
Environment Details: TFS on-premises , TFS 2017 15.112.26307.0 (Tfs2017.Update1)
Build Agent : Private, OS: Windows Server 2012 R2, build agent version : 2.112.0
Test Agent : Private, OS: Windows 10
Test deployment task version: vstf_testagent.exe version version 14.0.23107.10