**Cucumber step definition**

```
Then(/^Submit Button is disabled$/, function (done) {
    element(by.buttonText('Search')).isEnabled().then(function (result) {

        expect(result).to.equal(false);
        done();
    });
})

```

**Console error:** 

> 
> [12:17:13] E/launcher - expected false to equal true
>  [12:17:13] E/launcher - AssertionError: expected false to equal true
>  at D:\Mercurial\PromotionFinder\PromotionFinder\PromotionFinder.Web\features\steps\cucumber.js:178:31
>  at elementArrayFinder\_.then (C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\lib\element.ts:840:22)
>  at ManagedPromise.invokeCallback\_ (C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\node\_modules\selenium-webdriver\lib\promise.js:1366:14)
>  at TaskQueue.execute\_ (C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\node\_modules\selenium-webdriver\lib\promise.js:2970:14)
>  at TaskQueue.executeNext\_ (C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\node\_modules\selenium-webdriver\lib\promise.js:2953:27)
>  at asyncRun (C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\node\_modules\selenium-webdriver\lib\promise.js:2813:27)
>  at C:\Users\abhishes\AppData\Roaming\npm\node\_modules\protractor\node\_modules\selenium-webdriver\lib\promise.js:676:7
>  at process.\_tickCallback (internal/process/next\_tick.js:103:7)
>  [12:17:13] E/launcher - Process exited with error code 199
> 
> 
> 

**Protractor configuration**

```
exports.config = {
  // seleniumAddress: 'http://127.0.0.1:9001/',
  resultJsonOutputFile: "./e2e_report/report.json",
  getPageTimeout: 60000,
  allScriptsTimeout: 500000,
  framework: 'custom',
  // path relative to the current config file
  frameworkPath: require.resolve('protractor-cucumber-framework'),
  capabilities: {
    'browserName': 'chrome',
    chromeOptions: {
      args: [
        '--start-maximized'
      ]
    }
  },
  // Spec patterns are relative to this directory.
  specs: [
    './features/*.feature'
  ],
  baseURL: 'https://angularjs.org/',
  cucumberOpts: {
    require: ["./features/globals.js", './features/steps/*.js'],
    tags: [],
    format: 'pretty',
    profile: false,
    'no-source': true,
    "compiler": [] //,
    //format:"json:./e2e_report/report.json"
  }
};

```

whenever assertion is failed test execution stop abruptly and no test report is generated.

I am using 
**Protractor version - 5, cucumberjs version 2.0.0 and chai & chai-as-promised for assertion** 

I want information like below:

1 scenario (1 failed)
5 steps (1 failed, 3 skipped, 1 passed)

and result.json to be created so that i can see results in teamcity.