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
@rebajz In the "past" it would be easy to rename the files with options, but i did some refactoring so the are more files in the future which cannot be renamed because I use the as templates in angular code.
But to avoid overwriting you should just use different folders for each device.
please add this new options for settings:
set own name for app.js file
set own name for combined.json
set folder for support src file (folders assets, fonts and file app.js)
add class to label tag (search input)
why?
for example we running test in loop for many different devices. Each device have own report.
And because tests running in loop, some files are automatically rewrited. And it is better have src files in one shared folders.
A must something as (not good way, but working):
let htmlCode;
let cssCode;
let reportFolder = 'someFolder';
let reportName = 'someName';
let reporterSupportFolder = 'src_files';
// change source code for generated html report
htmlCode = fs.readFileSync(reportFolder + '/' + reportName + '.html', 'utf-8');
htmlCode = htmlCode.replace(/src="/g, 'script src="' + reporterSupportFolder + '/');
htmlCode = htmlCode.replace('Protractor Screenshot Report', 'My_text_used_in_title');
htmlCode = htmlCode.replace(/rel="stylesheet" href="/g, 'rel="stylesheet" href="' + reporterSupportFolder + '/');
htmlCode = htmlCode.replace('type="image/x-icon" href="', 'type="image/x-icon" href="' + reporterSupportFolder + '/');
htmlCode = htmlCode.replace('<img class="screenshotImage" ng-script src="' + reporterSupportFolder + '/', '<img class="screenshotImage" ng-script src="');
htmlCode = htmlCode.replace('<img ng-script src="' + reporterSupportFolder + '/', '<img ng-script src="');
htmlCode = htmlCode.replace('app.js', 'app_' + params['runDevice'] + '.js');
htmlCode = htmlCode.replace('', '');
fs.writeFileSync(reportFolder + '/' + reportName + '.html', htmlCode);
The text was updated successfully, but these errors were encountered: