OSDN Git Service

Use TotalTime instead of ThisTime in app launch test
authorgopinath <gelanchezhian@google.com>
Fri, 2 Jun 2017 00:28:36 +0000 (17:28 -0700)
committerGopinath Elanchezhian <gelanchezhian@google.com>
Wed, 14 Jun 2017 04:33:21 +0000 (04:33 +0000)
Bug: 62272543

Test: Tested with calculator and facebook messenger launch

Change-Id: Ide4e844e54428edcb7e3356cb3d0492392f6bde3
(cherry picked from commit fb9272c637f4b657d40057145e4dbce989005e67)

tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java

index 272653f..4d2f97f 100644 (file)
@@ -664,7 +664,8 @@ public class AppLaunch extends InstrumentationTestCase {
                     if (lineCount == 2 && line.contains(SUCCESS_MESSAGE)) {
                         launchSuccess = true;
                     }
-                    if (launchSuccess && lineCount == 4) {
+                    // Parse TotalTime which is the launch time
+                    if (launchSuccess && lineCount == 5) {
                         String launchSplit[] = line.split(":");
                         launchTime = launchSplit[1].trim();
                     }