Tôi chạy MSTest để kiểm tra ứng dụng WPF (Kiểm tra giao diện người dùng được mã hóa) trên máy ảo sử dụng Teamcity. Tôi đã được cài đặt đại lý kiểm tra như quá trình tương tác, nhưng tôi tiếp tục nhận được lỗi này trong TeamCity logKiểm tra giao diện người dùng được mã hóa với 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()
bạn có thể giúp tôi giải quyết vấn đề này hoặc giới thiệu một số cách để chạy Coded UI thử nghiệm sử dụng TeamCity?
Kiểm tra CUIT không thể chạy từ tài khoản dịch vụ vì chúng cần quyền truy cập vào bộ API cửa sổ máy tính để bàn. Vui lòng tham khảo phần "Cài đặt đại lý xây dựng đội ngũ" trong http://jake.ginnivan.net/teamcity-ui-test-agent/ để thiết lập tác nhân nhóm làm tài khoản phi dịch vụ. –
Cảm ơn Arun, nó hoạt động – Gintama
@ArunM - Bạn nên sao chép nhận xét của bạn làm câu trả lời để Gintama có thể đánh dấu nó là câu trả lời đúng. –