【问题标题】:issues trying to run GUI C# tests with Gallio.echo test runner remotely尝试使用 Gallio.echo 测试运行程序远程运行 GUI C# 测试时出现问题
【发布时间】:2010-07-08 19:04:58
【问题描述】:

我有一组启动和测试 GUI 的 C# 测试。 我使用 Gallio.echo CLI 运行这些测试。 在 Windows 服务器 2003 上运行 Hudson master 在 Ubuntu 上运行 2003 年的盒子是哈德逊奴隶

我可以在我的 2003 机器上本地使用 gallio.echo 运行我的测试。但是,我有一个 Hudson 作业试图运行这些测试,但它失败了,可能是因为无法启动被测 GUI。 Hudson 的错误输出如下:

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 测试吗?

【问题讨论】:

    标签: c# user-interface testing hudson gallio


    【解决方案1】:

    如果您将 Windows 从属服务器作为服务运行,请检查运行它的用户。它是Local System 帐户,您必须检查Allow service to interact with desktop

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-28
      • 2011-01-14
      • 1970-01-01
      • 1970-01-01
      • 2019-01-14
      • 2022-12-14
      相关资源
      最近更新 更多