Hi Mohsen, On Wed, Feb 25, 2009 at 9:39 AM, M N <mohse...@gmail.com> wrote:
> Hi, > > 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. > 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. > 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: > You need to install pyGTK or GTKv2 or set your PYTHONPATH correctly > try: export PYTHONPATH=/usr/lib/python/site-packages/ > When I tried to set the variable PYTHONPATH, it showed an error: not valid > identifier. > When I use python to run some script in this environment, it gives me error > note that ldtp is not defined for python. > 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. > Could you please give me some hint where might be the source of this > problem? 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. Thanks Nagappan > > > BR, > Mohsen > > On Wed, Feb 25, 2009 at 9:07 AM, M N <mohse...@gmail.com> wrote: > >> Hi Nagappan, >> >> 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? >> >> BR, >> Mohsen >> >> On Tue, Feb 24, 2009 at 9:51 PM, Nagappan A <nagap...@gmail.com> wrote: >> >>> Hello Mohsen, >>> >>> On Tue, Feb 24, 2009 at 11:38 AM, M N <mohse...@gmail.com> wrote: >>> >>>> >>>> Hi, >>>> >>>> I was wondering if LDTP supports testing applications such as "eclipse", >>>> "ddd", "logexplorer", "Rational Rose"...? 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. >>>> Could you please advise? Is there any way to make LDTP to work with >>>> these applications as well? >>>> Your quick reply is highly appreciated. >>> >>> >>> If the application uses Java Swing or GTK+ or XUL you can automate them >>> using LDTP. For Java Swing, you need to setup >>> http://live.gnome.org/Java%20Access%20Bridge >>> >>> Thanks >>> Nagappan >>> >>> >>>> >>>> >>>> BR, >>>> Mohsen >>>> >>>> >>>> _______________________________________________ >>>> LDTP-dev mailing list >>>> LDTP-dev@lists.freedesktop.org >>>> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev >>>> >>>> >>> >>> >>> -- >>> Linux Desktop (GUI Application) Testing Project - >>> http://ldtp.freedesktop.org >>> http://nagappanal.blogspot.com >>> >> >> > > _______________________________________________ > LDTP-dev mailing list > LDTP-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/ldtp-dev > > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev