Caputer @afterclass logs in report even if sucess

19 megtekintés
Ugrás az első olvasatlan üzenetre

vijay kumar

olvasatlan,
2017. júl. 10. 1:59:442017. 07. 10.
– testng-users
Hi,

Can anyone suggest how to show the @afterclass method in report all the times even if the result is pass/fail.just like the how the @Test method gets displayed .i am unable to achieve this please tell if this is possible.

Thank you
Vijay

vijay kumar

olvasatlan,
2017. júl. 11. 4:54:212017. 07. 11.
– testng-users
Can anyone guide me on the above issue.

⇜Krishnan Mahadevan⇝

olvasatlan,
2017. júl. 11. 6:25:162017. 07. 11.
– testng...@googlegroups.com
Vijay,

Its not very clear as to what you are expecting. When you say show the @AfterClass method in report what are you referring to?
And what report are you looking at ?

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/

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

vijay kumar

olvasatlan,
2017. júl. 11. 6:33:522017. 07. 11.
– testng...@googlegroups.com
Thank you for the reply Krishnan.

My Requirement:

In my project we attach log for each method whether the method is pass or fail.
I am able to attach logs for each test method and it shows the method in report.But when i use @Afterclass to do some action after all the method is executed i am not able to attach the logs as this @Afterclass is not shown in reports .@Afterclass method is shown in reports only when their is failure .

My question is can we display the @AfterClass method in report at all times even when there is no failure.


--
You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
 Kool Vj

⇜Krishnan Mahadevan⇝

olvasatlan,
2017. júl. 11. 7:35:222017. 07. 11.
– testng...@googlegroups.com
What reports are you referring to ? Are these the default reports that are provided by TestNG or are these some other third party reports that you are using ?

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/

On Tue, Jul 11, 2017 at 4:03 PM, vijay kumar <vijay.s...@gmail.com> wrote:
Thank you for the reply Krishnan.

My Requirement:

In my project we attach log for each method whether the method is pass or fail.
I am able to attach logs for each test method and it shows the method in report.But when i use @Afterclass to do some action after all the method is executed i am not able to attach the logs as this @Afterclass is not shown in reports .@Afterclass method is shown in reports only when their is failure .

My question is can we display the @AfterClass method in report at all times even when there is no failure.

vijay kumar

olvasatlan,
2017. júl. 11. 7:48:052017. 07. 11.
– testng...@googlegroups.com
I am using the default reports

⇜Krishnan Mahadevan⇝

olvasatlan,
2017. júl. 11. 7:49:372017. 07. 11.
– testng...@googlegroups.com

Please share a sample that can be used to recreate the problem. That way it would be easy for us to run it and see what you are referring to.


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 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 a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
 Kool Vj

--
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 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 a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
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 testng-users...@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--

vijay kumar

olvasatlan,
2017. júl. 12. 5:34:562017. 07. 12.
– testng...@googlegroups.com
Hi, 

We are not taking this approach. Thanks for your support Krishnan. 

Vijay

On 11-Jul-2017 5:19 PM, "⇜Krishnan Mahadevan⇝" <krishnan.ma...@gmail.com> wrote:

Please share a sample that can be used to recreate the problem. That way it would be easy for us to run it and see what you are referring to.


On Tue, Jul 11, 2017, 17:18 vijay kumar <vijay.s...@gmail.com> wrote:
I am using the default reports
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
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 a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
 Kool Vj

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
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 a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
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 testng-users+unsubscribe@googlegroups.com.

To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--

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/

--
You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/vFjlomV54yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users+unsubscribe@googlegroups.com.
Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet