--
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.
HI Krishnan,Thanks for the update.How can we get to know whether the skipping is due to configuration failure or normal failure?Do i need to implement ITestResult interface for that ?ThanksRaju
No. You don't need to implement anything.You just build a TestNG listener based on org.testng.ITestListener wherein you will get notified of the test method's ITestResult and from within that you can query the throwable to find out the reason.Refer to the below links for more information:
- Getting started with listeners (This is my blog) : https://rationaleemotions.wordpress.com/2012/01/27/listen-to-what-i-have-to-say-about-testng-listeners/
- TestNG Listeners with some samples for org.testng.ITestListener : https://examples.javacodegeeks.com/enterprise-java/testng/testng-listeners-example/
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, Nov 24, 2016 at 8:24 AM, Raju Arelli <raja...@gmail.com> wrote:
HI Krishnan,Thanks for the update.How can we get to know whether the skipping is due to configuration failure or normal failure?Do i need to implement ITestResult interface for that ?ThanksRaju
On Wed, Nov 23, 2016 at 8:49 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
Raju,AFAIK, TestNG already adds the details about why a Test method was skipped which can be queried by invoking ITestResult#getThrowable() [ Here ITestResult is the test result object of a test method that was skipped ]But if a test method gets skipped due to a configuration failure, then this information is currently not available.That being said, as part of this commit I have enhanced TestNG to start including this data even for test methods that were skipped due to a configuration failure. So this will be available in the upcoming TestNG version [ I don't know the timelines for when the next version of TestNG is going to be available though ]
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 Wed, Nov 23, 2016 at 6:40 PM, Raju Arelli <raja...@gmail.com> wrote:
I have around 100 test cases in my Test suite.When I run the suite,few of the test cases are getting skipped without any reason.I couldn't able to find the log for skipping.When I run the same test cases individually,those are running perfect.Could somebody assist on this.Thanks,Raju
--
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 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 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 unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.