[testng-dev] when exception is thrown in the dataprovider, onTestSkipped method of listener is called but it is marked as failed in the report

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] when exception is thrown in the dataprovider, onTestSkipped method of listener is called but it is marked as failed in the report

ruchika.gupta1983


Encountered a problem when exception is thrown in the dataprovider, onTestSkipped method of listener is called but it is marked as failed in the report(ITestResult object FAILURE status)


onStart
 invoked onTestSkipped
---------------------------
onFinish

===============================================
Suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

IN generateReport
--- resultMap based on the test status ===> [TestResult name=verifyData3 status=FAILURE method=SkippedAndFailedTest.verifyData3(java.lang.String, java.lang.Integer)[pri:0,

instance:testngPackage.SkippedAndFailedTest@464e4df3] output={null}]


reference github :
https://github.com/cbeust/testng/issues/401

Also is attached the zipped sample eclipse project for reference

--
You received this message because you are subscribed to the Google Groups "testng-dev" 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 http://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

TestNGProject.zip (113K) Download Attachment