Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issue with selenium parallelism

37 views
Skip to first unread message

Gaurav Gupta

unread,
Feb 14, 2025, 2:06:46 AMFeb 14
to testng-users
I am facing an issue with TestNG parallelism, TestNG is not adhering to the sequence of classes inside TestNG.xml, In the case of parallelism, it picking ra andom class from the Suite XML file. Please suggest how we can ensure that it runs the classes per the defined sequence in XML. I am using thread-count=20 and parallel="classes" at suite level.

Krishnan Mahadevan

unread,
Feb 14, 2025, 2:37:32 AMFeb 14
to testng...@googlegroups.com
Please share additional context around the following


1. Testng version being used
2. How are the tests being run
3. What does your suite file look like
4. What does your test class look like
5. How are you ascertaining that your desired behaviour is not being achieved 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

From: testng...@googlegroups.com <testng...@googlegroups.com> on behalf of Gaurav Gupta <gaura...@gmail.com>
Sent: Friday, February 14, 2025 12:36:45 PM
To: testng-users <testng...@googlegroups.com>
Subject: [testng-users] Issue with selenium parallelism
 
I am facing an issue with TestNG parallelism, TestNG is not adhering to the sequence of classes inside TestNG.xml, In the case of parallelism, it picking ra andom class from the Suite XML file. Please suggest how we can ensure that it runs the classes per the defined sequence in XML. I am using thread-count=20 and parallel="classes" at suite level.

--
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 view this discussion visit https://groups.google.com/d/msgid/testng-users/c3798967-a9c8-42a9-b12e-2cbd478de0adn%40googlegroups.com.

Gaurav Gupta

unread,
Feb 14, 2025, 2:42:35 AMFeb 14
to testng-users
1. TestNG Version: 7.10.2
2. Running Test through mvn command line
3. all the classes are added in a single test and <suite name="Master Suite" parallel="classes" thread-count="16">
4. How are you ascertaining that your desired behavior is not being achieved  - We have observed the method start time of the classes and it is not as per the defined classes. For example, the class is put on the 1st sequence, but the method for that class is executed after 10-12 mins. 


Krishnan Mahadevan

unread,
Feb 14, 2025, 10:08:27 AMFeb 14
to testng...@googlegroups.com
Can you please share a sample project that can be used to reproduce the problem?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

Sent: Friday, February 14, 2025 1:12:35 PM
To: testng-users <testng...@googlegroups.com>
Subject: Re: [testng-users] Issue with selenium parallelism
 
Reply all
Reply to author
Forward
0 new messages