extentreports-java
extentreports-java copied to clipboard
Need help with displaying Total execution time in extent report 5.0.9
Hi, I need help with Extent Report 5.0.9 which is missing Total execution time details. I am able to modify the extent report html structure and added one block for Total Time Execution,(please refer the screenshot) but execution time is not getting dispalyed for the current run. It is taking the value from last run.
I am using config.properties file and using spark.cofig.setJs() method i am changing the structure of the report.
this what i am passing in Setjs method : "let customNode = document.createElement('div');
customNode.setAttribute('class','col-md-2');
customNode.innerHTML = <div class="card"><div class="card-body"><p class="m-b-0">Total Execution Time</p><h3>timetaken</h3></div></div>
;
document.querySelectorAll(".view.dashboard-view .row")[0].appendChild(customNode);" and replacing the 'timetaken' text with execution time.
Or if you can also help if how to get attached reporter of extent report or edit the attached spark reporter once the execution is done.
@anshooarora sorry for tagging you, but it would be of great help if you can look into it or suggest as its bit urgent