Skip to content
jfry edited this page Sep 13, 2010 · 2 revisions

Add code that executes on hitting an exception, in any of your tests

For example, the following snippet captures a transaction_id within the application under test, whenever the script errors out.

This code takes advantage of python’s with syntax