Class FailureStackElement

java.lang.Object
org.citrusframework.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 Details

    • FailureStackElement

      public FailureStackElement(String testFilePath, String actionName, Long lineNumberStart)
      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

      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