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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

garvitagirotraev
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 !!

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Krishnan Mahadevan
Can you please share the surefire plugin configuration from your pom file ?

On Thu 3 May, 2018, 11:30 , <[hidden email]> wrote:
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 !!

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.