21st Century Collection of Life Works.

Squish by Froglogic

 Froglogic Squish® is a professional automated GUI testing framework. Squish makes it possible to test GUI applications based on toolkits such as Nokia's Qt Development Frameworks®, and the Tk, Java™, and XView™ toolkits from Sun™.

Qt (/ˈkjuːt/ "cute", or unofficially as Q-T cue-tee) is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers.

An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger.

To perform testing, two things are required: an application to test—known as the Application Under Test (AUT), and a test script that exercises the AUT.

There are two sets of bindings that are of interest when developing tests using Squish. GUI toolkit bindings — Squish provides bindings for Qt, Java AWT/Swing, Java SWT, Web, etc. AUT-specific bindings — it is possible to create bindings that provide access to the AUT's own API for those cases where the toolkit's bindings don't provide sufficient functionality for proper testing.

The Squish documentation mostly uses the term widget when referring to GUI objects (i.e., buttons, menus, menu items, labels, table controls, etc). Windows users might be more familiar with the terms control and container, but here we use the term widget for both. Similarly, Mac OS X users may be used to the term view; again, we use the term widget for this concept.

A test suite is a collection of one or more test cases (tests). Using a test suite is convenient since it makes it easy to share tests scripts and test data between tests.

To create a new test suite from the command line, three steps are necessary: and third, register the AUT with squishserver.

1) Create a new directory to hold the test suite—the directory's name should begin with suite.

2) Create a plain text file (ASCII or UTF-8 encoding) called suite.conf in the suite subdirectory. For example:

AUT = addressbook.class



3) Register the AUT with the squishserver. For example:

squishserver --config addAUT addressbook squish/examples/qt4/addressbook

Squish reserves the following function names: main, cleanup and init. In Mac computer, it saves license id in


For Squish to operate correctly on Mac OS X when testing Java AWT/Swing AUTs the environment variable SQUISH_USE_AWT must be set to 1. This can be done as follows:


export SQUISHDIR=/Applications/squish-4.2.2-java-macx86_64/bin

>open $SQUISHDIR/squishide.app

To run a test case, first make sure Squish server is running:

$SQUISHDIR/squishserver &

Then change to the test suite directory and run the Squish runner.

cd /Users/username/Downloads/peers-0.4.3-2

$SQUISHDIR/squishrunner --testsuite suite_peers --testcase tst_case1

For web application, the setting is

LANGUAGE = JavaScript


The LANGUAGE can be set to whichever one you prefer—currently Squish is capable of supporting JavaScript, Python 2, Perl, Ruby, and Tcl, but the precise availability may vary depending on how Squish was installed. The WRAPPERS should be set to Web.

squishrunner --testsuite suite_js --record tst_general --useWaitFor

It is always best to record using the --useWaitFor option since this records calls to thewaitForObject function which is more reliable than using the snooze function which for historical reasons is the default. (Note that the Squish IDE automatically uses the waitForObject function.)

Updated: 2012-10-25 22:21:36

Insights of the past for the present

Computer Notes

CSS Color Names

CakePhp and SQLite

SQL Injection Scanner

Squish by Froglogic

Android Notes

Tools on Windows OS

Text to Speech Software

jEdit Plugins

Split File by jEdit Macro

Dark Eclipse theme

Eclipse Plugin Basics

FTP with Eclipse

Markdown with Eclipse


Knowledge of the Holy - A.W. Tozer

The Pursuit of God - A.W. Tozer

The Dwelling Place - A.W. Tozer

Plumber of Lisburn - A.W. Tozer

Spiritual Power Vows - A.W. Tozer

Root of the Righteous - A.W. Tozer

Essays - A.W. Tozer

Fourfold Gospel - A.B. Simpson

Gospel of Healing - A.B. Simpson

Life of A.B. Simpson - C&MA

Mark Gospel 1/4 - A MacLaren

Mark Gospel 2/4 - A MacLaren

Mark Gospel 3/4 - A MacLaren

Mark Gospel 4/4 - A MacLaren

Gospel of St. John - F.D. Maurice

To the Romans - R.V. Foster

To the Romans, vol I - C. Gore

To the Corinthians - J.S. Riggs

To the Philippians - R. Rainy

To the Galatians - Luther

To the Hebrews - H.C.G. Moule

To the Hebrews - T.C. Edwards

Wisdom of James - A.T. Robertson

Epistles of John 1/2 - W. Alexander

Epistles of John 2/2 - W. Alexander

Kingdom of Heaven - E. Burbidge

Deuteronomy - C.H. Mackintosh

Religion and Theology - J. Tulloch

The Being of God - St Anselm

The Existence of God - St Anselm

God Became Man - St Anselm

The Other Wise Man - H. Van Dyke

First Christmas Tree - H. Van Dyke

A Christmas Carol - C Dickens

Thoughts on the Universe

Computer Notes

About the Website

Color Theme:   Night     Day  

May your insights be worthy.