summaryrefslogtreecommitdiff
path: root/Executing_scripts_remotely.mdwn
blob: 7d415045c1fcfc0fee1370500236e0fc2d175ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

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

Default port 4118

$ ldtp **-p 4118**

or 

$ ldtp **--port=4118**

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. 

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