extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

False Failure in Test Case

Open beedyb220 opened this issue 7 years ago • 3 comments

In general: My test case is showing FAILED even though all the steps passed

Summary

I have a test where everything in it passes and once it completes it shows up as failed.

Expected Behavior

The test result should be PASSED

Sample

// Sample code goes here

Environment Details

  • Extent report Version used: 3.1.2
  • Operating System and version: Windows 10
  • JDK Version: 1.8.0_151

Screenshots

screenshot_6

beedyb220 avatar Jun 02 '18 00:06 beedyb220

@beedyb220 , the information seems incomplete , please share your implementation of extent report (what method you are using like listeners e.g ITestListener, IReporter OR you've directly implemented using TestListenerAdapter/TestNG annotations etc.)

Please see the console logs for any exceptions , if test log has some exception then :- where you are printing "{TEST_CASE_NAME} Test case {STATUS}" due to below issue(s), please add the below line :-

test.log(Status.INFO, result.getThrowable());

'result' will be replaced by the parameter variable used in that function.

then you can see the reason that why your test case is getting failed.

yogitthakral avatar Jun 03 '18 09:06 yogitthakral

Thanks. There was an error in another piece of code causing this. Thanks!!

beedyb220 avatar Jun 12 '18 15:06 beedyb220

Welcome :) @anshooarora , You can close this .

yogitthakral avatar Aug 22 '18 17:08 yogitthakral