2010-07-08 4 views
0

GUI를 시작하고 테스트하는 일련의 C# 테스트가 있습니다. Gallio.echo CLI를 사용하여이 테스트를 실행합니다. Windows 서버에 실행 2,003 허드슨 마스터 우분투 2003 상자에서 실행되고 내가 내 2003 컴퓨터에 로컬로 gallio.echo 내 테스트를 실행할 수있는 허드슨 노예Gallio.echo 테스트 러너를 원격으로 GUI C# 테스트를 실행하는 데 문제가 있습니다.

입니다. 그러나, 나는이 테스트를 실행하려고하는 Hudson 작업을 가지고 있으며 실패 할 것입니다. 아마도 테스트중인 GUI를 시작할 수 없기 때문일 것입니다.

gallio.echo /rt:Xml 'Install Default Path/bin/Debug/Install Default Path.dll' 

Gallio Echo - Version 3.1 build 397 
Get the latest version at http://www.gallio.org/ 

Start time: 11:36 AM 
Initializing the runtime and loading plugins. 
Verifying test files. 
Initializing the test runner. 
Running the tests. 
[failed] Test Install Default Path/AP158aSuccessfulInstallDefaultPath/PerformInstall 
Set Up 
White.Core.UIItems.UIActionException: Couldn't find window with title Autopoll in process 2884, after waiting for 5000 ms 

    at White.Core.Factory.WindowFactory.<>c__DisplayClass3.<WaitTillFound>b__1() in c:\white\Core\Factory\WindowFactory.cs:line 37 
    at Bricks.Core.Clock.Perform(Do do, Matched matched, Expired expired) in C:\bricks\Bricks\Core\Clock.cs:line 44 
    at White.Core.Factory.WindowFactory.WaitTillFound(Do find, String message) in c:\white\Core\Factory\WindowFactory.cs:line 38 
    at White.Core.Factory.WindowFactory.FindWindowElement(Process process, String title) in c:\white\Core\Factory\WindowFactory.cs:line 44 
    at White.Core.Factory.WindowFactory.CreateWindow(String title, Process process, InitializeOption option, WindowSession windowSession) in c:\white\Core\Factory\WindowFactory.cs:line 97 
    at White.Core.Application.GetWindow(String title, InitializeOption option) in c:\white\Core\Application.cs:line 125 
    at IRD.Autopoll.InstallerTestSuite.InstallDefaultPath.AP158aSuccessfulInstallDefaultPath.SetUp() in C:\cygwin\home\Administrator\workspace\Autopoll\Autopoll\test\AutopollSetup_Test\Install Default Path\AP158aSuccessfulInstallDefaultPath.cs:line 89 

테스트가 시작하지만, 비록 GUI가 실행되지 않는 한 그것은 나타납니다 인한 원격 디스플레이 문제 나 숨겨지고 시험으로 볼 수없는 : 허드슨의 오류 출력은 다음과 같습니다.

원격 Windows 컴퓨터에서 GUI 테스트를 실행하는 사람이 있습니까?

답변

0

서비스로 Windows 슬레이브를 실행하는 경우 실행중인 사용자를 확인하십시오. Allow service to interact with desktop을 확인해야하는 계정은 Local System입니다.