Evilweed / protractor-beautiful-reporter

An npm module which provides html reports of your Protractor tests with screenshots
MIT License
170 stars 40 forks source link

Are browser logs complete? #190

Open ghost opened 4 years ago

ghost commented 4 years ago

I have some questions. Are ALL the browser logs gathered? Are browser logs gathered only after each test, or before each test? If, during a test a refresh happens and the browser console gets wiped, are those logs lost?

miller45 commented 4 years ago

After each spec execution the report calls await browser.manage().logs().get('browser'); So yes, if during the execution of an "it" the browser refreshes the logs might be lost... Gathering of browser logs is only working in chrome btw...

I know chrome offers a feature called 'preserve logs' in the developer console options. If you find out how to put that into webdriver chromeoptions it might work in e2e tests via protractor too.