1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (c) 2022 Huawei Device Co., Ltd.
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 ver="2.0">
17    <target name="InputMethodSwitchTest">
18        <preparer>
19            <option name="push" value="extImfBundle/extImf.hap -> /data/test/resource/imf" src="res"/>
20            <option name="shell" value="bm install -r -p /data/test/resource/imf/extImf.hap"/>
21            <option name="push" value="newTestIme/newTestIme.hap -> /data/test/resource/imf" src="res"/>
22            <option name="shell" value="bm install -r -p /data/test/resource/imf/newTestIme.hap"/>
23        </preparer>
24        <cleaner>
25            <option name="shell" value="bm uninstall -n com.example.testIme"/>
26            <option name="shell" value="bm uninstall -n com.example.newTestIme"/>
27            <option name="shell" value="aa stop-service -a InputMethod -b com.ohos.inputmethodchoosedialog"/>
28        </cleaner>
29    </target>
30    <target name="InputMethodPanelTest">
31        <preparer>
32            <option name="shell" value="power-shell wakeup"/>
33            <option name="shell" value="power-shell setmode 602"/>
34            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
35            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
36            <option name="push" value="extImfBundle/extImf.hap -> /data/test/resource/imf" src="res"/>
37            <option name="shell" value="bm install -r -p /data/test/resource/imf/extImf.hap"/>
38        </preparer>
39        <cleaner>
40            <option name="shell" value="bm uninstall -n com.example.testIme"/>
41        </cleaner>
42    </target>
43    <target name="NewImeSwitchTest">
44        <preparer>
45            <option name="push" value="newTestIme/newTestIme.hap -> /data/test/resource/imf" src="res"/>
46            <option name="shell" value="bm install -r -p /data/test/resource/imf/newTestIme.hap"/>
47        </preparer>
48        <cleaner>
49            <option name="shell" value="bm uninstall -n com.example.newTestIme"/>
50        </cleaner>
51    </target>
52    <target name="GetInputMethodJsTest">
53        <preparer>
54            <option name="push" value="newTestIme/newTestIme.hap -> /data/test/resource/imf" src="res"/>
55            <option name="push" value="extImfBundle/extImf.hap -> /data/test/resource/imf" src="res"/>
56            <option name="shell" value="bm install -r -p /data/test/resource/imf/extImf.hap"/>
57            <option name="shell" value="bm install -r -p /data/test/resource/imf/newTestIme.hap"/>
58            <option name="shell" value="power-shell wakeup"/>
59            <option name="shell" value="power-shell setmode 602"/>
60            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
61            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
62            <option name="shell" value="aa start -a MainAbility -b com.example.testIme"/>
63        </preparer>
64        <cleaner>
65            <option name="shell" value="aa stop -a MainAbility -b com.example.testIme"/>
66            <option name="shell" value="bm uninstall -n com.example.newTestIme"/>
67            <option name="shell" value="bm uninstall -n com.example.testIme"/>
68        </cleaner>
69    </target>
70    <target name="InputMethodAbilityTest">
71        <preparer>
72            <option name="shell" value="power-shell wakeup"/>
73            <option name="shell" value="power-shell setmode 602"/>
74            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
75            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
76        </preparer>
77    </target>
78    <target name="InputMethodControllerTest">
79        <preparer>
80            <option name="shell" value="power-shell wakeup"/>
81            <option name="shell" value="power-shell setmode 602"/>
82            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
83            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
84        </preparer>
85    </target>
86    <target name="InputMethodDfxTest">
87        <preparer>
88            <option name="push" value="extImfBundle/extImf.hap -> /data/test/resource/imf" src="res"/>
89            <option name="shell" value="bm install -r -p /data/test/resource/imf/extImf.hap"/>
90            <option name="shell" value="power-shell wakeup"/>
91            <option name="shell" value="power-shell setmode 602"/>
92            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
93            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
94        </preparer>
95        <cleaner>
96            <option name="shell" value="bm uninstall -n com.example.testIme"/>
97        </cleaner>
98    </target>
99    <target name="InputMethodEditorTest">
100        <preparer>
101            <option name="shell" value="power-shell wakeup"/>
102            <option name="shell" value="power-shell setmode 602"/>
103            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
104            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
105        </preparer>
106    </target>
107    <target name="InputMethodServiceTest">
108        <preparer>
109            <option name="shell" value="power-shell wakeup"/>
110            <option name="shell" value="power-shell setmode 602"/>
111            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
112            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
113        </preparer>
114    </target>
115    <target name="ImeProxyTest">
116        <preparer>
117            <option name="shell" value="power-shell wakeup"/>
118            <option name="shell" value="power-shell setmode 602"/>
119            <option name="shell" value="uinput -T -m 300 720 300 360 200"/>
120            <option name="shell" value="uinput -T -m 650 2760 650 1380 200"/>
121            <option name="push" value="editorBox/editorBox.hap -> /data/test/resource/imf" src="res"/>
122            <option name="shell" value="bm install -r -p /data/test/resource/imf/editorBox.hap"/>
123            <option name="push" value="extImfBundle/extImf.hap -> /data/test/resource/imf" src="res"/>
124            <option name="shell" value="bm install -r -p /data/test/resource/imf/extImf.hap"/>
125        </preparer>
126        <cleaner>
127            <option name="shell" value="bm uninstall -n com.example.editorbox"/>
128            <option name="shell" value="bm uninstall -n com.example.testIme"/>
129        </cleaner>
130    </target>
131</configuration>