Tip of the Week

  • What is ‚Regression Testing‘?

    By on Mai 29, 2018

    A regression in behavior means an undesirable behavior that was present and fixed once before, or a previous feature that worked before and is now broken. During the process of developing the fix, there should also be an automated test developed, that would fail before and pass after the...

    Weiterlesen
    froglogic
  • Difference between „Object not found“ and „Object not ready“ errors

    By on Mai 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...

    Weiterlesen
    froglogic
  • SQLite driven testing using Javascript

    By on Mai 16, 2018

    Data Driven Testing (DDT) is a method to structure tests. It is recommended for a huge set of data which may grow in the future. Code has to be written only once and new data can be fed into the test without touching the code at all which is...

    Weiterlesen
    froglogic
  • Screenshot Verification Points for Menus & other volatile Objects

    By on Mai 8, 2018

    Creating a screenshot verification point (VP) usually consists of these steps: Bring the AUT into the desired state. Pick the desired object. In Application Objects view check the checkbox besides the object. However, if the object is a volatile object, for example a menu, then picking it may be...

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

    Weiterlesen
    froglogic
  • Unit tests for Qt-based applications with Catch

    By on April 10, 2018

    Unit tests for Qt-based applications with Catch Squish for Qt is a perfect fit for testing Qt based user interfaces, however an application always consists of quite some backend code as well. Unit tests are one central piece of testing this backend code.

    Weiterlesen
    froglogic
  • What exactly is cyclomatic complexity?

    By on April 3, 2018

    The cyclomatic complexity is a measurement of the code complexity proposed by Thomas J. McCabe which is often considered as a magic number which allows us to measure the complexity of a program. It is common to say that a function with a cyclomatic complexity higher than 10 is...

    Weiterlesen
    froglogic
  • New Property for Identification of WPF Images

    By on März 20, 2018

    Some WPF Image objects have a string representation of the nativeObject.Source property which can be used for their identification. This property will be exposed as the ’source‘ property of Image objects in the new Squish release 6.4.

    Weiterlesen
    froglogic
  • Run Squish IDE with custom preferences

    By on März 14, 2018

    Motivation Sometimes, it may be desirable to start the Squish IDE with a non-default set of preference settings. Let’s consider a corporate environment where every tester is supposed to work with the same preference settings. To avoid configuration errors, and to help in deploying changes to everyone, the testers...

    Weiterlesen
    froglogic
  • How to modify the waitForObject() timeout

    By on Juli 6, 2016

    Troubleshooting a script can be long and exhausting especially if there are objects which can not be found. Fortunately, we can adjust the timeout duration for waitForObject to save us some time. By default the duration of waitForObject is 20000 milliseconds (20 seconds), which looks like this:   During...

    Weiterlesen
    froglogic