views:

36

answers:

1

Hi,

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

+1  A: 

Most likely the problem is that you're having stateful tests. When parallelizing tests, try to isolate them so that they don't depend on instance variables that are set on each SetUp.

See these questions about parallelizing Selenium tests:

Mauricio Scheffer