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
Add support for formatted start time in emailable-report.html #2459
Comments
@bazzani - Would you like to raise a Pull Request for this ? We will be gladly be able to help you with reviewing it and getting it merged. |
I certainly would @krmahadevan! I have already forked this repo, and pushed an interim commit to a feature branch on my fork. |
The `EmailableReport2` class provides test start times which are in milliseconds values from the epoch (01/01/1970): - see `emailable-report.html` This value is not very human readable, and this change adds a protected method which can be overwritten in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56` Fixes testng-team#2459
The `EmailableReport2` class provides test start times values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `emailable-report.html` - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overwritten in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56` Fixes testng-team#2459
The `EmailableReport2` class provides test start time values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `emailable-report.html` - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overwritten in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56` Fixes testng-team#2459
The `EmailableReport2` class provides test start time values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `emailable-report.html` - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overwritten in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56` Fixes testng-team#2459
The `EmailableReport2` class provides test start time values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `test-output/emailable-report.html` for start time report usage - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overridden in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56`) Fixes testng-team#2459
The `EmailableReport2` class provides test start time values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `test-output/emailable-report.html` for start time report usage - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overridden in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56`) Fixes testng-team#2459
The `EmailableReport2` class provides test start time values which are in millisecond value from the epoch (01/01/1970 00:00:00): - sample value `1610359715103` - GMT : January 11, 2021 Monday 10: 08: 35.103 - see `test-output/emailable-report.html` for start time report usage - see https://www.epochconverter.com/clock This value is not very human readable, and this change adds a protected method which can be overridden in sub classes to provide a more human readable version of the test start time (e.g. `2021-01-01 12:34:56`) Fixes #2459
@krmahadevan can i ask when my fix for this issue will be released? |
@bazzani - TestNG |
TestNG Version
7.1.1
for the sample below, but themaster
branch version can also have the new feature applied.Expected behavior
When I run my TestNG tests using maven and the maven surefire plugin, I would like to be able to specify a formatted start datetime in the
emailable-report.html
file.Actual behavior
The start datetime of a test is displayed in millisceonds from the epoch, which is not human readable.
Is the issue reproductible on runner?
Test case sample
maven-surefire-plugin
, check the Start column in theemailable-report.html
fileOther
I have come up with a fix in my local dev environment to support this feature by adding a protected method to the EmailableReporter2 class which will return the formatted start datetime.
The method can then be overridden in a sub class to return the human readable String, which will be added to the report.
A Sample output would be
The text was updated successfully, but these errors were encountered: