launch_click_package(package_id, app_name=None, app_uris=[], **kwargs)[source]
Launch a click package application with introspection enabled.
This method takes care of launching a click package with introspection exabled. You probably want to use this method if your application is packaged in a click application, or is started via upstart.
Usage is similar to the AutopilotTestCase.launch_test_application:
app_proxy = self.launch_click_package(
"com.ubuntu.dropping-letters"
)
Parameters:
package_id – The Click package name you want to launch. For example: com.ubuntu.dropping-letters
app_name – Currently, only one application can be packaged in a click package, and this parameter can be left at None. If specified, it should be the application name you wish to launch.
app_uris – Parameters used to launch the click package. This parameter will be left empty if not used.
emulator_base – If set, specifies the base class to be used for all emulators for this loaded application.
Raises:
RuntimeError – If the specified package_id cannot be found in the click package manifest.
RuntimeError – If the specified app_name cannot be found within the specified click package.
Returns:
proxy object for the launched package application