Hi Yves-Alian, Comments inline.
On Mon, Feb 3, 2014 at 11:18 PM, Paroz, Yves-Alain < yves-alain.pa...@keymile.com> wrote: > Hi Nagappan, > > > > Thanks for your answer, but may be I have not explain exactly my problem. > > > > I want to write a python script to test an application which itself is > written in Java (Swing). > > I tried with success to access to the OS and to run the installer > (InstallShield) to install this application > > I can also lauch the application, but when I ask for the component list > with getobjectlist(), I only received this: > > > > >>> getobjectlist('frmNEM Login') > > ['ukn0', 'mnuSystem', 'mnuSystem1', 'btnMinimize', 'btnMaximize', > 'btnClose'] > Looks like only the title bar is accessible, rest all the object are not (based on ukn0 - unknown widget type). Try your app with Microsoft Visual Verify app and check respective widgets are visible ( http://uiautomationverify.codeplex.com/). >>> > > > > So, I'm asking how to start this Java application so that CobraWinLDTP > recognize the components. > > Do I have I to use the Ldtp.jar provide in your distribution? > Ldtp.jar is an interface to write LDTP based test, it has nothing to do to test a Java app. > Do I have to modify the command line "java -cp ... > com.keymile.nms.unem.Main" to start? > I myself, haven't tested with Java app on Windows. On Linux, tried with java-access-bridge accessibility library and it works. Though, my testing was way long back. > Or do I use the accessibility.properties in my jre distribution? > Not sure, how to do that on Windows. Maybe this http://docs.oracle.com/javase/7/docs/technotes/guides/access/enable_and_test.html? Thanks Nagappan > > > Thanks & Regards > > Yves-Alain > > > > *From:* Nagappan Alagappan [mailto:nagap...@gmail.com] > *Sent:* Tuesday, February 04, 2014 5:59 AM > *To:* Paroz, Yves-Alain > *Cc:* ldtp-dev@lists.freedesktop.org > *Subject:* Re: [LDTP-Dev] How to start Java app with Ldtp > > > > Hi Yves-Alain, > > > > Try this example - > https://github.com/ldtp/cobra/blob/master/Example/Java/LdtpTest.java and > see if that helps. > > > > Thanks > > Nagappan > > > > On Wed, Jan 29, 2014 at 4:35 AM, Paroz, Yves-Alain < > yves-alain.pa...@keymile.com> wrote: > > Hi, > > > > I'm trying to use CobraWinLDTP to test a Java application using Swing. > > I'm also new with Java. > > I could not found how to bind/start the Ldtp.jar with the Java application > to test. > > > > I was using previously SilkTest and know about the > accessibility.properties. > > > > Can you give me a example how to start a java application from the command > line. > > > > Man thanks, > > Yves-Alain > > > _______________________________________________ > LDTP-dev mailing list > LDTP-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/ldtp-dev > > > > > > -- > > Cross platform GUI testing > > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra > > ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom > > http://nagappanal.blogspot.com > -- Cross platform GUI testing Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra ATOMac - Mac GUI Automation tool - https://github.com/pyatom/pyatom http://nagappanal.blogspot.com
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev