Can we attach @beforeclass method and @afterclass Mehtod to show in reports

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

Can we attach @beforeclass method and @afterclass Mehtod to show in reports

vijay kumar
Hi,

I am want to capture the @beforeclass and @afterclass method in the logs in testng .is this possible ,if yes please guide me on how to do this.

Thanks in advance

--
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: Can we attach @beforeclass method and @afterclass Mehtod to show in reports

Krishnan Mahadevan
Are you looking at having Reporter.log() invocations from within these @BeforeClass/@AfterClass annotated methods being captured in the TestNG reports ?

I think they would be added to the respective ITestResult objects of the configuration methods.
But in your reports, I think you would need to explicitly query these logs for them to be displayed in the reports.

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 Thu, Jun 29, 2017 at 10:46 AM, vijay kumar <[hidden email]> wrote:
Hi,

I am want to capture the @beforeclass and @afterclass method in the logs in testng .is this possible ,if yes please guide me on how to do this.

Thanks in advance

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