public class ReasonSectionExtractor extends Object implements IFailureReasonExtractor
Extracts failure reasons from messages with an explicit "Reason:" section.
This format is commonly used in Katalon-specific exceptions where the reason is clearly separated from the stacktrace.
Example input:
Test case 'Login Test' FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: username for class: LoginPage
at LoginPage.fillCredentials(LoginPage.groovy:25)
Example output:
groovy.lang.MissingPropertyException: No such property: username for class: LoginPage