• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<!-- This test config file is auto-generated. -->
17<configuration description="Runs Launcher3 tests.">
18    <option name="test-suite-tag" value="apct" />
19    <option name="test-suite-tag" value="apct-instrumentation" />
20
21    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
22        <option name="set-test-harness" value="true" />
23        <option name="run-command" value="am force-stop com.android.launcher3" />
24        <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher" />
25        <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher.out_of_proc_tests" />
26        <option name="run-command" value="pm uninstall com.google.android.apps.nexuslauncher.tests" />
27        <option name="run-command" value="pm disable com.google.android.googlequicksearchbox" />
28
29        <option name="run-command" value="input keyevent 82" />
30        <option name="run-command" value="settings delete secure assistant" />
31        <option name="run-command" value="settings put global airplane_mode_on 1" />
32        <option name="run-command" value="am broadcast -a android.intent.action.AIRPLANE_MODE" />
33    </target_preparer>
34
35    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
36        <option name="cleanup-apks" value="true" />
37        <option name="test-file-name" value="Launcher3Tests.apk" />
38        <option name="test-file-name" value="Launcher3.apk" />
39    </target_preparer>
40
41    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
42        <option name="directory-keys" value="/data/user/0/com.android.launcher3/files" />
43        <option name="collect-on-run-ended-only" value="true" />
44    </metrics_collector>
45
46    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
47        <option name="package" value="com.android.launcher3.tests" />
48        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
49    </test>
50</configuration>
51