summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-09-29 21:00:25 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-02 17:07:46 +0900
commit381755e4686a08e766316aaf40e8fdfa202d48d4 (patch)
tree52cdc8421fec6f467f35489c04336c4e69a72727 /test
parentd32141ad4cdff0c53194b90c54dc92324cd0c31c (diff)
Add homescreen-2017eel_4.99.1eel/4.99.14.99.1
Add new homescreen-2017 with agl-service-windowmanaeger-2017 and agl-service-homescreen-2017. About this information see JIRA SPEC-871. [PatchSet2] Use aglwgt make package. Delete homescreensimulator and sampleapptimedate beacuse not use them. Change-Id: I402134d0386e76b2127ca95b9b0b48c1721b4086 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'test')
-rw-r--r--test/commandlinetests.txt150
1 files changed, 150 insertions, 0 deletions
diff --git a/test/commandlinetests.txt b/test/commandlinetests.txt
new file mode 100644
index 0000000..428b1ca
--- /dev/null
+++ b/test/commandlinetests.txt
@@ -0,0 +1,150 @@
+Command line tests
+
+Precondition for all test is, that the D-Bus session is launched:
+$export `dbus-launch`
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.daynightmode
+
+Signal:
+ <signal name="dayNightMode">
+ <arg name="mode" type="i" direction="out"/>
+ </signal>
+
+Preconditions:
+- HomeScreen app is running
+
+Test:
+no command line test available right now
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.homescreen
+
+Method:
+ <method name="hardKeyPressed">
+ <arg name="key" type="i" direction="in"/> <!-- using the inputevent.hpp InputEvent::HardKey type -->
+ </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:
+ <method name="setToFullscreen">
+ <arg name="pid" type="i" direction="in"/>
+ </method>
+
+$dbus-send --session --type=method_call --print-reply --dest=org.agl.homescreen /HomeScreen org.agl.homescreen.setToFullscreen int32:0
+
+---------------------------------------------------------------------------------------------------------------------
+Interface:
+org.agl.popup
+
+Method:
+ <method name="showPopup">
+ <arg name="type" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </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:
+ <method name="showPopupComboBox">
+ <arg name="text" type="s" direction="in"/>
+ <arg name="choices" type="as" direction="in"/>
+ </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:
+ <method name="setObjectDetected">
+ <arg name="detected" type="b" direction="in"/>
+ </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:
+ <method name="getAvailablePlaceholders">
+ <arg name="placeholderIndexes" type="ai" direction="out"/>
+ <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+ </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:
+ <method name="getStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="out"/>
+ </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:
+ <method name="getStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="out"/>
+ </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:
+ <method name="setStatusText">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="text" type="s" direction="in"/>
+ </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:
+ <method name="setStatusIcon">
+ <arg name="placeholderIndex" type="i" direction="in"/>
+ <arg name="iconURI" type="s" direction="in"/>
+ </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:"<path to png file here>"
+
+