Command line tests
Precondition for all test is, that the D-Bus session is launched:
$export `dbus-launch`
---------------------------------------------------------------------------------------------------------------------
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.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:""