From 9326f2227cfc7595d52a6a48fb1831f1085961e7 Mon Sep 17 00:00:00 2001 From: gopinath Date: Thu, 1 Jun 2017 17:28:36 -0700 Subject: [PATCH] Use TotalTime instead of ThisTime in app launch test 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java b/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java index 272653f7fc663..4d2f97f2a5fcd 100644 --- a/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java +++ b/tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java @@ -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(); }