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