title: Cucumber with Protractor json Report
body: <p>I have implement cucumber protractor example and it works fine ,when I add </p>
  
  <pre><code>resultJsonOutputFile: 'report.json'  
  </code></pre>
  
  <p>to generate json report ,the report generated just if all steps success but if one step fails the report not generated,Is anyone have any reason why this happen?</p>
  
  <p>protractor.conf file</p>
  
  <pre><code>   exports.config = {
        getPageTimeout: 600000,
        allScriptsTimeout: 700000,
        framework: 'custom',
        frameworkPath: require.resolve('protractor-cucumber-framework'),
  
        capabilities: {
          'browserName': 'chrome'
        },
        specs: [
          '/home/git/adap_gateway/src/test/features/*.feature'
        ],
  
        baseURL: 'http://localhost:8099/',
  
        cucumberOpts: {
          require: '/home/git/adap_gateway/src/test/javascript/stepDef/stepDefinitions.js',
        },
        resultJsonOutputFile: 'report.json'
  
      }; 
  </code></pre>
  
  <p>feature file</p>
  
  <pre><code>Feature: Running Cucumber with Protractor
  
  Scenario: Protractor and Cucumber Test
      Given I go to "http://localhost:8099/#/"
      When I add login credential 
      Then I go to scenario home page
      Then I go to scenario details page
      Then I go to edit attack tree page
      Then build attack tree
  </code></pre>