summaryrefslogtreecommitdiff
path: root/src/main/webapp
diff options
context:
space:
mode:
authorYoung Gyu Park <younggyu@google.com>2018-06-27 11:37:09 +0900
committerYoung Gyu Park <younggyu@google.com>2018-06-27 11:37:09 +0900
commitd747ca6e4b4f1e59c0e098dd33669a36f28ce00b (patch)
treed2664f5bbdbdcb6139ae8576d5fe6ae618214ac4 /src/main/webapp
parentd3a6799bad12fb3a3986c6ce61288224b8cb413d (diff)
downloaddashboard-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/main/webapp')
-rw-r--r--src/main/webapp/WEB-INF/jsp/show_suite_release.jsp21
1 files changed, 21 insertions, 0 deletions
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>