def launch_service(self): logger.info("Starting unity-mock-indicator-service") binary_path = get_binary_path('unity-mock-indicator-service') binary_arg = 'BINARY={}'.format(binary_path) env_args = 'ARGS=-t {}'.format(self.action_delay) all_args = [binary_arg, env_args] process_helpers.start_job('unity-mock-indicator-service', *all_args)
def launch_application(self): binary_arg = 'BINARY={}'.format(self.binary_path) testability_arg = 'QT_LOAD_TESTABILITY={}'.format(1) env_args = [ '{}={}'.format(key, value) for key, value in self.variables.items() ] all_args = [binary_arg, testability_arg] + env_args pid = process_helpers.start_job('unity8-dash', *all_args) return introspection.get_proxy_object_for_existing_process( pid=pid, emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase )