You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I configure nightwatch.config.js to show timestamp on output log statements
var config = {
src_folders: [
// Folders with tests
],
output_folder: './logs', // Where to output the test reports
custom_commands_path: `commands`, //Where custom command files are located
live_output: true,
output_timestamp: true,
test_settings: {
default: {
silent: true,
},
chrome: {
},
firefox: {
}
}
};
module.exports = config;
Shows timestamp only when
output_timestamp: true, and silent=false
But I need to log the timestamp when silent=true,
since when silent=false it gives lots of verbose logs.
some sample log statements when running nightwatch
Running: chrome: nightwatch-tests\mytest.js
chrome: nightwatch-tests\mytest.js √ Element <body> was visible after 1927 milliseconds.
I need log statements like below
2024-01-01 01:01:00.222 Running: chrome: nightwatch-tests\mytest.js
2024-01-01 01:01:01.333 chrome: nightwatch-tests\mytest.js √ Element <body> was visible after 1927 milliseconds.
Steps to reproduce
Go to '...'
Click on '...'
Scroll down to '...'
See error
Sample test
No response
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
varconfig={src_folders: [// Folders with tests],output_folder: './logs',// Where to output the test reportscustom_commands_path: `commands`,//Where custom command files are locatedlive_output: true,output_timestamp: true,test_settings: {default: {silent: true,},chrome: {},firefox: {}}};
Nightwatch.js Version
2.6.21
Node Version
20.0
Browser
chrome 121
Operating System
windows 11
Additional Information
No response
The text was updated successfully, but these errors were encountered:
It's actually easy to "fix", the timestamp is not currently handled in the method logDetailedMessage (which is the one who is being called when silent mode is set to true).
I can take care of this
Description of the bug/issue
@gravityvi
@yashPratp983
@garg313
When I configure nightwatch.config.js to show timestamp on output log statements
Shows timestamp only when
output_timestamp: true, and silent=false
But I need to log the timestamp when silent=true,
since when silent=false it gives lots of verbose logs.
some sample log statements when running nightwatch
I need log statements like below
Steps to reproduce
Sample test
No response
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
Nightwatch.js Version
2.6.21
Node Version
20.0
Browser
chrome 121
Operating System
windows 11
Additional Information
No response
The text was updated successfully, but these errors were encountered: