admin Site Admin
Joined: 01 Jan 2008 Posts: 2 Location: Mountain View
|
Posted: Wed Jan 02, 2008 10:54 pm Post subject: 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")
|
|