vamyip
vamyip

Reputation: 1171

Migrate selenium Nunit tests to MBunit for parallel execution

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

Upvotes: 2

Views: 2206

Answers (1)

Mauricio Scheffer
Mauricio Scheffer

Reputation: 99750

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:

Upvotes: 3

Related Questions