Posts tagged with ‘Scripting’

  • Difference between “Object not found” and “Object not ready” errors

    By on May 22, 2018

    Unsuccessful object synchronization functions such as waitForObject() or waitForObjectItem may return various error messages. Fully understanding these messages is important to debug a test script. Squish recognizes GUI objects by a subset of their properties and values. In the example below, we would like to click on an object...

    Read more
    froglogic
  • Navigate and overlook test script code efficiently

    By on April 30, 2018

    Creating and maintaining Squish tests requires a fair bit of editing the test scripts. It can become very tedious to navigate in bigger script files with arrow keys or by searching. In this article I present means to navigate directly to script functions and types. The navigation also provides...

    Read more
    froglogic
  • Squish & Python

    By on April 17, 2018

    Squish is shipped with different scripting languages allowing to start recording or writing tests cases in any of them without lengthily setup. The list is: Ruby, JavaScript, Perl, Tcl and the one of interest in this article Python. The intent of this article is to provide information that might...

    Read more
    froglogic
  • Iterating over Tables in a native Mac (Cocoa) GUI Test

    By on March 6, 2018

    Neha wrote a blog article about Iterating over Tables in a Qt GUI Test a couple of weeks ago. I want to do the same in this blog article with the Squish for Mac and a Cocoa application. The application uses the NSTableView class for displaying tables. Motivation As Neha pointed out, there...

    Read more
    froglogic
  • Using the Remote System API to start an AUT on Windows

    By on February 27, 2018

    The Remote System API can be used to start applications on a remote system. As you can see in the picture below the Remote System API is centered around the Squishserver. This makes it possible to interact with the filesystem and to start processes on the system the Squishserver...

    Read more
    froglogic
  • Iterating over Tables in a Qt GUI Test

    By on February 20, 2018

    The Automated GUI Testing Tool Squish makes it possible to verify entire tables using a table verification point, but there are times when the requirements of a test case make it necessary to iterate over the items of the table in a GUI test. For example in cases where...

    Read more
    froglogic
  • Use of script language closures

    By on January 30, 2018

    All supported script languages in the automated GUI Testing Tool Squish support closures. In this blog I’ll write up a simple example how closures can be used to unify function calls that seem to have different set of arguments. Assume a test snippet that tests two ways to open a settings dialog,...

    Read more
    froglogic
  • Squish Tip: Good use of the waitFor() function

    By on December 12, 2017

    The Squish script API features a useful function called waitFor; what’s less known is the fact that this function not only supports being called with a script statement but also with an arbitrary callable value.

    Read more
    froglogic
  • Improved Management Of Object Names – Part 2

    By on July 25, 2016

    In a previous blog entry, we introduced an alternative, script-based, approach to maintaining a mapping of symbolic names (variables) to the actual object names (strings). By using script variables instead of free-form strings, the mapping was no longer stored in a separate text file but instead it was brought...

    Read more
    froglogic
  • Improved Management Of Object Names

    By on July 19, 2016

    TL;DR: Using plain script language variables over the standard objects.map file simplifies refactoring and maintenance at the expense of losing the ability to generate (or reuse) the names when recording. NOTE: Throughout this blog article, we will use the JavaScript language for code samples. Everything shown here can be...

    Read more
    froglogic