English 中文(简体)
WatiN 间歇性失败
原标题:WatiN Intermittent Failures

我的团队拥有一支由我们的团队服务器自动操作的WatiN测试套。 我们最近把我们的所有建筑代理人都转至64个轨道,我也把我们的WatiN测试改用X64模式的UNnit。 由于Interop呼吁失败,或出于其他原因,Watin总是给我们造成无法正常的测试失败,但总是非常少见。 由于把所有东西都转至64轨道,我们几乎所有的试验套案都因下列例外情况而失效:

Test(s) failed. System.InvalidCastException : Specified cast is not valid.
    at SHDocVw.IWebBrowser2.get_HWND()
    at WatiN.Core.Native.InternetExplorer.IEBrowser.get_hWnd()
    at WatiN.Core.DomContainer.StartDialogWatcher()
    at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, IDialogHandler logonDialogHandler, Boolean createInNewProcess)
    ...

I found a 。 在WatiN用户看到同样的例外,但这是因为她正在尝试多读。 我们没有做任何这样的事情,我们没有像WatiN文件所建议的那样,使用正确的国家公寓。 我确实注意到这个问题,但有人评论说这可能是因为x86诉x64模式。

我如何避免造成我检测经常失败的错误?

如果只是转而采用32个轨道模式,我可以处理此事,但我很想知道,没有更好的解决办法。 感谢。

UPDATE:
After leaving the jobs as using 64 bit NUnit runner for about 5+ runs of the test suites, they failed every time except once with this same error. We switched them back to 32 bit and have had 10+ successful runs since. I guess the temporary fix for now is use a 32 bit NUnit runner although I am still looking for a reason this happens or a solution that would allows us to switch back to x64.

问题回答




相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签