Add some command line tests for HomeScreen app as example
[staging/HomeScreen.git] / HomeScreen / test / commandlinetests.txt
1 Command line tests
2
3 Preconditions:
4 - HomeScreen app is running
5
6 [Test] Popup Interface
7 [Command Line] dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
8 [Expected Behavior] A popup is shown with the text "TEST" and an "OK" button
9 ---------------------------------------------------------------------------------------------------------------------
10 [Test] Status Bar Interface
11 [Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
12 [Expected Behavior] The list of available placeholders is returned:
13    array [
14       int32 1
15       int32 2
16       int32 3
17       int32 4
18       int32 5
19    ]
20
21 [Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusIcon int32:1 string:"/home/...PUT_YOUR_TEST_PNG_HERE....png"
22 The value range for the int32 is 1 to 5.
23 [Expected Behavior] The picture is shown in the status bar in the placeholder 1 (to 5)
24
25 [Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1 
26 The value range for the int32 is 1 to 5.
27 [Expected Behavior] The picture URI of placeholder 1 (to 5)
28
29 [Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"hello"
30 The value range for the int32 is 1 to 5.
31 [Expected Behavior] The text "hello" is shown in the status bar in the placeholder 1 (to 5)
32
33 [Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1 
34 The value range for the int32 is 1 to 5.
35 [Expected Behavior] The text of placeholder 1 (to 5)
36