Skip to Main Content
Cucumber Recipes
book

Cucumber Recipes

by Ian Dees, Matt Wynne, Aslak Hellesoy
February 2013
Intermediate to advanced content levelIntermediate to advanced
272 pages
5h 45m
English
Pragmatic Bookshelf
Content preview from Cucumber Recipes
Recipe 42Test a GUI on Linux, Mac, or Windows with Sikuli

Problem

You’re testing a Linux program written with a custom toolkit that’s difficult to automate. Or, you’d like to test a cross-platform application from a single test suite.

Ingredients

  • Sikuli,[276] a Java-based visual GUI testing tool from MIT

  • JRuby,[277] a Ruby implementation written in Java that can call Sikuli’s API

  • The sikuli gem[278] to provide a few convenience wrappers in Ruby

Solution

Sikuli is a GUI testing tool that takes a bit of a different tack than its peers. Rather than finding controls on the screen by metadata such as CSS selectors or automation IDs, Sikuli takes a snapshot of the screen and recognizes controls by their appearance.

This approach presents a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Cookbook

Cucumber Cookbook

Shankar Garg
Basiswissen Softwaretest , 6th Edition

Basiswissen Softwaretest , 6th Edition

Andreas Spillner, Tilo Linz
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781941222607Errata