protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Unable to generate xml reports using JUnitXmlReporter

Open SwatiKhandelwal opened this issue 11 years ago • 2 comments

When I am trying to generate xml output files using JUnitXmlReporter, the test run is successful, but no XML reports are generated, I only see results in console where I run the tests. Below is the conf.js file that I used:

exports.config = {
          seleniumAddress: 'http://localhost:4444/wd/hub',

capabilities: {
    'browserName': 'firefox'
},

specs: ['spec1.js'],

jasmineNodeOpts: {
  onComplete: null,
  isVerbose: true,
  showColors: true,
  includeStackTrace: true
},
onPrepare: function() {
    var jasmineReporters = require('C:/Users/swati.m.khandelwal/node_modules/jasmine-reporters');
jasmine.getEnv().addReporter(
new jasmineReporters.JUnitXmlReporter('./output', true, true)
);
    }
};

Please help me in this regard.

Thanks in advance!

SwatiKhandelwal avatar Nov 17 '15 12:11 SwatiKhandelwal

I am successfully able to generate HTML reports (using 'protractor-html-screenshot-reporter') but not XML reports anyhow.

SwatiKhandelwal avatar Nov 17 '15 12:11 SwatiKhandelwal

Hi there!

Your question is better suited for StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.

From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

NickTomlin avatar Nov 17 '15 15:11 NickTomlin