/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/ |
D | ota_runner_test.py | 69 runner = OtaRunnerImpl(tool, device) 70 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b']) 71 runner._update() 81 runner = OtaRunnerImpl(tool, device) 82 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'a']) 84 runner._update() 92 runner = ota_runner.OtaRunner(tool, device) 94 self.assertEqual(runner.ota_tool, tool) 95 self.assertEqual(runner.android_device, device) 96 self.assertEqual(runner.serial, device.serial) [all …]
|
/tools/tradefederation/core/atest/docs/ |
D | develop_test_runners.md | 3 Learn about test runners and how to create a new test runner class. 6 1. [Test Runner Details](#test-runner-details) 7 2. [Creating a Test Runner](#creating-a-test-runner) 9 ## <a name="test-runner-details">Test Runner Details</a> 11 The test runner class is responsible for test execution. Its primary logic 14 top-level args consumed by atest passed onto the test runner. It is up to the 15 test runner to translate those args into the specific args the test runner 16 accepts. In this way, you can think of the test runner as a translator between 17 the atest CLI and your test runner's CLI. The reason for this is so that atest 19 the differing CLIs of various test runners. The test runner should also [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | InstrumentationSerialTest.java | 70 InstrumentationTest runner = new InstrumentationTest(); in createInstrumentationTest() local 71 OptionCopier.copyOptions(instrumentationTest, runner); in createInstrumentationTest() 72 runner.setDevice(instrumentationTest.getDevice()); in createInstrumentationTest() 73 runner.setForceAbi(instrumentationTest.getForceAbi()); in createInstrumentationTest() 75 runner.setReRunUsingTestFile(false); in createInstrumentationTest() 77 runner.setRerunMode(false); in createInstrumentationTest() 78 return runner; in createInstrumentationTest() 92 InstrumentationTest runner = createInstrumentationTest(mInstrumentationTest); in run() local 93 runner.setClassName(testToRun.getClassName()); in run() 94 runner.setMethodName(testToRun.getTestName()); in run() [all …]
|
D | DeviceSuite.java | 29 import org.junit.runner.Runner; 30 import org.junit.runner.notification.RunNotifier; 108 protected void runChild(Runner runner, RunNotifier notifier) { in runChild() argument 110 if (runner instanceof JUnit38ClassRunner) { in runChild() 111 JUnit38ClassRunner junit3Runner = (JUnit38ClassRunner) runner; in runChild() 140 OptionSetter setter = new OptionSetter(runner); in runChild() 145 CLog.d("Could not set option set-option on '%s', reason: '%s'", runner, e.getMessage()); in runChild() 147 super.runChild(runner, notifier); in runChild()
|
D | AndroidJUnitTest.java | 33 import org.junit.runner.notification.RunListener; 276 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument 277 super.setRunnerArgs(runner); in setRunnerArgs() 281 runner.addInstrumentationArg(TEST_FILE_INST_ARGS_KEY, mDeviceIncludeFile); in setRunnerArgs() 286 runner.addInstrumentationArg(NOT_TEST_FILE_INST_ARGS_KEY, mDeviceExcludeFile); in setRunnerArgs() 309 runner.addInstrumentationArg(INCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs() 313 runner.addInstrumentationArg(EXCLUDE_CLASS_INST_ARGS_KEY, in setRunnerArgs() 317 runner.addInstrumentationArg(INCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs() 321 runner.addInstrumentationArg(EXCLUDE_PACKAGE_INST_ARGS_KEY, in setRunnerArgs() 325 runner.addInstrumentationArg(ANNOTATION_INST_ARGS_KEY, in setRunnerArgs() [all …]
|
D | InstrumentationTest.java | 625 RemoteAndroidTestRunner runner = in createRemoteAndroidTestRunner() local 639 runner.setRunOptions(runOptions); in createRemoteAndroidTestRunner() 642 runner.setEnforceTimeStamp(mShouldEnforceFormat); in createRemoteAndroidTestRunner() 643 return runner; in createRemoteAndroidTestRunner() 728 protected void setRunnerArgs(IRemoteAndroidTestRunner runner) { in setRunnerArgs() argument 731 runner.setMethodName(mTestClassName, mTestMethodName); in setRunnerArgs() 733 runner.setClassName(mTestClassName); in setRunnerArgs() 736 runner.setTestPackageName(mTestPackageName); in setRunnerArgs() 742 runner.setTestSize(TestSize.getTestSize(mTestSize)); in setRunnerArgs() 744 addTimeoutsToRunner(runner); in setRunnerArgs() [all …]
|
D | InstrumentationFileTest.java | 187 private void runTests(InstrumentationTest runner, ITestInvocationListener listener) in runTests() argument 191 runner.run(new ResultForwarder(listener, testTracker)); in runTests() 202 reRunTestsSerially(runner, listener); in runTests() 213 private void reRunTestsSerially(InstrumentationTest runner, ITestInvocationListener listener) in reRunTestsSerially() argument 216 runner.setTestFilePathOnDevice(null); in reRunTestsSerially() 218 runner.setReRunUsingTestFile(false); in reRunTestsSerially() 220 runner.setTestsToRun(mTests); in reRunTestsSerially() 221 runner.run(listener); in reRunTestsSerially()
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ |
D | ota_updater_test.py | 80 runner = MockOtaRunner() 81 runner.set_failure(True) 82 ota_updater.ota_runners = {device: runner} 88 runner = MockOtaRunner() 89 runner.set_failure(True) 90 ota_updater.ota_runners = {device: runner} 98 runner = MockOtaRunner() 99 ota_updater.ota_runners = {device: runner}
|
D | unittest_bundle.py | 29 runner = unittest.TextTestRunner() variable 30 test_run = runner.run(test_suite)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 52 import org.junit.runner.RunWith; 102 Boolean answer(IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver listener) in answer() argument 132 (runner, listener) -> { in testRun() 150 ArgumentCaptor<IRemoteAndroidTestRunner> runner = in testRun() local 152 inOrder.verify(mInstrumentationTest).setRunnerArgs(runner.capture()); in testRun() 154 .runInstrumentationTests(eq(runner.getValue()), any(ITestLifeCycleReceiver.class)); in testRun() 182 RemoteAndroidTestRunner runner = in testRun_hiddenApiCheck() local 185 assertThat(runner.getRunOptions()).contains("--no-hidden-api-checks"); in testRun_hiddenApiCheck() 192 FakeTestRunner runner = new FakeTestRunner("unused", "unused"); in testRun_class() local 195 mInstrumentationTest.setRunnerArgs(runner); in testRun_class() [all …]
|
D | InstrumentationFileTestTest.java | 99 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_singleSuccessfulTest() 159 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest() 178 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_reRunOneFailedToCompleteTest() 257 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests() 274 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests() 291 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_serialReRunOfTwoFailedToCompleteTests() 366 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_noSerialReRun() 434 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() 455 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() 476 IRemoteAndroidTestRunner runner, ITestRunListener listener) { in testRun_exceedMaxAttempts() [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 228 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner( in run() local 230 runner.addInstrumentationArg("softap_iterations", mApIteration); in run() 231 runner.addInstrumentationArg("scan_iterations", mScanIteration); in run() 232 runner.addInstrumentationArg("reconnect_iterations", mReconnectionIteration); in run() 233 runner.addInstrumentationArg("reconnect_ssid", mReconnectionSsid); in run() 234 runner.addInstrumentationArg("reconnect_password", mReconnectionPassword); in run() 235 runner.addInstrumentationArg("sleep_time", mIdleTime); in run() 237 runner.addInstrumentationArg("wifi-only", String.valueOf(mWifiOnly)); in run() 256 runner.setClassName(testCase.mTestClass); in run() 257 runner.setMethodName(testCase.mTestClass, testCase.mTestMethod); in run() [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | adb_sideload_ota_tool_test.py | 58 runner = ota_runner.SingleUseOtaRunner(tool, device, '', '') 59 runner.android_device.adb.getprop = mock.Mock(side_effect=['a', 'b']) 60 runner.update()
|
D | update_device_ota_tool_test.py | 54 runner = mock.Mock( 56 runner.return_value.android_device = device 58 tool.update(runner)
|
/tools/test/connectivity/tools/lab/ |
D | test_main.py | 24 runner = unittest.TextTestRunner() 27 ret = not runner.run(suite).wasSuccessful()
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner_factory.py | 159 runner = ota_runner.SingleUseOtaRunner(ota_tool, android_device, 162 runner = ota_runner.MultiUseOtaRunner(ota_tool, android_device, 168 _bound_devices[android_device] = runner 169 return runner
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | MediaMemoryTest.java | 110 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(TEST_PACKAGE_NAME, in run() local 112 runner.setClassName(TEST_CLASS_NAME); in run() 113 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in run() 115 runner.addInstrumentationArg("get_heap_dump", "true"); in run() 118 runner.addInstrumentationArg("get_procmem", "true"); in run() 128 runner.setMethodName(TEST_CLASS_NAME, testName); in run() 129 mTestDevice.runInstrumentationTests(runner, bugListener); in run() 132 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
|
D | CameraSettingsTest.java | 84 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(TEST_PACKAGE_NAME, in run() local 86 runner.setClassName(TEST_CLASS_NAME); in run() 89 runner.setMethodName(TEST_CLASS_NAME, mTestMethodName); in run() 91 runner.setMaxTimeToOutputResponse(MAX_TIME_OUT, TimeUnit.MILLISECONDS); in run() 96 Assert.assertTrue(mTestDevice.runInstrumentationTests(runner, bugListener)); in run()
|
D | VideoEditingMemoryTest.java | 106 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner( in run() local 108 runner.setClassName(TEST_CLASS_NAME); in run() 109 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in run() 111 runner.addInstrumentationArg("get_heap_dump", "getNativeHeap"); in run() 119 mTestDevice.runInstrumentationTests(runner, bugListener); in run()
|
/tools/test/connectivity/acts/framework/acts/bin/ |
D | act.py | 46 runner = _create_test_runner(parsed_config, test_identifiers) 49 runner.run() 50 return runner.results.is_all_pass 55 (runner.testbed_name, i)) 58 runner.stop()
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_unittest_suite.py | 53 runner = unittest.TextTestRunner() variable 54 results = runner.run(compile_suite())
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
D | AppTransitionTests.java | 274 RemoteAndroidTestRunner runner = new RemoteAndroidTestRunner( in createRemoteAndroidTestRunner() local 276 runner.setMethodName(CLASS_NAME, testName); in createRemoteAndroidTestRunner() 277 runner.addInstrumentationArg("launch_apps", launchApps); in createRemoteAndroidTestRunner() 278 runner.setMaxTimeout(mTestTimeout, TimeUnit.MILLISECONDS); in createRemoteAndroidTestRunner() 280 runner.addInstrumentationArg("pre_launch_apps", preLaunchApps); in createRemoteAndroidTestRunner() 282 runner.addInstrumentationArg("launch_iteration", Integer.toString(mLaunchIteration)); in createRemoteAndroidTestRunner() 284 runner.addInstrumentationArg(entry.getKey(), entry.getValue()); in createRemoteAndroidTestRunner() 288 runner.addInstrumentationArg("trace_directory", mTraceDirectory); in createRemoteAndroidTestRunner() 290 return runner; in createRemoteAndroidTestRunner() 299 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(mPackage, mRunnerName, in createTestRunner() local [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/ |
D | ImageProcessingTest.java | 75 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner( in run() local 77 runner.setClassName(TEST_CLASS); in run() 78 runner.setMaxTimeToOutputResponse(MAX_TEST_TIMEOUT, TimeUnit.MILLISECONDS); in run() 87 mTestDevice.runInstrumentationTests(runner, collectListener, bugListener, standardListener); in run()
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | DataIdleTest.java | 88 IRemoteAndroidTestRunner runner = new RemoteAndroidTestRunner(mTestPackageName, in run() local 92 runner.setClassName(mTestClassName); in run() 95 runner.setMethodName(mTestClassName, mTestMethodName); in run() 99 Assert.assertTrue(mTestDevice.runInstrumentationTests(runner, collectingListener)); in run()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | JUnit4ResultForwarder.java | 25 import org.junit.runner.Description; 26 import org.junit.runner.notification.Failure; 27 import org.junit.runner.notification.RunListener;
|