Can we run multiple suites.xml parallel using Grid? | Selenium Forum
M
Posted on 01/04/2016
Hi,
I have multiple suites.xml and each suites.xml have few tests. Now I want to run parallel suites.xml. How can I achieve this using grid.

I am using RemoteWebDriver and also started hub and node successfully but all suites are running one after the another (sequentially) not parallelly. Can we run parallel ?

[b:pwpl4q1y][i:pwpl4q1y]Note: test cases in each suite.xml are running parallel perfectly but I also want to run all suites parallel.[/i:pwpl4q1y][/b:pwpl4q1y]

Thanks & Regards
Pradeep Singh

M
Replied on 02/04/2016

in suite.xml you might have to add a parallel tag.


M
Replied on 02/04/2016

Already added parallel=tests in all suites's xml and also in testng.xml file.


M
Replied on 02/04/2016

how are you doing it?

have you tried this cmd.
<suite name="Parallel test runs" parallel="tests" thread-count="2">


M
Replied on 05/04/2016

I have 2 suites say SuiteA and SuiteB. Below are respective xml files.
[quote:1coe4m3b]
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="suiteA" parallel="tests">




<test name=" [BS-01] insight_searchIssue">
<classes>
<class name="suiteA.test1" ></class>
</classes>
</test>

<test name=" [BS-02] SecondTEST">
<classes>
<class name="suiteA.test11" ></class>
</classes>
</test>



</suite>[/quote:1coe4m3b]




[quote:1coe4m3b]<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="suiteB" parallel="tests">

<test name=" [BS-01] search review">
<classes>
<class name="suiteB.test2" ></class>
</classes>
</test>

</suite>[/quote:1coe4m3b]


[b:1coe4m3b]and below is my testng.xml file:[/b:1coe4m3b]
[quote:1coe4m3b]
<suite name="End of Suites" parallel="tests" thread-count="4">

<suite-files>


<suite-file path="./suiteA.xml" />
<suite-file path="./suiteB.xml" />


</suite-files>


</suite>
[/quote:1coe4m3b]


M
Replied on 05/04/2016

check these

http://testng.org/doc/documentation-main.html#parallel-running


M
Replied on 05/04/2016

Thanks for this. It helped me .