• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright 2019 Google Inc. All Rights Reserved.
4 -->
5<configuration description="Config for Adservices integration test scenarios">
6    <option name="test-tag" value="AdServicesScenarioTests" />
7
8    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
9        <!-- N.B. DeviceSetup will root the device. -->
10        <option name="set-test-harness" value="true" />
11        <option name="set-property" key="fw.show_multiuserui" value="1" />
12        <option name="run-command"
13                value="pm grant android.platform.test.scenario android.permission.WRITE_SECURE_SETTINGS" />
14        <option name="run-command" value="am force-stop com.google.android.apps.nexuslauncher" />
15
16        <!-- Prevent the predeferred "wifi required" setupwizard notification which makes
17             notification tests flaky by taking up space at the top of the shade.
18             10 = USER_SETUP_PERSONALIZATION_COMPLETE -->
19        <option name="set-secure-setting" key="user_setup_personalization_state" value="10" />
20        <!-- Force-stop the setupwizard in case its already running and showing the notification -->
21        <option name="run-command" value="am force-stop com.google.android.setupwizard" />
22        <option name="run-command" value="settings put system pointer_location 1" />
23        <option name="run-command" value="settings put system show_touches 1" />
24    </target_preparer>
25
26    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
27        <option name="cleanup-apks" value="true"/>
28        <option name="test-file-name" value="AdServicesScenarioTests.apk"/>
29    </target_preparer>
30
31    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
32        <option name="run-command" value="am wait-for-broadcast-idle" />
33    </target_preparer>
34
35    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
36        <option name="directory-keys" value="/data/user/0/android.platform.test.scenario/files" />
37        <option name="collect-on-run-ended-only" value="true" />
38    </metrics_collector>
39
40    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
41        <option name="package" value="android.platform.test.scenario"/>
42        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
43        <option name="exclude-filter" value="android.platform.test.HawkeyeUnitTest" />
44    </test>
45</configuration>
46