21 from autopilot
import introspection
23 from unity8
import process_helpers
29 """Fixture to launch the Dash app."""
32 """Initialize an instance.
34 :param str binary_path: The path to the Dash app binary.
35 :param variables: The variables to use when launching the app.
36 :type variables: A dictionary.
39 super(LaunchDashApp, self).
__init__()
44 """Launch the dash app when the fixture is used."""
45 super(LaunchDashApp, self).
setUp()
49 def launch_application(self):
51 testability_arg =
'QT_LOAD_TESTABILITY={}'.format(1)
53 '{}={}'.format(key, value)
for key, value
in self.variables.items()
55 all_args = [binary_arg, testability_arg] + env_args
57 pid = process_helpers.start_job(
'unity8-dash', *all_args)
58 return introspection.get_proxy_object_for_existing_process(
60 emulator_base=emulators.UnityEmulatorBase,
63 def stop_application(self):
64 process_helpers.stop_job(
'unity8-dash')