try:
                    excType, excInstance, tb = testCase.failure
                    errorMessage = str(excInstance)
                    stackTrace = ''.join(traceback.format_tb(tb))