Posts tagged with ‘tip’

  • Connect an Oracle database via ODBC to Squish using JavaScript

    By on December 5, 2017

    Squish is able to connect to different databases and excecute all known SQL statements. Most of the databases need to be accessed by the ODBC driver because the database vendor’s license does not permit redistributing their client libraries without owning a license for their product. The creation of a...

    Read more
    froglogic
  • Verify objects that appear only for short durations

    By on November 21, 2017

    Many applications that carry out a long-running task in the background display a dialog indicating the progress of the task. The dialog may block access to the application too if other actions do not make sense while the task is running. These dialogs usually appear and disappear by themselves,...

    Read more
    froglogic
  • Squish Tip: Synchronization with waitUntilObjectReady()

    By on November 14, 2017

    waitUntilObjectReady() is a callback function that by default, does nothing, but it can be defined in your test scripts to do anything you want. The method is called just before waitForObject() returns, and gets as an argument, the object that Squish thinks is now ready to get events. It...

    Read more
    froglogic
  • Overview of the new file comparison functions in Squish 6.3

    By on September 12, 2017

    With Squish 6.3 we added two new file comparison functions. The objective is to make it easier to verify not just the application state but also the output an application might generate. Squish now offers a general comparison function test.compareTextFiles. This function can be used to compare any type...

    Read more
    froglogic
  • Enabling Squish to hook into Sub-Processes started by the AUT

    By on September 5, 2017

    Often more complex application do not consist of just a single executable. Instead the main application launches sub-processes which also open a user interface. Squish is designed in a way to also hook into sub-processes started by the main application under test (AUT). But depending on the platform and...

    Read more
    froglogic
  • Squish Tip: Silent verifications

    By on May 30, 2017

    Motivation The verification functions provided by Squish have built-in logging that can be augmented or customized, one of this customizations allows to silence the logging of test.vp() calls. In Squish the synchronization between the test script and the application is mostly done via the use of the waitForObject() functions. This means...

    Read more
    froglogic
  • Define your own Symbolic Names

    By on February 21, 2017

    Usually when Squish adds an object to the Object Map, Symbolic Name is created as a combination of its properties (e.g. caption and type of the selected object). Thanks to that, most of the time it’s easy to identify objects behind these names. However, there are cases where it...

    Read more
    froglogic
  • Overriding Squish functions

    By on February 1, 2017

    Motivation There may be cases where one wants to change the behavior of the functions provided by Squish. For example, even though the default timeout of waitForObject() is 20 seconds (which usually is enough for a GUI control to be “visible and enabled”), in some rare cases one may...

    Read more
    froglogic
  • Upcoming feature “script-based object map”

    By on January 18, 2017

    Upcoming feature: Script-Based Object Map In July 2016 two blog articles presented an alternative script-based Object Map approach for advanced management of object names. The idea is to use script language variables instead of string-based Symbolic Names for object look-up and interaction functions. As shown in the examples below,...

    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