From 374ad482811eb1ee0eb0db49a23ab12318010c46 Mon Sep 17 00:00:00 2001 From: "Bocklage, Jens" Date: Fri, 7 Oct 2016 12:02:01 +0200 Subject: [PATCH] Add new command line test descriptions for the provided D-Bus interfaces. Signed-off-by: Bocklage, Jens --- HomeScreen/test/commandlinetests.txt | 36 ----- test/commandlinetests.txt | 301 +++++++++++++++++++++++++++++++++++ 2 files changed, 301 insertions(+), 36 deletions(-) delete mode 100644 HomeScreen/test/commandlinetests.txt create mode 100644 test/commandlinetests.txt diff --git a/HomeScreen/test/commandlinetests.txt b/HomeScreen/test/commandlinetests.txt deleted file mode 100644 index da6458e..0000000 --- a/HomeScreen/test/commandlinetests.txt +++ /dev/null @@ -1,36 +0,0 @@ -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) - diff --git a/test/commandlinetests.txt b/test/commandlinetests.txt new file mode 100644 index 0000000..ff2bf7b --- /dev/null +++ b/test/commandlinetests.txt @@ -0,0 +1,301 @@ +Command line tests + +Precondition for all test is, that the D-Bus session is launched: +$export `dbus-launch` + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.appframework + +Method: + + + + +Preconditions: +- HomeScreenAppFrameworkBinderTizen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreenappframeworkbindertizen /AppFramework org.agl.appframework.getAvailableAppNames + +Method: + + + + + +Preconditions: +- HomeScreenAppFrameworkBinderTizen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreenappframeworkbindertizen /AppFramework org.agl.appframework.launchApp string:"org.tizen.amhelloworld" + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.daynightmode + +Signal: + + + + +Preconditions: +- HomeScreen app is running + +Test: +no command line test available right now + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.homescreen + +Method: + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.hardKeyPressed int32:0 + +Method: + + + + +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0 + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.inputevent + +Method: + + + + +Preconditions: +- HomeScreen app is running +- InputEventManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.inputeventmanager /InputEvent org.agl.inputevent.hardKeyPressed int32:0 + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.popup + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopup int32:1 string:"TEST" + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --dest=org.agl.homescreen /Popup org.agl.popup.showPopupComboBox string:"TEST" array:string:"test1","test2" + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.proximity + +Method: + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --dest=org.agl.homescreen /Proximity org.agl.proximity.setObjectDetected boolean:true + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.statusbar + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getAvailablePlaceholders + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusText int32:1 + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.getStatusIcon int32:1 + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusText int32:1 string:"Test1" + +Method: + + + + + +Preconditions: +- HomeScreen app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /StatusBar org.agl.statusbar.setStatusIcon int32:1 string:"" + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.windowmanager + +Method: + + + + + + + + +Preconditions: +- WindowManager app is running + +Test: +it is not possible to send isa(iiii) via the dbus-send tool. + +Method: + + + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableLayouts int32:1 + + + +Method: + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableLayouts int32:1 + +Method: + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setLayoutByName string:"name" + +Method: + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayout + +Method: + + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.setSurfaceToLayoutArea int32:1123 int32:1 + +Method: + + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getAvailableSurfaces + +Method: + + + + + +Preconditions: +- HomeScreen app is running +- WindowManager app is running + +Test: +$dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.agl.windowmanager.getLayoutName int32:1 + -- 2.16.6