Thanks for the reply. Here is an example of my tests:

    <Test(), Parallelizable()> _
    Public Sub CTIMP()
        Dim selenium As ISelenium
'its a web test and i use selenium server
        Dim verificationErrors As StringBuilder = New StringBuilder()
        Dim currType As String = "CTIPM"
        testLib.SetupTest(selenium)
' this sets up the test and creates new instance of selenium to be
used by the current test

        set_CTIMP
(selenium)                                              ' testing
        ClickAndFillAllSections(selenium, currType)              '
testing
        testLib.TeardownTest(selenium, verificationErrors)      'and
ofcourse the teardown
    End Sub

All test have the Parallelizable attribute. As I mentioned in the
previous post only two test can run in parallel. Am I supposed to
manually create a new thread for each test or the reason is something
else. Moreover, when i set the Timeout attribute of the test it works
correctly, but not when I use the <Assembly: DefaultTestCaseTimeout(10)
>. Any ideas why this is happening ?

On Jun 24, 4:45 am, "Jeff Brown" <[email protected]> wrote:
> It's not a dumb question but I will need some more information to help.
>
> I suspect what is happening is that there aren't enough parallelizable
> tests.
>
> Here are a few tips that might help identify the issue:
>
> Setting DegreeOfParallelism alone is not enough to make tests run in
> parallel.  You also have to add [Parallelizable] to the tests methods and/or
> fixtures.  Keep in mind that those are different things.  A parallelizable
> test method may run in parallel with other test methods within the same
> fixture.  Ditto for a test fixture.  So if you only put [Parallelizable] on
> the fixtures then that will only ensure the fixtures can run in parallel
> with each other but their respective methods still run in series with each
> other (but possibly in parallel with methods in other parallelizable
> fixtures).
>
> Jeff.
>
> -----Original 
> Message-----From:[email protected][mailto:[email protected]]on
>
> Behalf Of Miro
> Sent: Tuesday, June 23, 2009 7:43 AM
> To: MbUnit.User
> Subject: MbUnit Assembly attributes
>
> Hello, I have problem setting both the DegreeOfParallelism and
> DefaultTestCaseTimeout. My testing project is being written in VB and in the
> assemblyinfo.vb there are the following lines:
>   <Assembly: DegreeOfParallelism(5)>
>   <Assembly: DefaultTestCaseTimeout(10)> However, only two tests run
> simultaneously and the tests don't abort after 10 sec (I've set 10 sec
> timeout just to try it out). Any clue why this can be happening. Thanks in
> advance and sorry if my question is sort of dumn - I am a newbe.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to