Skip to content

Commit

Permalink
add Log file link
Browse files Browse the repository at this point in the history
  • Loading branch information
tagantroy committed Feb 19, 2018
1 parent d9cf97f commit 47cc305
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ data class HtmlFullTest(
@SerializedName("diagnostic_video") val diagnosticVideo: Boolean,
@SerializedName("diagnostic_screenshots") val diagnosticScreenshots: Boolean,
@SerializedName("screenshot") val screenshot: String,
@SerializedName("video") val video: String
@SerializedName("video") val video: String,
@SerializedName("log_file") val logFile : String
)

fun TestResult.toHtmlFullTest(poolId: String) = HtmlFullTest(
Expand All @@ -44,4 +45,9 @@ fun TestResult.toHtmlFullTest(poolId: String) = HtmlFullTest(
video = when (device.supportedDiagnostics == Diagnostics.VIDEO && resultStatus != ResultStatus.PASS) {
true -> "../../../../screenrecord/$poolId/${device.safeSerial}/$testClass%23$testMethod.mp4"
false -> ""
})
},
logFile = "../../../../logcat/$poolId/${device.safeSerial}/$testClass%23$testMethod.log")
// logFile = when(resultStatus != ResultStatus.PASS){
// true -> "../../../../logcat/$poolId/${device.safeSerial}/$testClass%23$testMethod.log"
// false -> ""
// })
2 changes: 1 addition & 1 deletion fork-runner/src/main/resources/html-report/app.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions html-report/src/components/TestItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default class TestItem extends Component {
<div className="margin-bottom-5">{data.package_name}</div>
</div>
<div className="card-info__content">{convertTime(data.duration_millis)}</div>
<div className="card-info__content">
<a href={data.log_file}>Log file</a>
</div>
</div>

{!!data.video && <div className='card row full'>
Expand Down

0 comments on commit 47cc305

Please sign in to comment.