Package org.citrusframework.report
Class FailureStackElement
java.lang.Object
org.citrusframework.report.FailureStackElement
Failure stack element provides access to the detailed failure stack message and
the location in the test case XML where error happened.
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionFailureStackElement(String testFilePath, String actionName, Long lineNumberStart) Default constructor using fields. -
Method Summary
Modifier and TypeMethodDescriptionGets the line number where failing action ends.Gets the line number where error happened.Constructs the stack trace message.Gets the test file path for the failed test.voidsetLineNumberEnd(Long toLineNumber) Sets the line number where failing action ends.
-
Constructor Details
-
FailureStackElement
Default constructor using fields.- Parameters:
testFilePath- file path of failed test.actionName- the failed action name.lineNumberStart- the line number where error happened.
-
-
Method Details
-
getStackMessage
Constructs the stack trace message.- Returns:
- the stack trace message.
-
getLineNumberStart
Gets the line number where error happened.- Returns:
- the line number
-
setLineNumberEnd
Sets the line number where failing action ends.- Parameters:
toLineNumber- the toLineNumber to set
-
getLineNumberEnd
Gets the line number where failing action ends.- Returns:
- the toLineNumber
-
getTestFilePath
Gets the test file path for the failed test.- Returns:
- the testFilePath
-