Thanks Annalakshmi.
Yes I have tried it, but there is one more problem in it.
Assume that the test case that I have mentioned above is in a TEST SUITE and I am running the test suite locally.
If I had set it to "GENERATE ERROR", then on Test suite results(in <machineName>:1507/devtest/#/login), it is showing the step status as "PASS".
On generating an error, should I not say "Fail" in results?