1
votes

I'm working on cucumber protractor framework, And by giving the below comment I cab able to get the report in JSON format for successfully executed scenarios. But if my scenarios got failed I'm unable to get the JSON report.

In conf.js I have added the line: resultJsonOutputFile: 'report1.json',

And after executing I can able to see the below comments in comment prompt:

[15:54:39] E/launcher - AssertionError: expected true to be false

[15:54:39] E/launcher - Process exited with error code 199

But unable to get the JSON report. Could any one help me to get the JSON report for all success & failure execution.

1

1 Answers

0
votes

If you add this ignoreUncaughtExceptions: true to your protractor-config file it should not throw the 199 error code.

If you've configured the format: 'json: result.json' like described here it should now output the result to a file.