0

GUIを起動してテストする一連のC#テストがあります。Gallio.echoCLIを使用してこれらのテストを実行します。WindowsServer2003で実行されているHudsonマスターはUbuntuで実行されています2003ボックスはハドソンスレーブです

2003年のマシンでgallio.echoを使用してローカルでテストを実行できます。ただし、これらのテストを実行しようとする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テストを実行しますか?

4

1 に答える 1

0

Windows スレーブをサービスとして実行する場合は、それを実行するユーザーを確認してください。それはLocal SystemあなたがチェックしなければならないアカウントですAllow service to interact with desktop

于 2010-07-12T12:33:20.987 に答える