diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-01 06:39:19 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-01 06:39:19 +0000 |
commit | 5d0acdd148117cf5609bf3055ff1aba58da97342 (patch) | |
tree | 033dc92ba1dfd9d3f438e4ee99f4897a4ac0644f /test_targets/webview-app-crawl | |
parent | f175909a38c3bddf9a6c900dad54d476d85c2f36 (diff) | |
parent | 7fcc2d545a01a3ccf2e1d268f8e161de051b6729 (diff) | |
download | csuite-5d0acdd148117cf5609bf3055ff1aba58da97342.tar.gz |
Snap for 9867821 from 7fcc2d545a01a3ccf2e1d268f8e161de051b6729 to udc-releaseandroid-vts-14.0_r4android-vts-14.0_r3android-vts-14.0_r2android-vts-14.0_r1android-security-14.0.0_r9android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-security-14.0.0_r10android-security-14.0.0_r1android-platform-14.0.0_r8android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android-platform-14.0.0_r3android-platform-14.0.0_r2android-platform-14.0.0_r1android-cts-14.0_r4android-cts-14.0_r3android-cts-14.0_r2android-cts-14.0_r1android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-tests-releaseandroid14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-releaseandroid14-platform-release
Change-Id: I642e28ad6940d0469658069a3bceb2f69880ad7c
Diffstat (limited to 'test_targets/webview-app-crawl')
-rw-r--r-- | test_targets/webview-app-crawl/Android.bp | 23 | ||||
-rw-r--r-- | test_targets/webview-app-crawl/OWNERS | 2 | ||||
-rw-r--r-- | test_targets/webview-app-crawl/plan.xml | 19 | ||||
-rw-r--r-- | test_targets/webview-app-crawl/ui-automator-mode.xml | 31 |
4 files changed, 75 insertions, 0 deletions
diff --git a/test_targets/webview-app-crawl/Android.bp b/test_targets/webview-app-crawl/Android.bp new file mode 100644 index 0000000..57d4192 --- /dev/null +++ b/test_targets/webview-app-crawl/Android.bp @@ -0,0 +1,23 @@ +// Copyright (C) 2023 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +csuite_test { + name: "webview-app-crawl", + test_plan_include: "plan.xml", + test_config_template: "ui-automator-mode.xml", +} diff --git a/test_targets/webview-app-crawl/OWNERS b/test_targets/webview-app-crawl/OWNERS new file mode 100644 index 0000000..af3a7c8 --- /dev/null +++ b/test_targets/webview-app-crawl/OWNERS @@ -0,0 +1,2 @@ +amitku@google.com +rmhasan@google.com
\ No newline at end of file diff --git a/test_targets/webview-app-crawl/plan.xml b/test_targets/webview-app-crawl/plan.xml new file mode 100644 index 0000000..83c3e05 --- /dev/null +++ b/test_targets/webview-app-crawl/plan.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2023 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<configuration description="WebView C-Suite Crawler Test Plan"> + <target_preparer class="com.android.webview.tests.WebviewInstallerToolPreparer"/> + <target_preparer class="com.android.csuite.core.AppCrawlTesterHostPreparer"/> +</configuration> diff --git a/test_targets/webview-app-crawl/ui-automator-mode.xml b/test_targets/webview-app-crawl/ui-automator-mode.xml new file mode 100644 index 0000000..ec44190 --- /dev/null +++ b/test_targets/webview-app-crawl/ui-automator-mode.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2023 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<configuration description="Crawl's an app after installing WebView"> + <target_preparer class="com.android.compatibility.targetprep.CheckGmsPreparer"/> + <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller" /> + <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> + <option name="run-command" value="input keyevent KEYCODE_WAKEUP"/> + <option name="run-command" value="input keyevent KEYCODE_MENU"/> + <option name="run-command" value="input keyevent KEYCODE_HOME"/> + </target_preparer> + <test class="com.android.tradefed.testtype.HostTest" > + <option name="set-option" value="package-name:{package}"/> + <option name="set-option" value="install-apk:app\://{package}"/> + <option name="set-option" value="ui-automator-mode:true"/> + <option name="set-option" value="install-arg:-g"/> + <option name="class" value="com.android.webview.tests.WebviewAppCrawlTest" /> + </test> +</configuration> |