protractor-beautiful-reporter
protractor-beautiful-reporter copied to clipboard
beautiful reporter steals console log
I have this method:
public static async checkConsoleLog(callBack, ignoreErrorText?: string): Promise
method checkConsoleLog() is used in each test by this way: afterAll(async (done) => { await utils.checkConsoleLog(done); });
When i have in config file (onPrepera()) added beautiful reporter, each test is failed ( Failed: Log is empty. Message from utils.checkConsoleLog() ) - because beautiful reporter steel console logs. When i do from code for beatufil reporter in config only comment, everything working correctly.
I try use in cofig option gatherBrowserLogs: true, but still is console log consumed by beatiful reporter.
Tested on last version 1.3.5
@rebajz You have to set gatherBrowserLogs: false if you want get the logs by yourself...
@miller45 i try use gatherBrowserLogs: false, but still have empty logs :-(
in my config i have: capabilities: { 'browserName': 'chrome', 'loggingPrefs': { 'driver': 'INFO', 'browser': 'INFO', 'performance': 'ALL' }, 'chromeOptions': { 'debuggerAddress': getDebugUrl(debugPort), 'perfLoggingPrefs': { 'enableNetwork': true, 'enablePage': true } } }
logs for perf i have. Logs for browser are empty.