LDTP
2.3.1
|
launchapp('<application binary name>'[, argument] [,delay = 5][, env = 1])
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.
Delay is wait time(in seconds) after launching the application
NOTE: Incase of remote session, the command line arguments should be part of application name
Application name specified as an argument will be launched.
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/python/ldtp.py
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