Launcher3Tests.xml 2.6 KB

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