Master and Sub Suites with listeners

141 views
Skip to first unread message

Tam

unread,
Aug 23, 2012, 8:45:24 AM8/23/12
to testng...@googlegroups.com
I have a master suite file which is a collection of other suites.  Each of these suites have their listeners associated to them in their suite files.  When I run this master suite and when it starts to run sub suites, testng is not calling the respective listeners.    When I run Individual suites everything works as expected.

MasterSuite file

<suite parallel="classes" data-provider-thread-count="50" annotations="JDK">

<suite-files>
  <suite-file path="src/test/resources/Suites/1.xml" />
<suite-file path="src/test/resources/Suites/2.xml" />
<suite-file path="src/test/resources/Suites/3.xml" />
  <suite-file path="src/test/resources/Suites/4.xml" /> 
</suite-files>
</suite>

1.xml
<listeners> <listener class-name="com.test.listeners.1Listener" /> </listeners>
2.xml
<listeners> <listener class-name="com.test.listeners.2Listener" /> </listeners>
3.xml
<listeners> <listener class-name="com.test.listeners.3Listener" /> </listeners>
4.xml
<listeners> <listener class-name="com.test.listeners.4Listener" /> </listeners>

Thanks in Advance
Tam

Krishnan Mahadevan

unread,
Aug 23, 2012, 9:28:58 AM8/23/12
to testng...@googlegroups.com
I believe, listener invocation is confined to only the current suite. So if your suite itself has a bunch of suites embedded, TestNG wouldn't invoke their listeners. However I am not sure, if this is by design. Cedric would be the best person to answer that query.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



Tam

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/AizYGVPaIH4J.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Tam

unread,
Aug 23, 2012, 1:16:09 PM8/23/12
to testng...@googlegroups.com

Thanks Krishnan,   appreciate your prompt response.  Will wait for Cedric's comments. 

Cédric Beust ♔

unread,
Aug 23, 2012, 9:03:30 PM8/23/12
to testng...@googlegroups.com
This sounds like a bug, I'll take a look.

-- 
Cédric




Tam

--

Tam

unread,
Sep 13, 2012, 7:27:36 PM9/13/12
to testng...@googlegroups.com, ced...@beust.com
Hi Cédric,  do you get a chance to look into this issue.

Tameem

Cédric Beust ♔

unread,
Sep 13, 2012, 10:01:28 PM9/13/12
to testng...@googlegroups.com
Hi Tameem,

Sorry, no...

-- 
Cédric




On Thu, Sep 13, 2012 at 4:27 PM, Tam <tameem...@gmail.com> wrote:
Hi Cédric,  do you get a chance to look into this issue.

Tameem

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/ggS2-cqnZ6kJ.

Tam

unread,
Oct 9, 2012, 2:17:03 PM10/9/12
to testng...@googlegroups.com, ced...@beust.com
Hi Cédric,  this is kind of important feature we wanted to have, can you please let us know when this would be fixed. 

Thanks much and really appreciate you looking into it,
Tameem



Tam

unread,
Jan 14, 2013, 9:25:38 PM1/14/13
to testng...@googlegroups.com, ced...@beust.com
Hi Cedric,  Just following up on this feature enhancement.   Appreciate your response in regards to the same. 

Thanks,
Tameem

Tam

unread,
Sep 3, 2013, 2:45:12 PM9/3/13
to testng...@googlegroups.com, ced...@beust.com
Hi Cedric,  Do you have any update for us, it has come back again and we need this functionality.

Thanks,
Tameem

Cédric Beust ♔

unread,
Sep 3, 2013, 5:44:28 PM9/3/13
to Tam, testng...@googlegroups.com
Sorry Tameem, I haven't had any time to look into this.

-- 
Cédric

Reply all
Reply to author
Forward
0 new messages