Hello Ara,<br><br>Thanks for your interest on Object Oriented LDTP :)<br><br>I have recently updated Object Oriented LDTP (a kind of) with LDTP 1.0.0 and <a href="http://1.0.1.">1.0.1.</a><br><br>With this implementation, the code can be like<br>
<br>Approach 1:<br><br>from ooldtp import *<br><br>a = context (&#39;*-gedit&#39;)<br><a href="http://a.component.name">a.component.name</a> = &#39;btnFind&#39;<br>a.component.click ()<br><br>Approach 2:<br><br>from ooldtp import *<br>
<br>a = context (&#39;*-gedit&#39;)<br>b = a.child (&#39;btnFind&#39;)<br>b.click ()<br><br>Approach 3:<br><br>from ooldtp import *<br><br>gedit = context (&#39;*-gedit&#39;)<br>gedit.component.click (&#39;btnFind&#39;)<br>
<br>Approach 4:<br><br>from ooldtp import *<br><br>gedit = context (&#39;*-gedit&#39;)<br>gedit.click (&#39;btnFind&#39;)<br><br>Unfortunately the LDTP editor, doesn&#39;t support this format yet. So, you may need to write the code for it, manually ! If this approach is interesting to you, probably we can implement it in LDTP editor ! So, you can record the events and generate the code for it !<br>
<br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Tue, Jun 24, 2008 at 8:06 AM, Ara Pulido &lt;<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I am evaluating LDTP to record some scripts for Ubuntu distribution. I<br>
would like to use Object-oriented scripts, rather than the usual syntax.<br>
<br>
<a href="http://ldtp.freedesktop.org/wiki/Object-Oriented_LDTP" target="_blank">http://ldtp.freedesktop.org/wiki/Object-Oriented_LDTP</a> seems to be<br>
outdated. At least I cannot find the convert.py you mentioned there. How<br>
is the easiest way to do this??<br>
<br>
Thanks in advance!<br>
<br>
Regards,<br>
Ara.<br>
<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>
</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>