Pre-condition and post-condition steps

How to set pre- and post-condition steps in TestProject? E.g. if I want to have a step that will run at the end even though some step in the middle fails?

I did not find any action nor option that relates to this.