launchapp

Syntax

launchapp ('<application binary name>'[, argument] [,use additional environment variables for accessibility])

second and third arguments are optional. environment default argument is 1. So the GTK_MODULES and GNOME_ACCESSIBILITY will be set and added to the enivronment variable. Currently the second argument is applicable only when the test is run in local environment.

Second argument is a list, if executed from local session and the same argument is used as sleep time for remote session, but as a single integer value.

NOTE: Incase of remote session, the command line arguments should be part of application name

Description

Application name specified as an argument will be launched.

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/python/ldtp.py

Example

Launch file-roller application.

from ldtp import *

launchapp ('file-roller')

launchapp ('gaim', env = 1) # Invoke the application after setting environment variables

launchapp ('file-roller', ['/home/ldtp/test.tar.gz'], env = 0) # Invoke the application with optional command line argument

Author:
Nagappan Alagappan <nagappan@gmail.com>
Shankar Ganesh <shagan.glare@gmail.com>


Linux Desktop Testing Project