Is there a way to mark a test as failed in the TestNG framework if a certain path is followed?
I know I can use system.exit(1); or something similar to mark an abnormal termination but it doesn't seem to actually mark the test as failed.
|
Is there a way to mark a test as failed in the TestNG framework if a certain path is followed? I know I can use system.exit(1); or something similar to mark an abnormal termination but it doesn't seem to actually mark the test as failed. |
|||
|
|
|
|||||||||
|
|
You can always throw exception -
|
|||