Is it possible to parallel test and do sequential test at the same time?

Is it possible to parallel test with several classes/test and for each classes/test, you will do sequential test? May I ask how? Thanks!

Hi Bams, To run tests in parallel with different classes. You can use xml file. Below is the sample Code for the same.

<?xml version="1.0" encoding="UTF-8"?>
<test name="Chrome Test">
    <parameter name="browser" value="chrome" />
    <parameter name="version" value="79.0" />
    <parameter name="platform" value="WIN10" />
    <classes>
        <class name="testng.ParallelTest" />
    </classes>
</test>

<test name="Firefox Test">
    <parameter name="browser" value="firefox" />
    <parameter name="version" value="62.0" />
    <parameter name="platform" value="WIN8" />
    <classes>
        <class name="testng.ParallelTest" />
    </classes>
</test>

<test name="Safari Test">
    <parameter name="browser" value="safari" />
    <parameter name="version" value="11.0" />
    <parameter name="platform" value="macos 10.13" />
    <classes>
        <class name="testng.ParallelTest" />
    </classes>
</test>

    <test name="IE Test">
    <parameter name="browser" value="ie" />
    <parameter name="version" value="11.0" />
    <parameter name="platform" value="WIN10" />
    <classes>
        <class name="testng.ParallelTest" />
    </classes>
</test>

        <test name="Opera Test">
    <parameter name="browser" value="opera" />
    <parameter name="version" value="73.0" />
    <parameter name="platform" value="WIN10" />
    <classes>
        <class name="testng.ParallelTest" />
    </classes>
</test>


<!-- Test -->

1 Like