<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>Nagappan:<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><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.<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><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?<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>And I’m
very curious of the performance in LDTPv2 too..<o:p></o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><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 :)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Nagappan Alagappan
[mailto:nagappan@gmail.com] <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; ldtp-dev@lists.freedesktop.org<br>
<b>Subject:</b> Re: [LDTP-Dev] LDTP 1.7.1 on Ubuntu 8.10?<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><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<o:p></o:p></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">wei.z.zhang@intel.com</a>>
wrote:<o:p></o:p></span></p>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=EN-US>Hi, Nagappan:<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><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. <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;
text-indent:21.0pt'><span lang=EN-US>Take gedit for example, It used about
1m30s to list all object’s label on my desktop PC.<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;
text-indent:21.0pt'><span lang=EN-US>My test is quite easy:<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;
text-indent:21.0pt'><span lang=EN-US style='font-size:11.0pt'>for o in
getobjectlist(‘frm*gedit*’)</span><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;
text-indent:41.25pt'><span lang=EN-US style='font-size:11.0pt'>print
getobjectproperty(‘frm*gedit*’, o, ‘label’)</span><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'> </span><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=EN-US> So, If there will be
enhancement on it with LDTPv2? Hopefully it could be some workaround on LDTPv1
:)<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'> </span><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;color:#1F497D'> </span><span
lang=EN-US><o:p></o:p></span></p>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:10.0pt'>From:</span></b><span lang=EN-US
style='font-size:10.0pt'> <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><o:p></o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><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<o:p></o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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:<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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:#888888'>Scott</span><o:p></o:p></span></p>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=EN-US> <o:p></o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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:<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><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<o:p></o:p></span></p>
<div>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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:<o:p></o:p></span></p>
</div>
</div>
<blockquote style='border:none;border-left:solid windowtext 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204)'>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><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.<o:p></o:p></span></p>
<div>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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:<o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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')<o:p></o:p></span></p>
</div>
</div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> #waittillguinotexist(WNAME, guiTimeOut=5)
# waittillguinotexist() will cause a time-out exception on FC10-X64 or
Ubutun 8.10.<o:p></o:p></span></p>
</div>
<div>
<blockquote style='border:none;border-left:solid windowtext 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204)'>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=EN-US><br>
for i in xrange(10):<br>
print "i is %d" %i<br>
smoke_ldtp()<o:p></o:p></span></p>
</blockquote>
</div>
</div>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=EN-US> <o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><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><o:p></o:p></span></p>
</blockquote>
</div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:#888888'><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><o:p></o:p></span></p>
</div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> <o:p></o:p></span></p>
</div>
</div>
</div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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><o:p></o:p></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">http://ldtp.freedesktop.org</a><br>
<a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><o:p></o:p></span></p>
</div>
</body>
</html>