Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Parallel Tests
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Suresh  
View profile  
 More options Jul 2, 5:36 pm
From: Suresh <suresh.dan...@gmail.com>
Date: Thu, 2 Jul 2009 14:36:49 -0700 (PDT)
Local: Thurs, Jul 2 2009 5:36 pm
Subject: Parallel Tests
Hi

Is it possible to have methods of one <test> run sequentially while
the methods of other <test> run parallely

For example

  <suite name="MySuite" parallel="methods" thread-count="10">

   <test name="test1"  parallel="methods" thread-count="5">
        <classes>
            <class name="MyTest"/>
        </classes>
    </test>

    <test name="test2">
        <classes>
            <class name="MyTest2"/>
        </classes>
    </test>

   <test name="test3"  parallel="methods" thread-count="4">
        <classes>
            <class name="MyTest3"/>
        </classes>
    </test>

  </suite>

In the above case I would like methods of test1 and test3 to be run in
parallel, while the methods of test2 to be run sequentially in a
separate thread.  Please let me know if there is a better way to
achieve the same objective.

Suresh


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Jul 2, 5:51 pm
From: Cédric Beust ♔ <cbe...@google.com>
Date: Thu, 2 Jul 2009 14:51:55 -0700
Local: Thurs, Jul 2 2009 5:51 pm
Subject: Re: [testng-users] Parallel Tests

Try to set the parallel setting at the suite level to "tests":

  <suite name="MySuite" parallel="*tests*" thread-count="10">

This will cause all of your <test> to run in their own thread, but since you
override it to "methods" in test1 and test3, these two should run each
method in their own thread.

--
Cedric

--
***Cédric
*

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Suresh Daniel  
View profile  
 More options Jul 2, 8:49 pm
From: Suresh Daniel <suresh.dan...@gmail.com>
Date: Thu, 2 Jul 2009 17:49:15 -0700
Local: Thurs, Jul 2 2009 8:49 pm
Subject: Re: [testng-users] Re: Parallel Tests

Thanks Cedric for the quick response. It worked.

I just need to make sure I give threadpoolsize in <test1> and <test3> to
make it run in parallel. Otherwise it runs them in single thread if I have
tests with invocationcount > 1

Suresh

2009/7/2 Cédric Beust ♔ <cbe...@google.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google