Hi Mohsen,<br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 9:39 AM, M N <span dir="ltr">&lt;<a href="mailto:mohsenfi@gmail.com">mohsenfi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, <br><br>Thanks to Nagappan for the last reply. The problem which I earlier had with some applications seems to be an environment issue. I try to explain here what is the project I am working on and what problem I faced using LDTP. <br>

I installed the tool LDTP with using the root account in our system (with simply following the LDTP installation instruction). It installed nicely and I could run some sample scripts, then could use scripts to test Eclipse application as well. <br>

In the project, it requires setting an specific envirenment. For this purpose, I need to open a terminal and use a specific command. After the environment is set, I can run some built in application such as Eclipse, Rational Rose, Logexplorer and so on. The problem is that when I use command ldtpeditor in the same terminal to run the recorder, it gives me an error note: <br>

You need to install pyGTK or GTKv2 or set your PYTHONPATH correctly<br>try: export PYTHONPATH=/usr/lib/python/site-packages/<br>When I tried to set the variable PYTHONPATH, it showed an error: not valid identifier. <br>When I use python to run some script in this environment, it gives me error note that ldtp is not defined for python. <br>

By existing the environment (closing the terminal and open a new one), the tool LDTP is working fine. I tried to have two terminals open where in one of the I set the environment and run the applications and on the other I run the LDTP scripts. But the problem here was that LDTP could not detect any of those applications UI.  <br>

Could you please give me some hint where might be the source of this problem? </blockquote><div><br>LDTP gets installed in default python path, so no need to explicitly set it. If you are planing to use ldtpeditor, start it either from xterm or from Alt+F2 (run command). gnome-terminal is accessibility enabled application, so any event on that window will be also recorded. I think Eclipse is written using Java. So, if you install Java-Access-Bridge you can automate it using LDTP.<br>
<br>Thanks<br>Nagappan<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>BR, <br>Mohsen      <br><div><div></div><div class="Wj3C7c">
<br><div class="gmail_quote">On Wed, Feb 25, 2009 at 9:07 AM, M N <span dir="ltr">&lt;<a href="mailto:mohsenfi@gmail.com" target="_blank">mohsenfi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi Nagappan, </div>
<div> </div>
<div>Thank you for the reply. As I am not very familiar with Linux neither with Java applications, could you please help me to find the technique which has been used in the applications? How can I check whether or not an application is using Swing, GTK+ or XUL? </div>



<div> </div>
<div>BR, </div>
<div>Mohsen <br><br></div><div><div></div><div>
<div class="gmail_quote">On Tue, Feb 24, 2009 at 9:51 PM, Nagappan A <span dir="ltr">&lt;<a href="mailto:nagappan@gmail.com" target="_blank">nagappan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hello Mohsen,<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Tue, Feb 24, 2009 at 11:38 AM, M N <span dir="ltr">&lt;<a href="mailto:mohsenfi@gmail.com" target="_blank">mohsenfi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi,<br><br>I was wondering if LDTP supports testing applications such as &quot;eclipse&quot;, &quot;ddd&quot;, &quot;logexplorer&quot;, &quot;Rational Rose&quot;...? I installed the latest version of LDTP (1.5.0) and tried to script some test cases which were dealing with these applications, but unfortunately none of them are detected by ldtp. I could script some testing on eclipse but when opened the other above mentioned applications and used getwindowlist() or getapplist(), none of the application windows name were listed except eclipse frame.<br>


Could you please advise? Is there any way to make LDTP to work with these applications as well? <br>Your quick reply is highly appreciated. </blockquote></div></div>
<div><br>If the application uses Java Swing or GTK+ or XUL you can automate them using LDTP. For Java Swing, you need to setup <a href="http://live.gnome.org/Java%20Access%20Bridge" target="_blank">http://live.gnome.org/Java%20Access%20Bridge</a><br>


<br>Thanks<br>Nagappan<br> <br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>BR,<br>Mohsen<br><br><br>_______________________________________________<br>LDTP-dev mailing list<br>


<a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">LDTP-dev@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>


<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org/" target="_blank">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com/" target="_blank">http://nagappanal.blogspot.com</a><br>


</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>