Add request and response time to HttpResponseAttachment/HttpRequestAttachment#397
Add request and response time to HttpResponseAttachment/HttpRequestAttachment#397artsok wants to merge 4 commits intoallure-framework:mainfrom
Conversation
|
what about zone? Often server that run tests located in different time zone, so you'll get wrong time |
|
Yep, I think ZonedDateTime.now(ZoneId.systemDefault()) will be better. Like this: 2019-10-16T13:58:47.540+03:00[Europe/Moscow] What do you think? Maybe you have another thought about how to make correctly? |
|
Sorry for the delay I think it would be actually better to use timestamp in epoch milliseconds (as a Long Java type) for request/response times. Then you can use freemarker That will add possibility to use different time representation for users with custom request/response templates Then, it would be nice to have a possibility to set request/response timings by passing value to the builder |
Context
When QAs check Allure reports, they want to see the time in the attachment when HTTP requests or responses made. I clearly understand that they could check Jenkin's log, but it's not useful and has time-consuming.
For that reason, I added a request/response time to HTTP attachment. Look like:
Checklist