Interface ReportEntry

    • Method Detail

      • getSourceName

        String getSourceName()
        The class name of the test
        Returns:
        A string with the class name
      • getSourceText

        String getSourceText()
        Human readable test class.
        Returns:
        source text
      • getName

        String getName()
        The name of the test case
        Returns:
        A string describing the test case
      • getNameText

        String getNameText()
        Human readable test case.
        Returns:
        name text
      • getGroup

        String getGroup()
        The group/category of the testcase
        Returns:
        A string
      • getStackTraceWriter

        StackTraceWriter getStackTraceWriter()
        The group/category of the testcase
        Returns:
        stack trace object
      • getElapsed

        Integer getElapsed()
        Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within the reporting subsystem. Some providers like to calculate this value themselves, and it gets the most accurate value.
        Returns:
        duration of a test in milli seconds
      • getElapsed

        int getElapsed​(int fallback)
        Returns same value as getElapsed() and fallbacks to fallback for null elapsed timed.
        Parameters:
        fallback - usually 0
        Returns:
        elapsed time if getElapsed() is not null; otherwise returns fallback
      • getMessage

        String getMessage()
        A message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored
        Returns:
        A string that explains an anomaly
      • getNameWithGroup

        String getNameWithGroup()
        A source name of the test case together with the group or category (if any exists).
        Returns:
        A string with the test case name and group/category, or just the name.
      • getReportNameWithGroup

        String getReportNameWithGroup()
        A source text of the test case together with the group or category (if any exists).
        Returns:
        A string with the test case text and group/category, or just the source text. If no source text is provided, then this will return null.
      • getRunMode

        @Nonnull
        RunMode getRunMode()
        Run mode.
        Returns:
        a normal run, or re-run.
      • getTestRunId

        Long getTestRunId()
        This represents a reference pointing to a literal representation of test description or literal unique id.
        Returns:
        id