How can I add timestamp for each step in Serenity Report?

249 views
Skip to first unread message

Rong Yao

unread,
Nov 15, 2016, 11:20:42 PM11/15/16
to Serenity BDD Users Group
Hi there,

I want to customize Serenity Report to add timestamp for each step. In which repository can I find report generator? Is it in serenity-core of https://github.com/serenity-bdd? Which class should I change?

My current solution is call 'description' method in each step. Of course it is not a good solution.

Appreciated.

Rong Yao
Regards
serenityreport1.PNG

George Petrov

unread,
Jan 25, 2019, 9:14:42 AM1/25/19
to Serenity BDD Users Group
Does anyone have answer for this question. I noticed that it takes me time to figure out when step executed so I can find it in the video recording of the test. I have custom solution for replacing the Selenium screenshots with full screen screenshots and the clock is set to show seconds so if I use it and there is screenshot I can see the exact time. But I would like to have timestamp in the report.

connect2tech

unread,
Nov 10, 2019, 12:03:17 AM11/10/19
to Serenity BDD Users Group

You will have to work on change he serenity-core implementation. Please check the following link as staring point.

 

https://github.com/serenity-bdd/serenity-core/search?q=FOR_EACH_ACTION&unscoped_q=FOR_EACH_ACTION

 

The link contains the references of FOR_EACH_ACTION. You will need to add custom logic in the core implementation to override the generated file names.


~Naresh

Reply all
Reply to author
Forward
0 new messages