Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: build/android/pylib/remote/device/remote_device_uirobot_run.py

Issue 832493005: Add Instrumentation test support to remote device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/pylib/remote/device/remote_device_uirobot_run.py
diff --git a/build/android/pylib/remote/device/remote_device_uirobot_run.py b/build/android/pylib/remote/device/remote_device_uirobot_run.py
deleted file mode 100644
index 3aee3433077a95b7531a010b1175a02cbda3ada6..0000000000000000000000000000000000000000
--- a/build/android/pylib/remote/device/remote_device_uirobot_run.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Run specific test on specific environment."""
-
-import logging
-import os
-import sys
-
-from pylib import constants
-from pylib.base import base_test_result
-from pylib.remote.device import appurify_sanitized
-from pylib.remote.device import remote_device_test_run
-from pylib.remote.device import remote_device_helper
-
-
-class RemoteDeviceUirobotRun(remote_device_test_run.RemoteDeviceTestRun):
- """Run uirobot tests on a remote device."""
-
- DEFAULT_RUNNER_TYPE = 'android_robot'
-
- def __init__(self, env, test_instance):
- """Constructor.
-
- Args:
- env: Environment the tests will run in.
- test_instance: The test that will be run.
- """
- super(RemoteDeviceUirobotRun, self).__init__(env, test_instance)
-
- #override
- def TestPackage(self):
- return self._test_instance.package_name
-
- #override
- def _TriggerSetUp(self):
- """Set up the triggering of a test run."""
- logging.info('Triggering test run.')
- self._app_id = self._UploadAppToDevice(self._test_instance.apk_under_test)
- if not self._env.runner_type:
- runner_type = self.DEFAULT_RUNNER_TYPE
- logging.info('Using default runner type: %s', self.DEFAULT_RUNNER_TYPE)
- else:
- runner_type = self._env.runner_type
- self._test_id = self._GetTestByName(runner_type)
- config_body = {'duration': self._test_instance.minutes}
- self._SetTestConfig(runner_type, config_body)
-
- #override
- def _ParseTestResults(self):
- logging.info('Parsing results from remote service.')
- results = base_test_result.TestRunResults()
- if self._results['results']['pass']:
- result_type = base_test_result.ResultType.PASS
- else:
- result_type = base_test_result.ResultType.FAIL
- results.AddResult(base_test_result.BaseTestResult('uirobot', result_type))
- return results

Powered by Google App Engine
This is Rietveld 408576698