Re: [testng-users] Nested Suite Files

98 views
Skip to first unread message

Krishnan Mahadevan

unread,
Jan 30, 2013, 11:49:38 PM1/30/13
to testng...@googlegroups.com
I noticed this sometime back too.

Here's what will fix things for you in 6.8

Name each of your suites with a unique name [ Currently all your suites have the same name viz., Connectivity]
Change the names such that they are unique. You should be able to proceed further.



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/


On Thu, Jan 31, 2013 at 3:47 AM, Adam <cheer...@gmail.com> wrote:
Folks,

I suspect I am being really ignorant but here goes.  Currently using tesng v. 6.0.1.20110417_1101.  I was interested in upgrading to 6.8.  When I do,a suite I have that points to another set of suites does not run all those suites.  It just reruns one suite three times.  In the example below, Ill run the main suite file, and it will run the info.xml three times, never running the other two.  Any ideas what I am doing wrong?

Thanks in advance!

Main Suite File:

<suite name="Connectivity" verbose="1">

     

  <suite-files>

     

      <!--Connectivity Tests-->

     

      <suite-file path="../Audit.xml" />

      <suite-file path="../Member.xml" />

      <suite-file path="../Info.xml" />

     

  </suite-files>

     

</suite>


Audit.xml:


<suite name="Connectivity" verbose="1">

     

 

      <test name="Audit">

           

            <groups>

                  <run>

                        <include name="all"></include>

                        <exclude name="none"></exclude>

                  </run>

            </groups>

 

            <classes>

                  <class name="TestClasses.Audit"/>

            </classes>

      </test>    

</suite>


Member.xml:

<suite name="Connectivity" verbose="1">

     


      <parameter name="browserStartCommand" value="chrome" />

 

      <test name="Member">

           

            <groups>

                  <run>

                        <include name="all"></include>

                        <exclude name="none"></exclude>

                  </run>

            </groups>

 

            <classes>

                  <class name="TestClasses.Member"/>

            </classes>

      </test>    

</suite>


Info.xml:

<suite name="Connectivity" verbose="1">

     

 

      <test name="Info">

           

            <groups>

                  <run>

                        <include name="all"></include>

                        <exclude name="none"></exclude>

                  </run>

            </groups>

 

            <classes>

                  <class name="TestClasses.Info"/>

            </classes>

      </test>    

</suite>

--
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 testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Adam

unread,
Jan 31, 2013, 12:24:33 PM1/31/13
to testng...@googlegroups.com
Thanks so much! I'll give it a go! 

Adam
Reply all
Reply to author
Forward
0 new messages