Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I fetch the time taken for each step to execute and display in report ? #42

Open
ankitarora0007 opened this issue Aug 11, 2021 · 2 comments

Comments

@ankitarora0007
Copy link

ankitarora0007 commented Aug 11, 2021

Hi
I am working on a project with extent report ,the html report is all good but as per requirement I have to display each step execution time as it is displayed in cucumber report which we were using previously.

image

I am using this dependency .
tech.grasshopper
extentreports-cucumber6-adapter
2.8.2
Cucumber 6.10 version
Is there any option to enable it or if there is any workaround please let me know so that I can display the timings for each step.
Thanks in advance.

@ankitarora0007 ankitarora0007 changed the title Can I fectch the time taken for each step to execute and display in report ? Can I fetch the time taken for each step to execute and display in report ? Aug 11, 2021
@grasshopper7
Copy link
Owner

The step\hook duration are not available in the Spark report. I will have to look up in the report code to find out if this is even possible with any settings. My gut feeling is that this will not be available without report code modification. The adapter just uses the standard extent Spark report without any customization.

U can give the PDF report a try. This displays the timings. Here is a sample report - https://github.com/grasshopper7/cuke6-extent-adapter-report/tree/master/cuke6-extent-adapter-report/pdfreport.

@grasshopper7
Copy link
Owner

Had a look at the spark report code and there is no setting available to display the timings.
Check the relevant code - https://github.com/extent-framework/extentreports-java/blob/6d004b293b3f49969ba4e429960822f783a3c87a/src/main/resources/com/aventstack/extentreports/templates/spark/partials/bdd-content.ftl#L56

U could open up an issue at https://github.com/extent-framework/extentreports-java/issues with your requirement. Or better yet provide a PR with the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants