Is nested Tests are possible in TestNG?

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

Is nested Tests are possible in TestNG?

Parth Shah
Hello, 

I have a question about if "nested" tests are supported. 

For example: 
 * Test1 
 * Test2 
 * Test3 // Composed of subtests 
      - Subtest1 
      - Subtest2 
      - Subtest3 
 * Test 4 
      - Subtest1 of Test3
      - Subtest3 of Test3

Instead of having: 
 * Test1 
 * Test2 
 * Test3 
 * Test4 

Thanks.

Regards,
Parth Shah

--
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
|  
Report Content as Inappropriate

Re: Is nested Tests are possible in TestNG?

Krishnan Mahadevan

No. It’s not possible.

The only defined hierarchy is as below:

 

A <suite> contain:

  • One or more child <suites> (or)
  • One or more <test> tags

 

 

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 Parth Shah <[hidden email]>
Reply-To: <[hidden email]>
Date: Tuesday, June 27, 2017 at 1:31 PM
To: testng-users <[hidden email]>
Subject: [testng-users] Is nested Tests are possible in TestNG?

 

Hello, 

I have a question about if "nested" tests are supported. 

For example: 
 * Test1 
 * Test2 
 * Test3 // Composed of subtests 
      - Subtest1 
      - Subtest2 
      - Subtest3 
 * Test 4 

      - Subtest1 of Test3
      - Subtest3 of Test3

Instead of having: 
 * Test1 
 * Test2 
 * Test3 
 * Test4 

 

Thanks.

 

Regards,

Parth Shah

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