Group testNG tests without annotations
        Posted  
        
            by diy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by diy
        
        
        
        Published on 2010-04-12T14:40:26Z
        Indexed on 
            2010/04/12
            14:43 UTC
        
        
        Read the original article
        Hit count: 543
        
Hi gents and ladies,
I'm responsible for allowing unit tests for one of ETL components.I want to acomplish this using testNG with generic java test class and number of test definitions in testng.xmlpassing various parameters to the class.Oracle and ETL guys should be able to add new tests without changing the java code, so we need to use xml suite file instead of annotations.
Question
Is there a way to group tests in testng.xml?(similarly to how it is done with annotations) I mean something like
<group name="first_group">
   <test>
   <class ...>
   <parameter ...>
   </test>
</group>
<group name="second_group">
 <test>
   <class ...>
   <parameter ...>
   </test>
</group>
I've checked the testng.dtd as figured out that similar syntax is not allowed.But is therea workaround to allow grouping?
Thanks in advance
© Stack Overflow or respective owner