Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.config = {
- // Capabilities to be passed to the webdriver instance.
- capabilities: {
- 'browserName': 'chrome'
- },
- onPrepare: function () {
- var fs = require('fs');
- var testDir = 'testresults/';
- if (!fs.existsSync(testDir)) {
- fs.mkdirSync(testDir);
- }
- var jasmineReporters = require('jasmine-reporters');
- // returning the promise makes protractor wait for the reporter config before executing tests
- return browser.getProcessedConfig().then(function () {
- // you could use other properties here if you want, such as platform and version
- var browserName = 'browser';
- browser.getCapabilities().then(function (caps) {
- browserName = caps.caps_.browserName.replace(/ /g, "_");
- var junitReporter = new jasmineReporters.JUnitXmlReporter({
- consolidateAll: true,
- savePath: testDir,
- // this will produce distinct xml files for each capability
- filePrefix: 'test-protractor-' + browserName,
- modifySuiteName: function (generatedSuiteName) {
- // this will produce distinct suite names for each capability,
- // e.g. 'firefox.login tests' and 'chrome.login tests'
- return 'test-protractor-' + browserName + '.' + generatedSuiteName;
- }
- });
- jasmine.getEnv().addReporter(junitReporter);
- });
- });
- },
- baseUrl: 'http://localhost:3000',
- // Spec patterns are relative to the current working directory when
- // protractor is called.
- specs: [paths.e2e + '/**/*.js'],
- // Options to be passed to Jasmine-node.
- jasmineNodeOpts: {
- showColors: true,
- defaultTimeoutInterval: 30000
- }
- };
- [13:27:13] E/launcher - Error: Error
- at C:wsnode_modulesprotractorbuiltutil.js:55:37
- at _rejected (C:wsnode_modulesqq.js:844:24)
- at C:wsnode_modulesqq.js:870:30
- at Promise.when (C:wsnode_modulesqq.js:1122:31)
- at Promise.promise.promiseDispatch (C:wsnode_modulesqq.js:788:41)
- at C:wsnode_modulesqq.js:604:44
- at runSingle (C:wsnode_modulesqq.js:137:13)
- at flush (C:wsnode_modulesqq.js:125:13)
- at nextTickCallbackWith0Args (node.js:420:9)
- at process._tickCallback (node.js:349:13)
- [13:27:13] E/launcher - Process exited with error code 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement