aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBocklage, Jens <Jens_Bocklage@mentor.com>2016-07-01 13:11:02 +0200
committerBocklage, Jens <Jens_Bocklage@mentor.com>2016-07-01 13:11:02 +0200
commit2513c5c6ed1c89ae3a0a6ae0263b9307d50046b2 (patch)
treea714f7bb3ef49f654668e1df9fce97490fd005ab
parentcf47f13164830e5b153db006cc55c3cf126d8d8c (diff)
Add some command line tests for HomeScreen app as example
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
-rw-r--r--HomeScreen/test/commandlinetests.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/HomeScreen/test/commandlinetests.txt b/HomeScreen/test/commandlinetests.txt
new file mode 100644
index 0000000..da6458e
--- /dev/null
+++ b/HomeScreen/test/commandlinetests.txt
@@ -0,0 +1,36 @@
+Command line tests
+
+Preconditions:
+- HomeScreen app is running
+
+[Test] Popup Interface
+[Command Line] dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST"
+[Expected Behavior] A popup is shown with the text "TEST" and an "OK" button
+---------------------------------------------------------------------------------------------------------------------
+[Test] Status Bar Interface
+[Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders
+[Expected Behavior] The list of available placeholders is returned:
+ array [
+ int32 1
+ int32 2
+ int32 3
+ int32 4
+ int32 5
+ ]
+
+[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"
+The value range for the int32 is 1 to 5.
+[Expected Behavior] The picture is shown in the status bar in the placeholder 1 (to 5)
+
+[Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1
+The value range for the int32 is 1 to 5.
+[Expected Behavior] The picture URI of placeholder 1 (to 5)
+
+[Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"hello"
+The value range for the int32 is 1 to 5.
+[Expected Behavior] The text "hello" is shown in the status bar in the placeholder 1 (to 5)
+
+[Command Line] dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1
+The value range for the int32 is 1 to 5.
+[Expected Behavior] The text of placeholder 1 (to 5)
+