Posts taggés avec ‘Qt’

  • Accessing QQmlContext Properties in Squish Test Scripts

    By on août 6, 2019

    When loading a QML object into a C++ application, it can be useful to embed some C++ data directly that can be used from within the QML code. This makes it possible, for example, to invoke a C++ method on the embedded object, or use a C++ object instance...

    En savoir plus
    froglogic
  • Finding Table Cells by Header Text

    By on janvier 15, 2019

    Surely you have seen (screenshots of) huge Excel spreadsheets before. If not, just imagine a wall of numbers. Now imagine such a table in the application you need to test. Verifying a table cell by looking for the correct number? Not so easy. What would be better than looking...

    En savoir plus
    froglogic
  • Using Image-based lookups without running an AUT

    By on décembre 11, 2018

    The following article is prepared for the Qt toolkit, however, a similar approach can be applied to other toolkits supported by Squish. Introducing Image-based lookups in Squish 6.3 allowed users to interact not only with complex graphical objects in the Application Under Test (AUT), but with other elements displayed...

    En savoir plus
    froglogic
  • Code Coverage with QTest

    By on octobre 9, 2018

    Today’s tip will show how to measure code coverage for unit tests written using the Qt Test framework (or short QTest). The example A simple example for code that uses Qt which is tested via the Qt Test framework can look like the following. To keep it short the...

    En savoir plus
    froglogic
  • Using Squish to automate Qt Installer Framework UI Tests

    By on septembre 11, 2018

    The Qt Installer Framework got recently support for Squish. In this article you can see how to add Squish support to your installers which are based on this framework.

    En savoir plus
    froglogic
  • Coco – How to measure code coverage on embedded systems via CAN Bus

    By on avril 24, 2018

    Introduction Squish Coco generates the code execution measurement using streams and by default, the output of these streams is piped to a file on the file system. For embedded devices without a file system, this leads to problems. Squish Coco allows you to redirect the measurements stream via Custom...

    En savoir plus
    froglogic
  • Unit tests for Qt-based applications with Catch

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

    En savoir plus
    froglogic
  • Iterating over Tables in a Qt GUI Test

    By on février 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...

    En savoir plus
    froglogic
  • Debug Qt application while running Squish GUI tests

    By on novembre 10, 2017

    Some issues with Application Under Tests (AUT) appear only when a test is executed with Squish. For some cases, it’s easier run our test scenario with Squish than repeating it manually. To get a detailed information about the state of our AUT during a test execution, you can attach...

    En savoir plus
    froglogic
  • Enabling Squish to hook into Sub-Processes started by the AUT

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

    En savoir plus
    froglogic