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

ExtentReport Dashboard is showing incorrect Tests Executed in Test Category when CreateNode used

Open dipesh17 opened this issue 7 years ago • 0 comments

Summary

When attach child node using createNode functionality. After Executing test suite, Dashboard is showing incorrect number of Tests executed in Tests category.

Expected Behavior

No of Tests Executed should be correctly displayed in Tests Category. e.g 17 test(s) passed 0 test(s) failed, 0 others

The dashboard should show correct time is taken (Start, End and Time Taken)

Current Behavior

Showing incorrect number os tests executed. 34 test(s) passed 0 test(s) failed, 0 others

The dashboard is showing incorrect time taken.

Sample

RestAssured API Application: Creating REQUEST and RESPONSE NODE:

public void reportRequestInfo(String request) {
		ExtentTest requestNode = getExtentTest().createNode("REQUEST");
		requestNode.log(Status.INFO, "<pre>" + request + "</pre>");
		logInfo(request);
	}
	
	public void reportResponseInfo(String response) {
		ExtentTest responseNode = getExtentTest().createNode("RESPONSE");
		responseNode.log(Status.INFO, "<pre>" + response + "</pre>");
		logInfo(response);
	}


Environment Details

  • Extent report Version used: 3.1.3
  • Operating System and version: macOS High Sierra version 10.12.3
  • JDK Version: 1.8

Screenshots

17 Tests executed through command line and Time Taken: 15.079 s screen shot 2018-03-23 at 10 23 38

34 tests showing in extent report and Time Taken: 7.777ms due to create node function used to create 2 children node (REQUEST, RESPONSE). Please note if i dont createNode and use parent extent to report its is working fine. screen shot 2018-03-23 at 10 24 15

dipesh17 avatar Mar 23 '18 10:03 dipesh17