How to setup PY-LDTP in NLD

From LDTP

Table of contents

Install development packages

After installing NLD in your system as per the steps given in Howto setup Novell Linux Desktop the following steps are followed to set up the PY-LDTP (LDTP running python scripts).

Following are the steps to install the devel packages .

    1. In main menu (top panel) select System -> Administrator Settings.
               
    2. Select “Install and Remove Software”.
               
    3. In the “Filter Search”, click on “Selection”. 
       Then select the following components
       
          - Gnome - The GNOME Desktop
          
    4. In the “Filter Search”, click on “Package Groups”. Then
          Under Development -> Languages -> C and C++ select
          - cpp, gcc packages
          
          Under Development -> Libraries -> C and C++ select
          - glib2-devel, glibc-devel, orbit2-devel package
                       
          Under Development -> Libraries -> GNOME select
          - atk-devel, at-spi, at-spi-devel, gnome-libs-devel 
          - libbonobo-devel, libbonoboui-devel, libgnomeui-devel
          
    5. In the “Filter Search”, click on “Search”. Then search
          
          - gnome-common package
                       
          - gtk-devel package
                       
          - at-spi package
          
          - gail-devel package
          
          - python-devel package
          
         
    6. After the selection of all these, click on the 'Accept' button
               

Install binaries

    1. After doing all the above steps, all the required Devel packages
       will be installed. In the same manner, also install  
       
       3.1 at-spi (in YaSt – search – search -type 'spi')
       
       3.2 Gnome packages (type “gnome” in search and install all of
       them)
       
       3.3 At-poke  
       
       3.4 Gedit  
3.5 Python Imaging Library [1] (http://www.pythonware.com/products/pil/)
3.6 Libtool 3.7 gtk2-devel 3.8 glib 3.9 gcc from the “Install and Remove software”. Make sure all of them are installed.
To install At-poke from the site, click on the following URL at-poke (http://rpm.pbone.net/index.php3/stat/4/idpl/1073397/com/at-poke-0.2.2-0.ximian.8.1.i586.rpm.html) , and from the download options select any one of them. 2. Goto System menu -> Personal Settings and click on the Assistive Technology Support . Enable the assistive technology support. After enabling, logout and login. If “Personal Settings” is not in menu bar, then in the terminal type “gnome-control-center” and press the enter key. The “Gnome Control Center” window pops up. Enable the assistive technology support. Log out and Login for changes to take effect.

Setting up PYLDTP from source

  1. check out source from CVS with the following command: 'cvs -d:pserver:anoncvs@cvs.freedesktop.org:/cvs/ldtp co pyldtp'
  2. When asked for password enter 'anonymous' and press enter
  3. change to the source directory with the following command: 'cd pyldtp'
  4. build with './setup.py build' Assuming that all the above mentioned packages are installed
  5. setup with './setup.py install' as the root user

Install from pre built rpm

(We assume that you have currently logged in using GNOME session into your box).

  1) Download the binary rpm file for setting up PY-LDTP and the PYLDTP framework from the links given below : 
* Download latest binary rpm Downloads
* Download latest source code of LDTP Python / C binding pyldtp.tar.gz (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/pyldtp.tar.gz?tarball=1)
  2) Check if 'ldtp.so' file already exists in /usr/lib/python/site-packages. 
     If it is already present there, delete it and then install the binary rpm using the following command:
           rpm -ivh <filename.rpm>    -------  for root user
      sudo rpm -ivh <filename.rpm>    -------  for normal user
  3) After installing the rpm file, do the following command :

ls /usr/lib/python/site-packages/
Check the contents and confirm if the file 'ldtp.so' is present here.
  4) PY-LDTP has now been setup on your system. The test scripts for GNOME applications can now be downloaded.
 
    * Download latest copy of pyautosuite pyautosuite.tar.gz (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyautosuite/pyautosuite.tar.gz?tarball=1) 
   5) To run the test script for the application use the command
     python <application-name.py> '<appmap-file path>'

For eg: To run the test script for gedit: Go to the folder containing the test scrips, say Home --> pyautosuite --> gedit Run the main script, say gedit.py, as python gedit.py '/home/user/pyautosuite/gedit' Here, 'home/user/pyautosuite/gedit' is the path where the appmap file, gedit.map, is present in your system.
Note : * The path for the appmap need not be specified, if the appmap is present in the same folder as the test scripts.

Latest AT-SPI Packages for NLD

at-spi (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/at-spi-1.6.3-1.i386.rpm)

at-spi-devel (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/at-spi-devel-1.6.3-1.i386.rpm)

atk (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/atk-1.9.1-1.i386.rpm)

atk-devel (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/atk-devel-1.9.1-1.i386.rpm)

gail (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/gail-1.8.3-1.i386.rpm)

gail-devel (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/gail-devel-1.8.3-1.i386.rpm)

libgail-gnome (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/libgail-gnome-1.1.0-5.i386.rpm)

libgail-gnome-devel (ftp://rpmfind.net/linux/fedora/core/development/i386/Fedora/RPMS/libgail-gnome-devel-1.1.0-5.i386.rpm)