Posts tagged with ‘Scripting’

  • Monitoring long-running tests by intermediary logging of results

    By on October 2, 2018

    Motivation The set of tests being run on an application tends to grow as more features are added, or more bugs are fixed. This comes at the cost of execution times: for example, a test suite that took 30 min could now take 2 hours. Since normal logging info/test results...

    Read more
    froglogic
  • Live update of Python code during debugging, using builtin reload()

    By on August 28, 2018

    Introduction When debugging a Test Script, one can use Python’s built-in reload() from the Squish Script Console to get recent changes to module functions in the currently running Test Execution. Debugging Python Test Scripts While debugging your Test Scripts in the Squish IDE, the Script Console might come in...

    Read more
    froglogic
  • Convert Text-Based Object Maps to Script-Based Object Maps

    By on August 1, 2018

    With Squish 6.4 we introduced script-based object maps, which provide a more powerful way to manage object names. Script-based object maps will enable you to use native script language concepts to organize the object map, to reduce redundancy and to help with dynamic object lookup. In this article I...

    Read more
    froglogic
  • Difference between “Object not found” and “Object not ready” errors

    By on May 22, 2018

    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 of...

    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