Beruflich Dokumente
Kultur Dokumente
LEVEL PRACTITIONER
Version 1.0
Introduction:
Sikuli Overview
Sikuli Architecture Supported Platforms Sikuli Integration Why Sikuli?
Objectives:
After completing this chapter you will be able to understand:
The Overview of Sikuli Sikuli Architecture Platforms supported Sikuli integration with the other IDEs Why to choose Sikuli
Sikuli Overview
What is Sikuli
Sikuli is an open-source research project originally started at the User Interface Design Group at MIT(Massachusetts Institute of Technology - Cambridge). Scripting is done using Python and also with java based languages.
Its further development and maintenance is carried out by the Sikuli Lab at the
University of Colorado Boulder in coordination with the open-source community.
Sikuli is currently maintained and released under the MIT License (Open Source). Sikuli Script automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.
Edit
Sikuli IDE
Use
Images (.png)
Sikuli script
Java API
Java.awt Robot
6
JNI Open CV
Sikuli Architecture
C++ Engine
Sikuli Architecture
A thin Jython layer is provided on top of the Java library, for end-users as a set of
simple and clear commands. Therefore, it should be easy to add more thin layers for other languages running on JVM. e.g. JRuby, Scala, Javascript, etc.
7
A Sikuli script (.sikuli) is a directory that consists of a Python source file (.py), and all the
image files (.png) used by the source file(Refer the Architecture diagram)
All images used in a Sikuli script are simply a path to the .png file in the .sikuli bundle. The text editor can be used to edit the Python source file. In order to share the scripts on web easily a new HTML file will get generated while saving the script using sikuli. A Sikuli executable script (.skl) is simply a zipped file of all files in the .sikuli directory. Sikuli IDE runs without showing the IDE window if a .skl is seen. If a .sikuli is seen, Sikuli IDE opens it in a source code editor.
Supported Platforms
Mac OSX The current version for OS X 10.6 + Linux 32-Bit on Ubuntu 12.10 64-Bit version on Ubuntu 13.04 Windows On all platforms 32-Bit and 64-Bit Not yet tested on Windows 8 Mobile OS Works with iPhone and Android applications running in an emulator
9
Sikuli Integration
Why Sikuli
Why Sikuli
Anything you see on the screen can be automated using Sikuli. It is a free ware and easy to install. Suitable for Multi OS, Multi Browser and Multi Lingual testing. Can be easily integrated with many IDEs using Java. Scripting with sikuli is more easier when comparing with other open source tools. Script less Automation techniques are feasible with Sikuli slides(will be covered on the forthcoming slides)
11
Sikuli