New layer management in WindowManager. Three layers are created. One for the HomeScre...
[staging/HomeScreen.git] / test / commandlinetests.txt
1 Command line tests
2
3 Precondition for all test is, that the D-Bus session is launched:
4 $export `dbus-launch`
5
6 ---------------------------------------------------------------------------------------------------------------------
7 Interface:
8 org.agl.appframework
9
10 Method:
11       <method name="getAvailableAppNames">
12         <arg name="names" type="as" direction="out"/>
13       </method>
14
15 Preconditions:
16 - HomeScreenAppFrameworkBinderTizen app is running
17
18 Test:
19 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreenappframeworkbindertizen /AppFramework org.agl.appframework.getAvailableAppNames
20
21 Method:
22       <method name="launchApp">
23         <arg name="name" type="s" direction="in"/>
24         <arg name="pid" type="i" direction="out"/>
25       </method>
26
27 Preconditions:
28 - HomeScreenAppFrameworkBinderTizen app is running
29
30 Test:
31 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreenappframeworkbindertizen /AppFramework org.agl.appframework.launchApp string:"org.tizen.amhelloworld"
32
33 ---------------------------------------------------------------------------------------------------------------------
34 Interface:
35 org.agl.daynightmode
36
37 Signal:
38     <signal name="dayNightMode">
39       <arg name="mode" type="i" direction="out"/>
40     </signal>
41
42 Preconditions:
43 - HomeScreen app is running
44
45 Test:
46 no command line test available right now
47
48 ---------------------------------------------------------------------------------------------------------------------
49 Interface:
50 org.agl.homescreen
51
52 Method:
53     <method name="hardKeyPressed">
54       <arg name="key" type="i" direction="in"/> <!-- using the inputevent.hpp InputEvent::HardKey type -->
55     </method>
56
57 Preconditions:
58 - HomeScreen app is running
59
60 Test:
61 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.hardKeyPressed int32:0
62
63 Method:
64     <method name="setToFullscreen">
65       <arg name="pid" type="i" direction="in"/>
66     </method>
67
68 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0
69
70 ---------------------------------------------------------------------------------------------------------------------
71 Interface:
72 org.agl.inputevent
73
74 Method:
75     <method name="hardKeyPressed">
76       <arg name="key" type="i" direction="in"/>
77     </method>
78
79 Preconditions:
80 - HomeScreen app is running
81 - InputEventManager app is running
82
83 Test:
84 $dbus-send --session --type=method_call --print-reply --dest=org.agl.inputeventmanager /InputEvent org.agl.inputevent.hardKeyPressed int32:0
85
86 ---------------------------------------------------------------------------------------------------------------------
87 Interface:
88 org.agl.popup
89
90 Method:
91     <method name="showPopup">
92       <arg name="type" type="i" direction="in"/>
93       <arg name="text" type="s" direction="in"/>
94     </method>
95
96 Preconditions:
97 - HomeScreen app is running
98
99 Test:
100 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
101
102 Method:
103     <method name="showPopupComboBox">
104       <arg name="text" type="s" direction="in"/>
105       <arg name="choices" type="as" direction="in"/>
106     </method>
107
108 Preconditions:
109 - HomeScreen app is running
110
111 Test:
112 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopupComboBox string:"TEST" array:string:"test1","test2"
113
114 ---------------------------------------------------------------------------------------------------------------------
115 Interface:
116 org.agl.proximity
117
118 Method:
119     <method name="setObjectDetected">
120       <arg name="detected" type="b" direction="in"/>
121     </method>
122
123 Preconditions:
124 - HomeScreen app is running
125
126 Test:
127 $dbus-send --session --type=method_call --dest=org.agl.homescreen /Proximity org.agl.proximity.setObjectDetected boolean:true
128
129 ---------------------------------------------------------------------------------------------------------------------
130 Interface:
131 org.agl.statusbar
132
133 Method:
134       <method name="getAvailablePlaceholders">
135         <arg name="placeholderIndexes" type="ai" direction="out"/>
136         <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
137       </method>
138
139 Preconditions:
140 - HomeScreen app is running
141
142 Test:
143 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
144
145 Method:
146       <method name="getStatusText">
147         <arg name="placeholderIndex" type="i" direction="in"/>
148         <arg name="text" type="s" direction="out"/>
149       </method>
150
151 Preconditions:
152 - HomeScreen app is running
153
154 Test:
155 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1
156
157 Method:
158       <method name="getStatusIcon">
159         <arg name="placeholderIndex" type="i" direction="in"/>
160         <arg name="iconURI" type="s" direction="out"/>
161       </method>
162
163 Preconditions:
164 - HomeScreen app is running
165
166 Test:
167 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1
168
169 Method:
170       <method name="setStatusText">
171         <arg name="placeholderIndex" type="i" direction="in"/>
172         <arg name="text" type="s" direction="in"/>
173       </method>
174
175 Preconditions:
176 - HomeScreen app is running
177
178 Test:
179 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"Test1"
180
181 Method:
182       <method name="setStatusIcon">
183         <arg name="placeholderIndex" type="i" direction="in"/>
184         <arg name="iconURI" type="s" direction="in"/>
185       </method>
186
187 Preconditions:
188 - HomeScreen app is running
189
190 Test:
191 $dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusIcon int32:1 string:"<path to png file here>"
192
193 ---------------------------------------------------------------------------------------------------------------------
194 Interface:
195 org.agl.windowmanager
196
197
198 dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.GetAll string:"org.agl.windowmanager"
199
200 dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.Get string:"org.agl.windowmanager" string:"homeScreenPid"
201
202 dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.Set string:"org.agl.windowmanager" string:"homeScreenPid" variant:int32:1
203
204
205 Method:
206       <method name="addLayout">
207         <arg name="layoutId" type="i" direction="in"/>
208         <arg name="layoutName" type="s" direction="in"/>
209         <arg name="surfaceAreas" type="a(iiii)" direction="in"/>
210         <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;SimpleRect&gt;"/>
211         <arg name="error" type="i" direction="out"/>
212       </method>
213
214 Preconditions:
215 - WindowManager app is running
216
217 Test:
218 it is not possible to send isa(iiii) via the dbus-send tool.
219
220 Method:
221       <method name="getAvailableLayouts">
222         <arg name="numberOfAppSurfaces" type="i" direction="in"/>
223         <arg name="layoutIds" type="ai" direction="out"/>
224         <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
225       </method>
226
227 Preconditions:
228 - HomeScreen app is running
229 - WindowManager app is running
230
231 Test:
232 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableLayouts int32:1
233
234
235
236 Method:
237       <method name="setLayoutById">
238         <arg name="layoutId" type="i" direction="in"/>
239       </method>
240 Preconditions:
241 - HomeScreen app is running
242 - WindowManager app is running
243
244 Test:
245 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setLayoutById int32:1
246
247 Method:
248       <method name="setLayoutByName">
249         <arg name="layoutName" type="s" direction="in"/>
250       </method>
251
252 Preconditions:
253 - HomeScreen app is running
254 - WindowManager app is running
255
256 Test:
257 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setLayoutByName string:"name"
258
259 Method:
260       <method name="getLayout">
261         <arg name="layoutId" type="i" direction="out"/>
262       </method>
263
264 Preconditions:
265 - HomeScreen app is running
266 - WindowManager app is running
267
268 Test:
269 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayout
270
271 Method:
272       <method name="setPidToLayoutArea">
273         <arg name="pid" type="i" direction="in"/>
274         <arg name="layoutAreaId" type="i" direction="in"/>
275       </method>
276
277 Preconditions:
278 - HomeScreen app is running
279 - WindowManager app is running
280
281 Test:
282 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setPidToLayoutArea int32:1123 int32:1
283
284 Method:
285       <method name="getAvailableSurfaces">
286         <arg name="surfacesAndPids" type="a(ii)" direction="out"/>
287         <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;SimplePoint&gt;"/>
288       </method>
289
290 Preconditions:
291 - HomeScreen app is running
292 - WindowManager app is running
293
294 Test:
295 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableSurfaces
296
297 Method:
298       <method name="getLayoutName">
299         <arg name="layoutId" type="i" direction="in"/>
300         <arg name="layoutName" type="s" direction="out"/>
301       </method>
302
303 Preconditions:
304 - HomeScreen app is running
305 - WindowManager app is running
306
307 Test:
308 $dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayoutName int32:1
309