diff options
author | Stas Negara <snegara@google.com> | 2015-05-04 14:22:05 -0700 |
---|---|---|
committer | Stas Negara <snegara@google.com> | 2015-05-05 15:55:32 -0700 |
commit | 2779b74ebec700ac6da26143d1b3c8a09c1bbe12 (patch) | |
tree | 10cc679269d0bbb84d2b9d859e105435bb8fb9ce | |
parent | d15ea558d770bd733f2b9b8431199f5ef862bafa (diff) | |
download | testing-2779b74ebec700ac6da26143d1b3c8a09c1bbe12.tar.gz |
Add a link to see test execution results on the web.
Change-Id: I9f9605e1f78f088d7ca992af83aa35ef4f68d0fe
-rw-r--r-- | src/com/google/gct/testing/CloudConfigurationProviderImpl.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/google/gct/testing/CloudConfigurationProviderImpl.java b/src/com/google/gct/testing/CloudConfigurationProviderImpl.java index c935e53..f2992f5 100644 --- a/src/com/google/gct/testing/CloudConfigurationProviderImpl.java +++ b/src/com/google/gct/testing/CloudConfigurationProviderImpl.java @@ -27,6 +27,7 @@ import com.google.api.services.storage.Storage; import com.google.api.services.storage.model.Buckets; import com.google.api.services.testing.model.AndroidDevice; import com.google.api.services.testing.model.Device; +import com.google.api.services.testing.model.ResultStorage; import com.google.api.services.testing.model.TestMatrix; import com.google.common.base.Function; import com.google.common.base.Predicate; @@ -522,6 +523,9 @@ public class CloudConfigurationProviderImpl extends CloudConfigurationProvider { cloudTestingConfiguration, appPackage, testPackage); if (testMatrix != null) { + runningState.getProcessHandler().notifyTextAvailable( + "You can also view test results, along with other runs against this app, on the web:\n" + + getTuxLink(cloudProjectId, testMatrix.getResultStorage()) + " \n\n\n", ProcessOutputTypes.STDOUT); matrixExecutionCancellator.setCloudProjectId(cloudProjectId); matrixExecutionCancellator.setTestMatrixId(testMatrix.getTestMatrixId()); String testRunId = TEST_RUN_ID_PREFIX + bucketName; @@ -543,6 +547,12 @@ public class CloudConfigurationProviderImpl extends CloudConfigurationProvider { } } + private static String getTuxLink(String cloudProjectId, ResultStorage resultStorage) { + return "https://pantheon.corp.google.com/project/" + cloudProjectId + + "/clouddev/toolresults/histories/" + resultStorage.getToolResultsHistoryId() + + "/executions/" + resultStorage.getToolResultsExecutionId(); + } + private String listAllApks(List<String> apkPaths) { List<String> allApks = new ArrayList<String>(); for (String apkPath : apkPaths) { |