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
I have been trying without success to generate an html report and screenhosts - the report is created, but no screenshots - can you see anything wrong in this config? Thanks!
var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
var reporter = new HtmlScreenshotReporter({
dest: 'target/screenshots',
filename: 'my-report.html',
reportOnlyFailedSpecs: false,
captureOnlyFailedSpecs: false,
takeScreenshots: true,
takeScreenshotsOnlyOnFailures: false
});
exports.config = {
useAllAngular2AppRoots: true,
getPageTimeout: 30000,
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['src/tests/**/EE/*.js'],
exclude: ['src/tests/**/EXCLUDE/*.js'],
suites: {
allTest: ['src/tests/**/EE/*.spec.js'],
setupTest: ['src/tests/**/EE/*setup*.spec.js']
},
jasmineNodeOpts: {
defaultTimeoutInterval: 60000
},
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': [ '--no-sandbox', 'disable-popup-blocking=true' ]
}
},
// Setup the report before any tests start
beforeLaunch: function() {
return new Promise(function(resolve){
reporter.beforeLaunch(resolve);
});
},
// Assign the test reporter to each running instance
onPrepare: function() {
jasmine.getEnv().addReporter(reporter);
},
// Close the report after all tests finish
afterLaunch: function(exitCode) {
return new Promise(function(resolve){
reporter.afterLaunch(resolve.bind(this, exitCode));
});
}
};
The text was updated successfully, but these errors were encountered:
Hi!
I have been trying without success to generate an html report and screenhosts - the report is created, but no screenshots - can you see anything wrong in this config? Thanks!
The text was updated successfully, but these errors were encountered: