Hi Ara,<br><br>Thanks for the inputs.<br><br>During our automated testing in VMware we found the following difference between LDTPv1 and v2:<br><br>* getlabel function is deprecated - you can use getobjectproperty(&#39;winodw&#39;, &#39;objectname&#39;, &#39;label&#39;) # To verify the display text<br>

* Label in v2 doesn&#39;t return the accelerator key (eg: in v1 &quot;_Find&quot; will be returned on v2 just &quot;Find&quot; is returned)<br>* Strict data types are checked, in v1 most of the inputs are considered as string, if not they will be converted to string, but on v2 exception will be thrown, if incorrect type is passed to any function<br>

* In v1 we have ldtp binary, on v2 we need to check ldtpd.sh for now, this doesn&#39;t return the version for now, it has to be implemented, if you check for &quot;ldtp --version&quot; in v1<br>* In v1 each action command was given 1 second sleep time internally before execution, but on v2 there is no delay unless its set in environment variable LDTP_COMMAND_DELAY. So, the script has to use appropriate wait time<br>

* As Javier found, launchapp, argument name changed from &#39;arg&#39; to &#39;args&#39;<br><br>Some of missing API in v2:<br><br>* Calendar object<br>* logFailures in v1 is not implemented in v2<br>* LDTP logging methods<br>

* appundertest<br>* launchapp2<br>* imagecompare<br>* blackoutregion<br>* label object<br>* layeredpane object<br>* panel object<br>* ProcessStatistics<br>* wnck based window operation<br><br>LTFX will be removed in LDTP v2 in favor of wnck implmentation<br>

<br>I could not recollect any other for now.<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Tue, Oct 6, 2009 at 11:26 PM, Ara Pulido <span dir="ltr">&lt;<a href="mailto:ara@ubuntu.com">ara@ubuntu.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 text="#000000" bgcolor="#ffffff">
Hey Nagappan,<br>
<br>
It would be good to have a &quot;migration&quot; how to document, with the
changes of the API.<br>
<br>
That would make migration to LDTP2 much easier.<br>
<br>
Thanks,<br><font color="#888888">
Ara.</font><div><div></div><div class="h5"><br>
<br>
On 06/10/09 18:06, Javier Collado wrote:
<blockquote type="cite">
  <pre>Hello,

Thanks for the update Nagappan.

A new mago branch branch has been created so that we can check that the test
cases work fine and make some changes if needed:
<a href="https://code.launchpad.net/%7Emago-contributors/mago/mago-ldtp2" target="_blank">https://code.launchpad.net/~mago-contributors/mago/mago-ldtp2</a>

Also, a new python-ldtp package has been uploaded to the mago PPA both for
jaunty and karmic:
<a href="https://launchpad.net/%7Emago-contributors/+archive/ppa" target="_blank">https://launchpad.net/~mago-contributors/+archive/ppa</a>

During my tests I&#39;ve seen that ldtp.launchpad function &#39;arg&#39; argument has been
renamed to &#39;args&#39; and that in the past passing arg=[&#39;&#39;] worked fine, but now
args=[] is expected. So that small change has been the first one in the
mago-ldtp2 branch.

In addition to this, while running gedit test cases, I&#39;ve seen that suite
cleanup method fails in this line:
  </pre>
  <blockquote type="cite">
    <pre>      result = ldtp.waittillguiexist(
           <a href="http://self.application.name" target="_blank">self.application.name</a>, self.application.TXT_FIELD)
    </pre>
  </blockquote>
  <pre>I&#39;ve run  debugged at that point and verified that the object exists using
ldtp.getobjectlist and ldtp.getobjectinfo. However, ldtp.waittillguiexists
returns 0 at that point. Would you like me to open this as a bug under LDTP
project or under mago project?

Best regards,
    Javier

Nagappan Alagappan wrote:
  </pre>
  <blockquote type="cite">
    <pre>Hello all,

We are in the process of migrating all our existing LDTP API based on CSPI
(LDTPv1) to pyatspi (LDTPv2).

LDTPv2 framework was written by &quot;Eitan Isaacson&quot;. Thanks to eeejay :)

In VMware, we have tested the LDTPv2 API&#39;s. Thanks to Ranjith Murugan,
Gaurav Sharma, Anupa Kamath for verifying them.

I&#39;m sure still there are some pending API&#39;s which has to implemented or some
API&#39;s which are not compatible with LDTPv1 in LDTPv2. I request to all the
users, to verify LDTPv2 in their test environment and report any issues you
found. We have tested on Ubuntu 9.04 with Python 2.6. It will be nice, if
you could test it on Python 2.4 / 2.5 / 3.0 as well.

New LDTPv2 dependency - twisted-python-web package.

Access LDTPv2 source through git:
git://<a href="http://anongit.freedesktop.org/ldtp/ldtp2or" target="_blank">anongit.freedesktop.org/ldtp/ldtp2or</a> ssh://
<a href="http://git.freedesktop.org/git/ldtp/ldtp2" target="_blank">git.freedesktop.org/git/ldtp/ldtp2</a> or
<a href="http://anongit.freedesktop.org/git/ldtp/ldtp2.git" target="_blank">http://anongit.freedesktop.org/git/ldtp/ldtp2.git</a>

Browse the LDTPv2 source online -
<a href="http://cgit.freedesktop.org/ldtp/ldtp2/tree/" target="_blank">http://cgit.freedesktop.org/ldtp/ldtp2/tree/</a>

Thanks
Nagappan



------------------------------------------------------------------------

_______________________________________________
<a href="http://live.gnome.org/DesktopTesting" target="_blank">http://live.gnome.org/DesktopTesting</a>
desktop-testing-list mailing list
<a href="mailto:desktop-testing-list@gnome.org" target="_blank">desktop-testing-list@gnome.org</a>
<a href="http://mail.gnome.org/mailman/listinfo/desktop-testing-list" target="_blank">http://mail.gnome.org/mailman/listinfo/desktop-testing-list</a>
    </pre>
  </blockquote>
  <pre>  </pre>
  <pre><fieldset></fieldset>
_______________________________________________
<a href="http://live.gnome.org/DesktopTesting" target="_blank">http://live.gnome.org/DesktopTesting</a>
desktop-testing-list mailing list
<a href="mailto:desktop-testing-list@gnome.org" target="_blank">desktop-testing-list@gnome.org</a>
<a href="http://mail.gnome.org/mailman/listinfo/desktop-testing-list" target="_blank">http://mail.gnome.org/mailman/listinfo/desktop-testing-list</a>
  </pre>
</blockquote>
<br>
</div></div></div>

</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>