diff options
-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> |