Hi Wei,<br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 10:30 PM, Zhang, Wei Z <span dir="ltr"><<a href="mailto:wei.z.zhang@intel.com" target="_blank">wei.z.zhang@intel.com</a>></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 link="blue" vlink="purple" lang="ZH-CN">
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Nagappan:</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">It’s very
strange that your VM is faster than my PC(2G memory and IntelCoreDuo 2.66GHz)…
:D . It might be some difference on number of gedit’s objects,
there’re 399 objects in my gedit.</span></p></div></div></blockquote><div>Guess you are trying with LDTP 1.7.1 release ? If older release, request to switch to newer one. I generally verify things with git head.<br><br>On Ubuntu 9.10, just the default gedit shows 377 object. <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;"><div link="blue" vlink="purple" lang="ZH-CN"><div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">For LDTPv1, Does
it runtime search in one hierarchy structure when it received request of getobjectproperty?
For the whole AT system, which part consume the time mostly?</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">And I’m
very curious of the performance in LDTPv2 too..</span></p></div></div></blockquote><div>In LDTPv2 object property are queried at run-time and so the performance is too slow. I'm working on appmap branch in LDTPv2 which seems to be much better<br>
<br>real 0m39.709s<br>user 0m0.124s<br>sys 0m0.972s<br><br>Regular head version just gets the info from accessibility stack each time, we request the object info, the appmap branch, just pokes the window once (same as LDTPv1) and then just use that info, unless the object info currently misses on performing some action / verification. In that case, the complete hierarchy will be poked once again and all the info will be maintained locally.<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;"><div link="blue" vlink="purple" lang="ZH-CN"><div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Actually I’ve
tried one dump tree for LDTPv1, but it’ll cost much time to get all
objects’ info that disturbed me a lot :)</span></p></div></div></blockquote><div>Ya, I understand this. I remember James Tatum reported the same issue earlier, when he was writing an UI.<br><br>Let me check, how we can improve the performance on this.<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;"><div link="blue" vlink="purple" lang="ZH-CN"><div>
<p class="MsoNormal"><span style="font-size: 10.5pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> Nagappan Alagappan
[mailto:<a href="mailto:nagappan@gmail.com" target="_blank">nagappan@gmail.com</a>] <br>
<b>Sent:</b> Tuesday, November 17, 2009 2:00 PM<br>
<b>To:</b> Zhang, Wei Z<br>
<b>Cc:</b> Wang Qi, Scott; <a href="mailto:ldtp-dev@lists.freedesktop.org" target="_blank">ldtp-dev@lists.freedesktop.org</a><div><div></div><div><br>
<b>Subject:</b> Re: [LDTP-Dev] LDTP 1.7.1 on Ubuntu 8.10?</div></div></span></p>
</div><div><div></div><div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Hi Wei,<br>
<br>
On my Ubuntu 9.10 VM with 800 MB memory, I get this performance, for this test:<br>
<br>
from ldtp import *<br>
<br>
o = getobjectlist('*-gedit')<br>
for i in o:<br>
try:<br>
print getobjectproperty('*-gedit', i, 'label')<br>
except:<br>
pass<br>
<br>
real 0m41.384s<br>
user 0m0.128s<br>
sys 0m0.408s<br>
<br>
I prefer to do test on some action / verification and see how it performs :)<br>
<br>
BTW, on LDTPv2, the performance seems to be too slow :D<br>
<br>
real 4m29.893s<br>
user 0m0.116s<br>
sys 0m1.196s<br>
<br>
Thanks<br>
Nagappan</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Nov 16, 2009 at 9:25 PM, Zhang, Wei
Z <<a href="mailto:wei.z.zhang@intel.com" target="_blank">wei.z.zhang@intel.com</a>>
wrote:</span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Hi, Nagappan:</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US"> I’ve still used LDTPv1
and I found the performance on getobjectproperty/getobjectinfo… is
related with level of the object. when I tried to get all labels of one
window’s object by getobjectproperty, I found it becomes slower with the
object’s level increasing. </span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; text-indent: 21pt;"><span lang="EN-US">Take gedit for example, It used about
1m30s to list all object’s label on my desktop PC.</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; text-indent: 21pt;"><span lang="EN-US">My test is quite easy:</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; text-indent: 21pt;"><span style="font-size: 11pt;" lang="EN-US">for o in
getobjectlist(‘frm*gedit*’)</span><span lang="EN-US"></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; text-indent: 41.25pt;"><span style="font-size: 11pt;" lang="EN-US">print
getobjectproperty(‘frm*gedit*’, o, ‘label’)</span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span lang="EN-US"></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US"> So, If there will be
enhancement on it with LDTPv2? Hopefully it could be some workaround on LDTPv1
:)</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; color: rgb(31, 73, 125);" lang="EN-US"> </span><span lang="EN-US"></span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:ldtp-dev-bounces@lists.freedesktop.org" target="_blank">ldtp-dev-bounces@lists.freedesktop.org</a>
[mailto:<a href="mailto:ldtp-dev-bounces@lists.freedesktop.org" target="_blank">ldtp-dev-bounces@lists.freedesktop.org</a>]
<b>On Behalf Of </b>Nagappan Alagappan<br>
<b>Sent:</b> Tuesday, November 17, 2009 10:03 AM<br>
<b>To:</b> Wang Qi, Scott<br>
<b>Cc:</b> <a href="mailto:ldtp-dev@lists.freedesktop.org" target="_blank">ldtp-dev@lists.freedesktop.org</a><br>
<b>Subject:</b> Re: [LDTP-Dev] LDTP 1.7.1 on Ubuntu 8.10?</span><span lang="EN-US"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Hi Scott,<br>
<br>
After VMware Workstation 7.0 got released, I feel that I could spend little bit
more time on LDTPv2. Will start fixing the missing API in this list <a href="http://lists.freedesktop.org/archives/ldtp-dev/2009-October/000912.html" target="_blank">http://lists.freedesktop.org/archives/ldtp-dev/2009-October/000912.html</a>
and once things are ready, let us go with the release. LDTPv2 release should be
by December '09 !<br>
<br>
Thanks<br>
Nagappan</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Nov 16, 2009 at 5:00 PM, Wang Qi, Scott <<a href="mailto:wangqi.s@gmail.com" target="_blank">wangqi.s@gmail.com</a>>
wrote:</span></p>
<p class="MsoNormal"><span lang="EN-US">Hi, Nagappan,<br>
<br>
I read the annoucement <a href="http://lists.freedesktop.org/archives/ldtp-dev/2009-October/000902.html" target="_blank">http://lists.freedesktop.org/archives/ldtp-dev/2009-October/000902.html</a><br>
<br>
When will LDTPv2 offically released :)? Any detailed feature list for it
available now?<br>
<br>
Thanks<br>
<span style="color: rgb(136, 136, 136);">Scott</span></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Nov 17, 2009 at 12:15 AM, Nagappan Alagappan <<a href="mailto:nagappan@gmail.com" target="_blank">nagappan@gmail.com</a>>
wrote:</span></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Hi Scott,<br>
<br>
In VMware, we run our test regularly on Ubuntu 8.04 and 9.04, near about 1500
tests on weekly basis using LDTP, we haven't faced any such issue. On Ubuntu
8.10, we have noticed this <a href="https://bugzilla.gnome.org/show_bug.cgi?id=561631" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=561631</a>
But it seems your bug is different. On 9.04, we use LDTPv2.<br>
<br>
I don't have an answer for this now :) Need to run the test on Ubuntu 8.10.<br>
<br>
Thanks<br>
Nagappan</span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Nov 16, 2009 at 3:30 AM, Wang Qi, Scott <<a href="mailto:wangqi.s@gmail.com" target="_blank">wangqi.s@gmail.com</a>>
wrote:</span></p>
</div>
</div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">
<div>
<div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">Hi, Nagappan,<br>
<br>
I spent more time on my issue. My workflow is as follows.<br>
<br>
1) application is lauched and waittillguiexist()<br>
2) perform tests<br>
3) application is closed and waittillguinotexist() to wait for the app to quit
completely.<br>
<br>
Then mago tests is repeated for the above 3 steps. <br>
<br>
On FC10 X64 and U8.10 IA32, LDTP will always trow a exception after step 3. It
seems that when the application quit, somehow the LDTP backend also go
unstable. But this case never occurs on Ubuntu 9.04. Do you happen to came
across this kind of issue before?<br>
<br>
<br>
<br>
Thank you for the time!<br>
Scott<br>
<br>
Btw, I just realized that I made a mistake in the following code example. I
should wait for a while to allow the gedit to quit completely.</span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Nov 16, 2009 at 4:01 PM, Wang Qi, Scott <<a href="mailto:wangqi.s@gmail.com" target="_blank">wangqi.s@gmail.com</a>>
wrote:</span></p>
<p class="MsoNormal"><span lang="EN-US">Hi Nagappan,<br>
<br>
I installed LDTP 1.7.1 (below URL) on Ubuntu 8.10 .<br>
<br>
<a href="http://download.opensuse.org/repositories/home:/anagappan/xUbuntu_8.10/" target="_blank">http://download.opensuse.org/repositories/home:/anagappan/xUbuntu_8.10/</a><br>
<br>
I tried to run the below scripts on U8.10 after installation. I always found a
exception after runing the smoke_ldtp() after the first round. Is the LDTP
1.7.1 tested intensively on U8.10?<br>
<br>
Thanks<br>
Scott<br>
<br>
~$ python ldtp_smoke_with_gedit.py <br>
i is 0<br>
GTK Accessibility Module initialized<br>
i is 1<br>
GTK Accessibility Module initialized<br>
<br>
(gedit:16481): Gtk-CRITICAL **: gtk_button_leave: assertion `GTK_IS_BUTTON
(button)' failed<br>
Traceback (most recent call last):<br>
File "ldtp_smoke_with_gedit.py", line 30, in <module><br>
smoke_ldtp()<br>
File "ldtp_smoke_with_gedit.py", line 20, in smoke_ldtp<br>
settextvalue(WNAME, 'txt1', 'hello world')<br>
File "/var/lib/python-support/python2.5/ldtp.py", line 858, in
settextvalue<br>
raise LdtpExecutionError (_responseStatus [1])<br>
ldtplib.ldtplibutils.LdtpExecutionError: u'Window does not exist'<br>
<br>
<br>
<br>
<br>
<br>
<br>
# Below is the content for ldtp_smoke_with_gedit.py <br>
# This script will simply test the installation of LDTP and all<br>
# necessary components on a newly installed system.<br>
# 1) Close all all instances of gedit before calling this script<br>
# 2) This scripts works on Ubuntu 9.0.4. <br>
<br>
from ldtp import *<br>
<br>
# Sometimes, '*gedit*' does not works.<br>
WNAME = '*gedit'<br>
<br>
def smoke_ldtp():<br>
<br>
launchapp('gedit')<br>
waittillguiexist(WNAME, guiTimeOut=3)<br>
<br>
# On Ubuntu 9.0.4, the text area is named as 'txt1'. <br>
# It could be 'txt0' or other value on other platform.<br>
# Please use the inspection tool such as
"accerciser"<br>
# to check out.<br>
settextvalue(WNAME, 'txt1', 'hello world')<br>
<br>
selectmenuitem(WNAME, 'mnuFile;mnuQuit')<br>
<br>
waittillguiexist('dlgQuestion')<br>
<br>
click('dlgQuestion', 'btnClosewithoutSaving')</span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> #waittillguinotexist(WNAME, guiTimeOut=5)
# waittillguinotexist() will cause a time-out exception on FC10-X64 or
Ubutun 8.10.</span></p>
</div>
<div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; margin: 5pt 0cm 5pt 4.8pt; padding: 0cm 0cm 0cm 6pt;">
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US"><br>
for i in xrange(10):<br>
print "i is %d" %i<br>
smoke_ldtp()</span></p>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US"> </span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span lang="EN-US">_______________________________________________<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></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="color: rgb(136, 136, 136);" lang="EN-US"><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></span><span lang="EN-US"></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><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></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><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></span></p>
</div></div></div>
</div>
</blockquote></div><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>