After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 422199 - ldtprecord does not dump the code to specified file name
ldtprecord does not dump the code to specified file name
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtprecord
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2007-03-24 08:49 UTC by Harsha Reddy
Modified: 2008-01-17 23:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Harsha Reddy 2007-03-24 08:49:03 UTC
Platform:

OS Distro Name:
Ubuntu 6.06 LTS

uname -a
Linux  2.6.15-28-386 #1 PREEMPT Thu Feb 1 15:51:56 UTC 2007 i686 GNU/Linux

python -V
Python 2.4.3

which ldtp
/usr/bin/ldtp

ldtp -V
ldtp-0.8.0

which ldtprecord
/usr/bin/ldtprecord

which ldtprunner
/usr/bin/ldtprunner

ls -lt /usr/lib/python2.4/site-packages/ldtp*
-rw-r--r-- 1 root root   9934 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtpcodegen.py
-rw-r--r-- 1 root root   7722 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtpcodegen.pyc
-rw-r--r-- 1 root root 125929 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtp.py
-rw-r--r-- 1 root root 120727 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtp.pyc
-rw-r--r-- 1 root root   7854 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtputils.py
-rw-r--r-- 1 root root   8563 2007-03-24 13:37 /usr/lib/python2.4/site-packages/ldtputils.pyc
-rw-r--r-- 1 root root   7755 2007-01-31 14:26 /usr/lib/python2.4/site-packages/ldtpcodegen.pyo
-rw-r--r-- 1 root root 113536 2007-01-31 14:26 /usr/lib/python2.4/site-packages/ldtp.pyo
-rw-r--r-- 1 root root   8596 2007-01-31 14:26 /usr/lib/python2.4/site-packages/ldtputils.p


Steps to simulate the problem:

1. Enable Accessibility (Enable Assistive technologies)

2. install ldtp-0.8.0 from source 
   ./configure --prefix=/usr
   make 
   sudo make install

3. In the terminal type:
   ldtp &

4. open gedit

5. In an other terminal run:
   ldtprecord -c start -a gedit -f ~/index.py

6. perform some operations in gedit and close gedit.

7. ldtprecord -c stop -f ~/index.py

Actual Result:

cat ~/index.py

it is found that ~/index.py is blank :(

Expected Result:

ldtprecord should dump the recored script into ~/index.py 

Note:
In this case when the ldtprecorder is started/stopped, no message is displayed in the terminal saying that the ldtprecorder has started/stopped.

I am not sure whether I have missed any step which is preventing te proper functioning of ldtprecord.
Comment 1 Nagappan Alagappan 2007-09-05 06:38:50 UTC
Could you please check with the latest LDTP and update this bug ? As of now, the generated code is dumped in the console. Soon will give an option to dump into a file. Feel free to reopen the bug, incase of any issue.
Comment 2 Dale E. Moore 2007-11-11 06:57:29 UTC
I get nothing, too; thought ldtpeditor gets a little.

$ ldtp -V
ldtp-0.9.2
$ uname -a
Linux BrainIac 2.6.22.12-0.1-default #1 SMP 2007/11/06 23:05:18 UTC i686 i686 i386 GNU/Linux
$ cat /etc/issue

Welcome to openSUSE 10.3 (i586) - Kernel \r (\l).
# gconftool-2 -s -t boolean /desktop/gnome/interface/accessibility true
# gconftool-2 -g  /desktop/gnome/interface/accessibility
true
$ ldtprecord -c start -f /home/dalem/Desktop/ldtp/ff/ff4
$ firefox
$ ldtprecord -c stop -f /home/dalem/Desktop/ldtp/ff/ff5

Neither ff4 or ff5 exists. Nothing in /var/log/messages.

What else can I get for you?
Dale E. Moore
PS: ldtpeditor only gets stuff like:
	enterstring ("<right>")
	enterstring ("<tab>")
	enterstring ("<space>")
	enterstring ("<alt>")
though there is much more activity.

Comment 3 Nagappan Alagappan 2007-11-11 17:04:07 UTC
You may need to try with the Firefox development version 3.0a9, which has better accessibility support as compared to its previous versions. Probably you could try with other GNOME applications just to make sure that things are working fine for you ?
Comment 4 Dale E. Moore 2007-11-12 04:42:44 UTC
Epiphany is providing better accessibility support, thanks!
Comment 5 Nagappan Alagappan 2008-01-17 23:10:30 UTC
Closing the bug.