diff options
author | Young Gyu Park <younggyu@google.com> | 2018-06-27 11:37:09 +0900 |
---|---|---|
committer | Young Gyu Park <younggyu@google.com> | 2018-06-27 11:37:09 +0900 |
commit | d747ca6e4b4f1e59c0e098dd33669a36f28ce00b (patch) | |
tree | d2664f5bbdbdcb6139ae8576d5fe6ae618214ac4 /src | |
parent | d3a6799bad12fb3a3986c6ce61288224b8cb413d (diff) | |
download | dashboard-d747ca6e4b4f1e59c0e098dd33669a36f28ce00b.tar.gz |
Copy reproduce command from protobuf file.android-o-mr1-iot-release-1.0.2
Test: go/vts-web-staging/show_plan_release?plan=sts&type=suite
Bug: 110814448
Change-Id: Ieaedbb3720fae4ff11799bb8de019b55e522f620
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/android/vts/entity/TestSuiteResultEntity.java | 2 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/jsp/show_suite_release.jsp | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java b/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java index 40c393b..82cafd7 100644 --- a/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java +++ b/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java @@ -150,7 +150,7 @@ public class TestSuiteResultEntity { } } - @Parent Key<TestSuiteFileEntity> testSuiteFileEntityKey; + @Parent @Getter Key<TestSuiteFileEntity> testSuiteFileEntityKey; /** Test Suite start time field */ @Id @Getter @Setter Long startTime; diff --git a/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp b/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp index 69b6c20..8604083 100644 --- a/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp +++ b/src/main/webapp/WEB-INF/jsp/show_suite_release.jsp @@ -103,6 +103,16 @@ } }); + $("#reproduceCommandButton").click(function() { + var el = document.getElementById("reproduceCommand"); + var range = document.createRange(); + range.selectNodeContents(el); + var sel = window.getSelection(); + sel.removeAllRanges(); + sel.addRange(range); + document.execCommand('copy'); + alert("Reproduce Command copied to clipboard."); + }); }); </script> <body> @@ -279,6 +289,17 @@ <c:out value="${testSuiteResultEntity.buildSystemFingerprint}"></c:out> </div> </div> + <div class="col test-col grey lighten-5 s12 left-most right-most"> + <h5 class="test-result-label white" style="text-transform: capitalize;"> + Reproduce Command + </h5> + <div class="test-case-container"> + <span id="reproduceCommand"> + reproduce --report_path=gs://vts-report/<c:out value="${testSuiteResultEntity.getTestSuiteFileEntityKey().getName()}"></c:out> + </span> + <a id="reproduceCommandButton" class="waves-effect waves-light btn right"><i class="material-icons left">content_copy</i>Copy</a> + </div> + </div> </div> </li> </c:forEach> |