summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorYoung Gyu Park <younggyu@google.com>2018-03-29 11:17:12 +0900
committerYoung Gyu Park <younggyu@google.com>2018-03-29 15:29:37 +0900
commit2f5fdd36c8da99d4b45a9b95e4fa6ed1e0018192 (patch)
treed5624db0c2a265b115fef092a91ba1bf701e2309 /src/main
parentc9542478819193e4d511e52cfac5c0a53e4711fd (diff)
downloaddashboard-2f5fdd36c8da99d4b45a9b95e4fa6ed1e0018192.tar.gz
Adding percentile field to find candidate build ID.
Test: mma Bug: 76448184 Change-Id: I5308602983af6e522abf796f422769799b3b79a9
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/android/vts/entity/TestSuiteResultEntity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java b/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java
index 9b36c2e..9f0e9be 100644
--- a/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java
+++ b/src/main/java/com/android/vts/entity/TestSuiteResultEntity.java
@@ -79,6 +79,9 @@ public class TestSuiteResultEntity {
/** Test Suite test count for failure field */
@Index @Getter @Setter int failedTestCaseCount;
+ /** Test Suite ratio of success to find candidate build */
+ @Index @Getter @Setter int passedTestCaseRatio;
+
/** When this record was created or updated */
@Index @Getter Date updated;
@@ -112,6 +115,8 @@ public class TestSuiteResultEntity {
this.buildVendorFingerprint = buildVendorFingerprint;
this.passedTestCaseCount = passedTestCaseCount;
this.failedTestCaseCount = failedTestCaseCount;
+ this.passedTestCaseRatio =
+ passedTestCaseCount / (passedTestCaseCount + failedTestCaseCount) * 100;
}
/** Saving function for the instance of this class */