Extract all intended grouped classes from testng xml file

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

Extract all intended grouped classes from testng xml file

Thilak V

I would like to know how I can parse the suite file in testng and extract all the classes with the intended tag from it.

For example,

<suite thread-count="5" verbose="1" name="Regression Suite" skipfailedinvocationcounts="false" junit="false" parallel="classes" data-provider-thread-count="1" annotations="JDK" preserve-order="false">
    <test name="RQA Set" parallel="classes">
        <groups>
            <run>
                <include name="P1"></include>
            </run>
        </groups>
        <packages>
            <package name="com.test.regression" />
            <package name="com.test.regression1" />
        </packages>
    </test>
</suite>

Here, to extract the classes with tag P1 . Any help is much appreciated?

--
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: Extract all intended grouped classes from testng xml file

⇜Krishnan Mahadevan⇝

Can you please explain what you are trying to do?

 

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/

 

From: <[hidden email]> on behalf of Thilak V <[hidden email]>
Reply-To: <[hidden email]>
Date: Sunday, July 29, 2018 at 7:25 PM
To: testng-users <[hidden email]>
Subject: [testng-users] Extract all intended grouped classes from testng xml file

 

I would like to know how I can parse the suite file in testng and extract all the classes with the intended tag from it.

For example,

<suite thread-count="5" verbose="1" name="Regression Suite" skipfailedinvocationcounts="false" junit="false" parallel="classes" data-provider-thread-count="1" annotations="JDK" preserve-order="false">
    <test name="RQA Set" parallel="classes">
        <groups>
            <run>
                <include name="P1"></include>
            </run>
        </groups>
        <packages>
            <package name="com.test.regression" />
            <package name="com.test.regression1" />
        </packages>
    </test>
</suite>

Here, to extract the classes with tag P1 . Any help is much appreciated?

--
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.

--
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.