我有一个使用 White 的 GUI (winforms) 测试,它在开发中运行良好,但卡在构建服务器上。
它可以打开应用程序,但是一旦我尝试“做”任何事情:
Button Button = Window.Get<Button>("btnCalculate");
Button.Click();
它卡住了。服务器报告:
---- White.Core.UIItems.UIActionException : Window in still wait mode. Cursor: White.Core.InputDevices.MouseCursor, after waiting for 5000 ms
at Bricks.RuntimeFramework.ReflectedObject.Invoke(MethodInfo methodInfo, Object[] arguments)
at Bricks.DynamicProxy.DynamicProxyInterceptors.Process(IInvocation invocation, InterceptContext interceptedContext)
at White.Core.Interceptors.CoreInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at ButtonProxy6fcb23ab82174f67960e33c02ddb2259.Click()
at WinCalc.Gui.Test.AcceptanceTests.WhiteTest() in d:\BuildServer\Agent\work\f00b471a939c7f96\WinCalculator\WinCalc.Gui.Test\AcceptanceTests.cs:line 39
----- Inner Stack Trace -----
at White.Core.UIItems.Actions.Action.<Handle>b__2()
at Bricks.Core.Clock.Perform(Do do, Matched matched, Expired expired)
at White.Core.UIItems.Actions.Action.Handle(Window window)
at White.Core.UIItems.WindowItems.Window.ActionPerformed(Action action)
at White.Core.InputDevices.Mouse.ActionPerformed(ActionListener actionListener)
at White.Core.InputDevices.Mouse.Click(Point point, ActionListener actionListener)
at White.Core.UIItems.UIItem.PerformClick()
at White.Core.UIItems.UIItem.Click()
我从哪里开始尝试调试呢?
(我已经让它在另一台服务器上工作,所以我不相信这是我的代码,它是新服务器上的设置)。