How to do varify my Page after a test cased failed

Hi
I’m working on a policy webpage. If a test case failed for whichever reason, how will I check my policy status? I have test case listener for after test suite steps, but how will I do a particular condition step only if test case failed?