@Test(dataProvider = "myDataProvider",threadPoolSize = 30)public void test_BulkProcessing_SingleRequest(Map<String, String> requestInfo) throws HttpStatusException, IOException {System.out.println(String.format("[tId:%d] Request: %s",Thread.currentThread().getId(),request_id));...}
<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><parallel>methods</parallel><threadCount>30</threadCount></configuration></plugin></plugins></build>
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
...[tId:10] ParallelTest.testParallelDataProvider(ID_9981)[tId:18] ParallelTest.testParallelDataProvider(ID_9980)[tId:12] ParallelTest.testParallelDataProvider(ID_9979)[tId:11] ParallelTest.testParallelDataProvider(ID_9978)[tId:19] ParallelTest.testParallelDataProvider(ID_9977)[tId:17] ParallelTest.testParallelDataProvider(ID_9976)[tId:13] ParallelTest.testParallelDataProvider(ID_9975)[tId:16] ParallelTest.testParallelDataProvider(ID_9974)[tId:13] ParallelTest.testParallelDataProvider(ID_9991)[tId:17] ParallelTest.testParallelDataProvider(ID_9990)[tId:19] ParallelTest.testParallelDataProvider(ID_9989)[tId:11] ParallelTest.testParallelDataProvider(ID_9988)[tId:12] ParallelTest.testParallelDataProvider(ID_9987)[tId:18] ParallelTest.testParallelDataProvider(ID_9986)[tId:10] ParallelTest.testParallelDataProvider(ID_9985)[tId:15] ParallelTest.testParallelDataProvider(ID_9984)[tId:14] ParallelTest.testParallelDataProvider(ID_9983)[tId:10] ParallelTest.testParallelDataProvider(ID_9999)[tId:18] ParallelTest.testParallelDataProvider(ID_9998)[tId:12] ParallelTest.testParallelDataProvider(ID_9997)[tId:11] ParallelTest.testParallelDataProvider(ID_9996)[tId:19] ParallelTest.testParallelDataProvider(ID_9995)[tId:17] ParallelTest.testParallelDataProvider(ID_9994)[tId:13] ParallelTest.testParallelDataProvider(ID_9993)[tId:16] ParallelTest.testParallelDataProvider(ID_9992)...
Total threads: 10Thread[16] : 700 iterationsThread[17] : 1100 iterationsThread[18] : 1129 iterationsThread[19] : 1127 iterationsThread[10] : 1064 iterationsThread[11] : 1025 iterationsThread[12] : 984 iterationsThread[13] : 640 iterationsThread[14] : 1097 iterationsThread[15] : 1134 iterationsTotal iterations: 10000
Total threads: 10Thread[16] : 591 iterationsThread[17] : 1145 iterationsThread[18] : 1109 iterationsThread[19] : 1079 iterationsThread[10] : 1095 iterationsThread[11] : 1101 iterationsThread[12] : 1106 iterationsThread[13] : 1120 iterationsThread[14] : 887 iterationsThread[15] : 767 iterationsTotal iterations: 10000
@Overridepublic void onStart(ISuite suite) {XmlSuite mySuite = suite.getXmlSuite();
mySuite.setDataProviderThreadCount(30);}
@BeforeClasspublic void setup(ITestContext ctx) {XmlSuite suite = ctx.getSuite().getXmlSuite();suite.setDataProviderThreadCount(20);}
-dataproviderthreadcount | The default number of threads to use for data providers when running tests in parallel. | This sets the default maximum number of threads to use for data providers when running tests in parallel. It will only take effect if the parallel mode has been selected (for example, with the -parallel option). This can be overridden in the suite definition. |