title: Protractor + AngularJS + Jasmine get output results on xml file
body: <p>I'm trying to export protractor results to xml files,
  i found this great link on web: <a href="https://github.com/angular/protractor/issues/60" rel="noreferrer">https://github.com/angular/protractor/issues/60</a></p>
  
  <p>After running : npm install jasmine-reporters</p>
  
  <p>i added the following lines to my protracotr config file:</p>
  
  <pre><code>require('jasmine-reporters');
  
  jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter(
      'C:\temp\test', true, true));
  </code></pre>
  
  <p>and i get the following error:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>jasmine.console_reporter.js:2
        if (! jasmine) {
        ^
        ReferenceError: jasmine is not defined</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>i attached here my config file, please advise what am i doing wrong, and how can i fix this:</p>
  
  <pre><code>require('jasmine-reporters');
  
  jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter(
      'C:\temp\test', true, true));
  
  // An example configuration file.
  exports.config = {
      seleniumAddress: 'http://localhost:4444/wd/hub',
      chromeOnly: true,
  
    capabilities: {
      'browserName': 'chrome'
    },
  
    specs: ['../test/protractor/publisher_list_e2e.js'],
      allScriptsTimeout: 60000,
    // Options to be passed to Jasmine-node.
  
    jasmineNodeOpts: {
      showColors: true,
      defaultTimeoutInterval: 30000
    }
  
  };
  </code></pre>