Skip to content

Commit

Permalink
issue #467: rename getErrorCause by getRootCause
Browse files Browse the repository at this point in the history
  • Loading branch information
bhecquet committed Jan 18, 2022
1 parent c94eeac commit 0b53860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ private void formatFailedStep(List<TestStep> failedSteps, StringBuilder fullDesc
fullDescription.append("h2. Steps in error\n");
for (TestStep failedStep: failedSteps) {
fullDescription.append(String.format("* *" + STEP_KO_PATTERN + "%s*\n", failedStep.getPosition(), failedStep.getName().trim()));
if (failedStep.getErrorCause() != null) {
fullDescription.append(String.format("+Possible cause:+ %s%s\n", failedStep.getErrorCause(), failedStep.getErrorCauseDetails() == null || failedStep.getErrorCauseDetails().trim().isEmpty() ? "": " => " + failedStep.getErrorCauseDetails()));
if (failedStep.getRootCause() != null) {
fullDescription.append(String.format("+Possible cause:+ %s%s\n", failedStep.getRootCause(), failedStep.getRootCauseDetails() == null || failedStep.getRootCauseDetails().trim().isEmpty() ? "": " => " + failedStep.getRootCauseDetails()));
}
fullDescription.append(String.format("{code:java}%s{code}\n\n", failedStep.toString()));
}
Expand Down

0 comments on commit 0b53860

Please sign in to comment.