Archive for ldtp.myfastforum.org Linux Desktop Testing Project - http://ldtp.freedesktop.org
 



       ldtp.myfastforum.org Forum Index -> LDTP Test scripts (http://ldtp.freedesktop.org)
admin

Executing scripts remotely

In LDTP you can execute the test scripts from a remote location. Say, the ldtp execution engine can run on a remote test server and you can execute the test scripts from your development box.

Steps to follow:

Start LDTP engine (manually) in remote location with the following options

$ ldtp -s
or
$ ldtp --script-engine

Default port 23456

$ ldtp -s -p 12345
or
$ ldtp --script-engine --port=12345

from remote machine, in shell, you need to set LDTP_SERVER_ADDR with the remote server IP address or resolvable machine name (DNS entry).

export LDTP_SERVER_ADDR=xx.xx.xx.xx

If port number is changed in the ldtp server, then LDTP_SERVER_PORT environment variable has to be set

export LDTP_SERVER_PORT=12345

Now start executing the test scripts using ldtprunner or from a python prompt or from a shell.

* $ ldtprunner test.xml
* $ python testscript.py
* $ python
  >>> from ldtp import *
  >>> click ("*-gedit", "btnFind")

       ldtp.myfastforum.org Forum Index -> LDTP Test scripts (http://ldtp.freedesktop.org)
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum
Linux Desktop Testing Project - http://ldtp.freedesktop.org