2

I am trying to migrate my existing selenium tests with Nunit to MBunit so that I can run the tests in parallel using selenium grid. I've added the attributes

[assembly: DegreeOfParallelism(8)]
[assembly: Parallelizable(TestScope.All)]

to assemblyinfo.cs and added references to Gallio.dll and MBUnit.dll to the C# project. The problem is that when I run the tests using gallio, the tests fail citing "ERROR: No sessionId provided. Most likely your original newBrowserSession command failed."
Can anybody help me with this error.

Thanks,
Vamyip

4

1 回答 1

3

最有可能的问题是您正在进行有状态的测试。并行化测试时,尝试隔离它们,使它们不依赖于在每个 SetUp 上设置的实例变量。

请参阅有关并行化 Selenium 测试的这些问题:

于 2010-10-05T16:00:35.110 回答