Multiple suits are running in parallel by default - testng suite of suite file

41 views
Skip to first unread message

garvitag...@gmail.com

unread,
May 3, 2018, 2:00:07 AM5/3/18
to testng-users
Hi,

I am having one testng.xml that contains 2 suites: one suite for sequential run and other suite for parallel run. By default testng runs in order defined in testng.xml, but my suites are running in parallel .Tetsng: 6.13 Selenium : 3.11 

Here is the main testng.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="MasterSuite" preserve-order="true" parallel="false">
<suite-files>
<suite-file path="testngsequential.xml" />
<suite-file path="testngparallel.xml" />
</suite-files>
</suite>

Here is sequentialtestg.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test name="Dashborad">
<classes>
<class name="ipd.administration.classA" />
<class name="ipd.administration.classB" />
</classes>
</test>
</suite>


Here is paralleltetsng.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test name="Charting" parallel="classes" thread-count="3">
<classes>
<class name="ipd.administration.ClassC" />
<class name="ipd.project.analytics.ClassD" />
<class name="ipd.project.analytics.ClassE" />
</classes>
</test>
</suite>


How can i ensure to run suites in order that is first sequentialtestng.xml then paralleltestng.xml. But they are running in paralell, i tried using preserve-order=true and parallel=false at suite level in testng.xml file.

Thanks !!

⇜Krishnan Mahadevan⇝

unread,
May 3, 2018, 3:16:15 AM5/3/18
to testng...@googlegroups.com
Can you please share the surefire plugin configuration from your pom file ?

--
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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages