Last active
June 6, 2019 08:33
-
-
Save PrashantBhatasana/088e77e11a2ce20770969fed04137968 to your computer and use it in GitHub Desktop.
Demo protractor configuration file with `protractor-beautiful-reporter` intergation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HtmlReporter = require('protractor-beautiful-reporter'); | |
exports.config = { | |
// The address of a running selenium server. | |
seleniumAddress: 'http://localhost:4444/wd/hub', | |
// Capabilities to be passed to the webdriver instance. | |
capabilities: { | |
'browserName': 'firefox' | |
}, | |
// Spec patterns are relative to the location of the spec file. They may include glob patterns. | |
suites: { | |
login: 'tests/e2e/home/login.spec.js' | |
}, | |
// Options to be passed to Jasmine-node. | |
jasmineNodeOpts: { | |
showColors: true, // Use colors in the command line report. | |
}, | |
baseUrl: "https://hidden-bayou-97469.herokuapp.com/us/#!/", | |
/******************** protractor-beautiful-reporter */ | |
onPrepare: function () { | |
// Add a screenshot reporter and store screenshots to `/tmp/screenshots`: | |
jasmine.getEnv().addReporter(new HtmlReporter({ | |
baseDirectory: 'tmp/screenshots' | |
}).getJasmine2Reporter()); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment