Selenium Webdriver在测试运行期间抛出RemotingException

时间:2012-05-07 14:32:24

标签: c# exception selenium webdriver xunit

我最近继承了一个基于c#的Web项目,该项目使用Selenium Webdriver进行验收测试。从一开始我就没有成功完成测试。我看到的典型行为是测试将在遍历测试夹具时抛出异常(见下文)。测试运行的顺序并不重要,因为我试图改变顺序以查看错误是否是错误测试的结果。

我尝试使用nAnt脚本运行,也通过Visual Studio内的Resharper运行。无论选择哪种方法或测试装置,结果都是一样的。

我目前的设置是Selenium Webdriver 2.2,XUnit 1.1,Firefox 10,并使用nAnt .91作为我的构建工具。所有这些都是针对.net 3.5版本运行的。

我的最终目标是在我们的Hudson盒子上运行这些测试。

如果我能提供任何其他信息,请告诉我。

谢谢, - e r i c

 System.Runtime.Remoting.RemotingException: Object '/eb473230_0710_4707_866c_9c04ea4a2c5f/9nzwh0chovd81dduvwr_jyj0_2.rem' has been disconnected or does not exist at the server.
at System.Object.FieldGetter(String typeName, String fieldName, Object& val)
at Xunit.Sdk.Executor.RunTests..ctor(Executor executor, String _type, List`1 _methods, Object _handler)
at Xunit.ExecutorWrapper.RethrowWithNoStackTraceLoss(Exception ex)
at Xunit.ExecutorWrapper.CreateObject(String typeName, Object[] args)
at Xunit.ExecutorWrapper.RunTests(String type, List`1 methods, Predicate`1 callback)
at Xunit.TestClass.RunTests(List`1 methods, ITestMethodRunnerCallback callback)

0 个答案:

没有答案