aboutsummaryrefslogtreecommitdiffstats
path: root/squishtests
diff options
context:
space:
mode:
authorSven Kroemeke <skroemeke@luxoft.com>2019-03-06 12:52:06 +0100
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2019-03-07 15:03:02 +0000
commite772083fe217cbf3424e92565389c230a7caea5b (patch)
treef9e823f8e0877100b31e2055e14aac5d89ad4c31 /squishtests
parentaeb9c676cc228fab9ae4733614ea180d615bd23e (diff)
[squish] fix dbus/RemoteSettingsServer by allowing dbus session
After using the Squish option to ignore selected processes (see documentation), dbus and RemoteSettingsServer can now be started by the recommended (mostly simulation) option that starts all sub processes automatically: "--start-session-dbus". Change-Id: Ic123ccb38c7d8b4c4a295a69767c436d72088e1f Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'squishtests')
-rw-r--r--squishtests/suite_neptune3/shared/scripts/bdd_hooks.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/squishtests/suite_neptune3/shared/scripts/bdd_hooks.py b/squishtests/suite_neptune3/shared/scripts/bdd_hooks.py
index 64aa321f..ff0e0ccc 100644
--- a/squishtests/suite_neptune3/shared/scripts/bdd_hooks.py
+++ b/squishtests/suite_neptune3/shared/scripts/bdd_hooks.py
@@ -66,26 +66,19 @@ def start_neptune_ui_app_w_focus(window):
'dashboard' : dashboard view focused
"""
- test.log("Found dbus environment")
- test.log("DBUS_SESSION_BUS_ADDRESS with '"
- + os.environ.get('DBUS_SESSION_BUS_ADDRESS')
- + "'")
- test.log("DBUS_SESSION_BUS_PID now is '"
- + os.environ.get('DBUS_SESSION_BUS_PID')
- + "'")
-
- # DBUS MUST NOT be started from within neptune3ui otherwise
- # squish will not start correctly with the squish attach to subprocess
- # option.
-
# check forced single process:
# it can be used to start in single process though it would normally
# start in multi-process, this is just passing through of an option
# which is also defined in starting neptune3-ui executable
force_single_process = (os.environ.get('SINGLE_PROCESS') == '1')
- # build up starting command line
+ # !!! Remember to use ignoredauts.txt feature
+ # otherwise this will cause a lot of trouble,
+ # with dbus and RemoteSettingsServer !!!
+ # Read the documentation:
+ # https://doc.qt.io/Neptune3UI/neptune3ui-testing-squish.html#exclude-disruptive-sub-processes
command_line_options = ("-r"
+ + " --start-session-dbus"
+ " -c am-config-neptune.yaml"
+ " -c squish-appman-hook.yaml"
+ (" --force-single-process" if
@@ -199,6 +192,7 @@ def get_focus_window(window):
return found, obj
+# todo: move these to another file
def get_middle_of_object(obj):
try:
posx = obj.x