Eseguo MSTest per testare l'applicazione WPF (test UI codificato) su una VM utilizzando Teamcity. Ho già installato agente di test come processo interattivo ma io continuo a ricevere questo errore nel registro TeamCityTest UI codificato con Teamcity
Error calling Initialization method for test class Squarebit.Apms.Terminal.Wpf.Test.CodedUITest1: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set up the test agent to run as an interactive process. For more information, see "How to: Set Up Your Test Agent to Run Tests That Interact with the Desktop" (http://go.microsoft.com/fwlink/?LinkId=255012)
If you are running the tests as part of your team build, you must also set up the build agent to run as an interactive process. For more information, see "How to: Configure and Run Scheduled Tests After Building Your Application" (http://go.microsoft.com/fwlink/?LinkId=254735)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.BeforeTestInitialize(Object sender, BeforeTestInitializeEventArgs e)
at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs args)
at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod()
Mi potete aiutare a risolvere questo problema o consiglio alcuni modi per eseguire codificato dell'interfaccia utente di prova utilizzando TeamCity?
I test CUIT non possono essere eseguiti da un account di servizio poiché richiedono l'accesso al set di API Windward del desktop. Fare riferimento alla sezione "Installazione dell'agent di build di teamcity" in http://jake.ginnivan.net/teamcity-ui-test-agent/ per impostare l'agente teamcity come account non di servizio. –
Grazie a Arun, funziona – Gintama
@ArunM - Dovresti copiare il commento come risposta in modo che Gintama possa contrassegnarlo come risposta corretta. –