summaryrefslogtreecommitdiff
path: root/README
blob: 4087519189565225295f67b8ada1a2c86e7a04b9 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Mandatory requirements

  - GNOME Version - min 2.10
  - Accessibility should be enabled

Install the following development packages

  - at-spi
  - gail
  - libgail (or libgail-gnome based on your distribution)
  - python
  - gettext (optional)
  - libxml2

Optional dependency packages

  - Python Imaging Library (http://www.pythonware.com/products/pil/) to compare two images
  - Pystatgrab (http://www.i-scream.org/pystatgrab/) to moitor memory and CPU utilization

Setting up LDTP from source in Linux environment

  - check out source from with the following command: 'git clone git://anongit.freedesktop.org/git/ldtp/ldtp.git'
  - When prompted for password enter
  - change to the source directory with the following command: 'cd ldtp'
  - build with './autogen.sh --prefix=/usr; make'. Assuming that all the above mentioned packages are installed
  - setup with 'make install' as the root user

  Note: If your GNOME version is less than or equal to 2.14, then use './autogen.sh --enable-newroles=no --prefix=/usr;make'

LDTP works in the following platforms:

  - http://www.opensuse.org/ OpenSuSE
  - http://opensolaris.org/ OpenSolaris
  - http://ubuntu.com/ Ubuntu
  - http://www.debian.org/ Debian GNU/Linux
  - http://fedora.redhat.com/ Fedora Core
  - http://www.freebsd.org/ FreeBSD

How to write test scripts using ldtp for your module ?

  - How to create LDTP test scripts in python - http://ldtp.freedesktop.org/wiki/LDTP_20test_20scripts_20in_20python
  - Refer existing pyautosuite test scripts - http://webcvs.freedesktop.org/ldtp/pyautosuite
  - Refer API Reference page for list of LDTP functions available - http://ldtp.freedesktop.org/user-doc/index.html

How to use LDTP for applications running in Localized languages?

  - Identify the mo files used by the application
  - Use bindtext in the script for each mo file identified as shown below
    Example: For mo file with name: "/opt/gnome/share/locale/ta/LC_MESSAGES/gedit.mo"
                bindtext ('gedit', '/opt/gnome/share/locale')
             For mo file with name: "/opt/gnome/share/locale/ta/LC_MESSAGES/gtk20.mo"
                bindtext ('gtk20', '/opt/gnome/share/locale')
  - Make sure that the LANG variable is set to appropriate value

Localization limitations

  - Currently only mo files are handled. We are working on it to provide support for message catalogs in other formats (example: jar, etc.,) as well.
  - Searching of mo files to be used for bindtext is done only in specific folders. We have make the file search similar to gettext library.

How do I contact LDTP team incase of any help ?

  - Join the LDTP team on IRC for technical help, online
    Server  : irc.freenode.net
    Channel : #ldtp
  - Join the LDTP Mailing List - http://ldtp.freedesktop.org/wiki/Mailing_20list

If you are interested in contributing to LDTP ?

  - You are welcome to do that. Check TODO page and pitch in where ever you can contribute ;) - http://gnomebangalore.org/ldtp/index.php/TODO