[LDTP-Dev] An easy way to integrate LDTP with Sikuli

Nagappan Alagappan nagappan at gmail.com
Wed Jun 13 22:16:08 PDT 2012


Great work Yingjun. Thanks sharing the info.

On Wed, Jun 13, 2012 at 10:08 PM, Yingjun Li <yingjunli at gmail.com> wrote:

> Hi all,
>
> 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.
>
>
>
> *Prerequisites:*
>
> 1.       Install LDTP/Cobra and Sikuli
>
> 2.       Open WS, take at least one snapshot for VM
>
>
>
> Place LDTP-Sikuli.py and handleToolbar.sikuli.zip on Desktop, extract the
> zip file, then run LDTP-Sikuli.py.
>
> 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.
>
>
>
> *Notes:*
>
> 1.       Toolbar on WS haven’t enabled accessibility, but windows/dialogs
> opened from the icons on toolbar have enabled accessibility. So write
> Sikuli library to handle the controls which haven’t enabled accessibility,
> then call the library from LDTP scripts. This is easy to maintain, just
> update icon files in handleToolbar.sikuli.zip if they are changed in
> future(WS 10).
>
> 2.       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.
>
> 3.       In LDTP-Sikuli.py, I get a smaller searching scope by LDTP API
> and pass it to Sikuli library. So Sikuli library will run robustly and
> fast in this way.
>
> 4.       I tested on Windows 7 and XP, it works well.
>
>
>
> Thanks,
>
> Yingjun
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
Cobra - Windows GUI Automation tool - https://github.com/ldtp/cobra
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20120613/cad22b7b/attachment.html>


More information about the LDTP-dev mailing list