From 836fb6b6ed134ace5b093b31e9b25e0668d8a845 Mon Sep 17 00:00:00 2001 From: "Bocklage, Jens" Date: Wed, 18 Jan 2017 15:30:43 +0100 Subject: Initial source commit Taken from https://gerrit.automotivelinux.org/gerrit/p/staging/HomeScreen.git Signed-off-by: Bocklage, Jens --- test/commandlinetests.txt | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 test/commandlinetests.txt (limited to 'test') diff --git a/test/commandlinetests.txt b/test/commandlinetests.txt new file mode 100644 index 0000000..4571802 --- /dev/null +++ b/test/commandlinetests.txt @@ -0,0 +1,122 @@ +Command line tests + +Precondition for all test is, that the D-Bus session is launched: +$export `dbus-launch` + +--------------------------------------------------------------------------------------------------------------------- +Interface: +org.agl.windowmanager + + +dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.GetAll string:"org.agl.windowmanager" + +dbus-send --session --type=method_call --print-reply --dest=org.agl.windowmanager /windowmanager org.freedesktop.DBus.Properties.Get string:"org.agl.windowmanager" string:"homeScreenPid" + +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 + + +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.setLayoutById 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.setPidToLayoutArea 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 + -- cgit 1.2.3-korg