public class CausedByExtractor extends Object implements IFailureReasonExtractor
Extracts failure reasons from exception messages containing "Caused by:" chains.
This extractor uses the existing BrokenTestCaseSummary.Utils#getCausedBySentence(String) utility to extract the root cause from nested exception stacktraces.
Example input:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.clickElement(...)
Caused by: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element
Example output:
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element