Skip to content

Commit 2b06394

Browse files
committed
And now add the command log to the htmlrunner results
1 parent 28035f0 commit 2b06394

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

java/server/src/org/openqa/selenium/server/htmlrunner/CoreTestCase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,9 @@ public boolean isError() {
149149
public boolean isFailure() {
150150
return !isSuccessful() && !isError();
151151
}
152+
153+
public String getStepLog() {
154+
return step.toString();
155+
}
152156
}
153157
}

java/server/src/org/openqa/selenium/server/htmlrunner/Results.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public void addTest(String rawSource, List<CoreTestCase.StepResult> stepResults)
5959
} else {
6060
commandFailures++;
6161
}
62+
63+
log.append(stepResult.getStepLog()).append("\n");
6264
}
6365

6466
if (passed) {

0 commit comments

Comments
 (0)