Below fuction is generating a .null file format in allure report as attachment to test results (it's a browser console errors report), but I want to get a .txt. Is there a way to fix that?
.null
.txt
this.getConsoleErrors = async function() { var consoleErrors; await browser.manage().logs().get('browser').then(function(browserLog) { return consoleErrors = require('util').inspect(browserLog); }); await allure.createAttachment('Console logs', function() {return consoleErrors}, 'logs/txt')(); }
2.1m questions
2.1m answers
60 comments
57.0k users