TestNG define groups at suite level

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TestNG define groups at suite level

dr29bart
This post has NOT been accepted by the mailing list yet.
I want to define group in parent suite file and use it in child files to avoid duplication. My suite-file hierarchy looks like this:

<suite name="Regression" verbose="2">
    <groups>
        <define name="bugs">
            <include name="ud86418" description="Session timeout"/>
        </define>
    </groups>
    <suite-files>
       <suite-file path="./singleThread.xml"/>
       <suite-file path="./multiThread.xml"/>
    </suite-files>
</suite>

I'm using testng 6.5.2. This structure couse NPE. Does any correct solution exist?