1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 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<configuration description="Config for AutoFill Framework CTS tests."> 17 <option name="test-suite-tag" value="cts" /> 18 <option name="config-descriptor:metadata" key="component" value="autofill" /> 19 <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> 20 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> 21 <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> 22 23 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 24 <option name="cleanup-apks" value="true" /> 25 <option name="test-file-name" value="CtsAutoFillServiceTestCases.apk" /> 26 </target_preparer> 27 28 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 29 <option name="cleanup-apks" value="true" /> 30 <!-- 31 MockIME always needs to be installed as a full package, even when CTS is running 32 for instant apps. 33 --> 34 <option name="force-install-mode" value="FULL"/> 35 <option name="test-file-name" value="CtsMockInputMethod.apk" /> 36 </target_preparer> 37 38 <!-- TODO: preparer below should be enabled only when running as cts-instant --> 39 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 40 <option name="run-command" value="cmd autofill set bind-instant-service-allowed true" /> 41 <option name="teardown-command" value="cmd autofill set bind-instant-service-allowed false" /> 42 </target_preparer> 43 44 <test class="com.android.tradefed.testtype.AndroidJUnitTest"> 45 <option name="package" value="android.autofillservice.cts" /> 46 <!-- 20x default timeout of 600sec --> 47 <option name="shell-timeout" value="12000000"/> 48 <option name="isolated-storage" value="false" /> 49 </test> 50 51 <!-- Collect the files generated on error --> 52 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 53 <option name="directory-keys" value="/sdcard/CtsAutoFillServiceTestCases" /> 54 <option name="collect-on-run-ended-only" value="true" /> 55 <option name="clean-up" value="false" /> 56 </metrics_collector> 57 <!-- Automotive tests run on user 10 --> 58 <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> 59 <option name="directory-keys" value="/storage/emulated/10/CtsAutoFillServiceTestCases" /> 60 <option name="collect-on-run-ended-only" value="true" /> 61 <option name="clean-up" value="false" /> 62 </metrics_collector> 63</configuration> 64