Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robot Framework Test Automation

You're reading from   Robot Framework Test Automation Create test suites and automated acceptance tests from scratch

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783283033
Length 98 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sumit Bisht Sumit Bisht
Author Profile Icon Sumit Bisht
Sumit Bisht
Arrow right icon
View More author details
Toc

Testing through images


This section covers image-based testing, which is different from what has been covered so far. In image-based testing, the user interface is treated as a black box and no object internals of the applications are exposed.

Sikuli

Sikuli is a leading tool that performs automation through computer vision, that is, recognition of images on the screen. As a human being, we can distinguish an object's properties by looking at it, but this is not straightforward in case of computers as computers can only match binary or textual information. Thus, there is a need for computer vision or knowing if a given image is present on a larger screen or not. In simple sense, Sikuli uses the user-supplied screenshot images to perform action over various items and displays the generated script visually in the Sikuli IDE. Following is one such script to do a search:

As is evident from the image, the script does the following:

  • Check if the Chrome browser icon exists on the screen

  • Click on the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image