Sikuli GUI Automation Tool
Introduction:
Sikuli is
a tool to automate graphical user interfaces (GUI) using “Visual
Image Match” method. In Sikuli, all the web elements should be taken as an
image and stored inside the project.
Sikuli can be very much
useful to automate flash objects (which do not have ID or name). It can be
useful in the situation, where we have a stable GUI (i.e. GUI components not
changing).
Even
Window based applications can also be automated using Sikuli. Sikuli provides
very friendly Sikuli-script.jar, which can be easily used together with
Selenium WebDriver. We can even automate Adobe Video/Audio player, Flash Games
on website using Sikuli.
Why Sikuli?
Sikuli 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.
Practical
Uses:
1.
Sikuli can be used to
automate Flash Objects / Flash Websites.
2.
It can be useful to
automate Window based application. We can automate, what we are seeing on the
screen.
3.
It provides, simple API.
i.e. all methods can be accessed using screen class object.
4.
It can be easily
integrated with Selenium and all other tools.
- Using Sikuli we can automate
desktop applications.
Benefits of sikuli:
- Open source Tool.
- One of the biggest advantage of
Sikuli is that, it can easily automate Flash objects.
- It makes easy to automate windows
application.
- When you’re testing an application
under development and you don’t know the ID/name of the elements, then you
can go with Sikuli. It will check the appearance of the image and if match
found, it will interact with the image accordingly.
Steps to Create Sikuli Java Project:
Step #1: Sikuli Download – Download Sikuli from here.
Step #2: Extract the zip file which you’ve downloaded. It will contain sikuli-script.jar file. Save this extracted file in your local file system.
Step #3: Open Eclipse.
Step #4: Create a java project File -> New -> Java Project
Step #5:
- Right Click on the project
- Go to Build path -> Configure Build Path
- Switch to Libraries tab
- Click “Add External Jars” button and Add Sikuli-Script.jar in the Build path.
- Click “Ok”.






0 comments:
Post a Comment