Package com.consol.citrus.report
Class FailureStackElement
- java.lang.Object
-
- com.consol.citrus.report.FailureStackElement
-
public class FailureStackElement extends Object
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
Constructors Constructor Description FailureStackElement(String testFilePath, String actionName, Long lineNumberStart)Default constructor using fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetLineNumberEnd()Gets the line number where failing action ends.LonggetLineNumberStart()Gets the line number where error happened.StringgetStackMessage()Constructs the stack trace message.StringgetTestFilePath()Gets the test file path for the failed test.voidsetLineNumberEnd(Long toLineNumber)Sets the line number where failing action ends.
-
-
-
Method Detail
-
getStackMessage
public String getStackMessage()
Constructs the stack trace message.- Returns:
- the stack trace message.
-
getLineNumberStart
public Long getLineNumberStart()
Gets the line number where error happened.- Returns:
- the line number
-
setLineNumberEnd
public void setLineNumberEnd(Long toLineNumber)
Sets the line number where failing action ends.- Parameters:
toLineNumber- the toLineNumber to set
-
getLineNumberEnd
public Long getLineNumberEnd()
Gets the line number where failing action ends.- Returns:
- the toLineNumber
-
getTestFilePath
public String getTestFilePath()
Gets the test file path for the failed test.- Returns:
- the testFilePath
-
-