Great work Yingjun. Thanks sharing the info.<br><br><div class="gmail_quote">On Wed, Jun 13, 2012 at 10:08 PM, Yingjun Li <span dir="ltr"><<a href="mailto:yingjunli@gmail.com" target="_blank">yingjunli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p class="MsoNormal">Hi all,</p><p class="MsoNormal">Some
controls such as toolbar on WS haven’t enabled accessibility. In this
situation, Sikuli may be the only choice to operate them. So I wrote a
simple Sikuli function to handle toolbar on WS, and call it from LDTP
scripts. </p><p class="MsoNormal"> </p><p class="MsoNormal"><b>Prerequisites:</b></p><p><span>1.<span style="font:7.0pt "Times New Roman""> </span></span>Install LDTP/Cobra and Sikuli</p><p><span>2.<span style="font:7.0pt "Times New Roman""> </span></span>Open WS, take at least one snapshot for VM</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Place LDTP-Sikuli.py and handleToolbar.sikuli.zip on Desktop, extract the zip file, then run LDTP-Sikuli.py.</p><p class="MsoNormal">LDTP-Sikuli.py
will open dialogs of taking snapshot, reverting snapshot and managing
snapshot one by one from toolbar on WS and close them accordingly.
handleToolbar.sikuli.zip is the underlying Sikuli library which has
function to handle toolbar.</p><p class="MsoNormal"> </p><p class="MsoNormal"><b>Notes:</b></p><p><span>1.<span style="font:7.0pt "Times New Roman""> </span></span>Toolbar on WS haven’t enabled accessibility, but windows/dialogs opened from the icons on toolbar have enabled accessibility. <span style="color:rgb(51,51,255)">So write Sikuli library to handle the controls which haven’t enabled accessibility, then call the library from LDTP scripts.</span> This is easy to maintain, just update icon files in handleToolbar.sikuli.zip if they are changed in future(WS 10). </p>
<p><span>2.<span style="font:7.0pt "Times New Roman""> </span></span>We
can even get original icon files from developers, no need to capture
them from Sikuli anymore. This may be helpful to improve accuracy of
Sikuli library.</p><p><span>3.<span style="font:7.0pt "Times New Roman""> <span style="color:rgb(51,51,255)"> </span></span></span><span style="color:rgb(51,51,255)">In LDTP-Sikuli.py, I get a smaller searching scope by LDTP API and pass it to Sikuli library.</span> So Sikuli library will run robustly and fast in this way.</p>
<p><span>4.<span style="font:7.0pt "Times New Roman""> </span></span>I tested on Windows 7 and XP, it works well. </p><p class="MsoNormal"> </p><p class="MsoNormal">
Thanks,</p><p class="MsoNormal">Yingjun<br></p>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org" target="_blank">http://ldtp.freedesktop.org</a><br>Cobra - Windows GUI Automation tool - <a href="https://github.com/ldtp/cobra" target="_blank">https://github.com/ldtp/cobra</a><br>
<a href="http://nagappanal.blogspot.com" target="_blank">http://nagappanal.blogspot.com</a><br>