Tip of the Week

  • 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
  • Monitoring long-running tests by intermediary logging of results

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

    En savoir plus
    froglogic
  • Retrieve code coverage data via a remote debugger connection

    By on septembre 25, 2018

    Introduction By default, the code coverage tool Squish Coco creates a file with the extension .csexe upon the application exit with the code coverage information of the current execution. When working on an embedded device, this is not convenient because: Some embedded OSes do not have a file system...

    En savoir plus
    froglogic
  • Find unused functions in C/C++ code with coverage analysis

    By on septembre 18, 2018

    Unused functions impact maintenance Unused functions in a software project can cause code bloat, but they also create more work for the developers of tests, especially in the situation where code coverage (the quality) of tests is being measured. If a function is not used, then removing it from...

    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
  • Lesser known tips on BDD testing using Squish

    By on septembre 4, 2018

    Behavior-Driven Development (BDD) is an extension of the Test-Driven Development approach which puts the definition of acceptance criteria at the beginning of the development process as opposed to writing tests after the software has been developed. With possible cycles of code changes done after testing. Behavior Driven Tests are...

    En savoir plus
    froglogic
  • Live update of Python code during debugging, using builtin reload()

    By on août 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...

    En savoir plus
    froglogic
  • Finding and editing dead code with Coco

    By on août 21, 2018

    As part of the coverage report, Coco generates a list of lines with dead code. One would often like to remove these lines, but when they are spread over a large project, it requires some effort to navigate the editor to them. This can be made easier with a...

    En savoir plus
    froglogic
  • Use XPath in Squish for Web as Alternative to Object Names

    By on août 7, 2018

    The object names in Squish are a powerful feature, not only with the ability to look up objects, but also to synchronize on them. In Squish 6.4 this became even more flexible with the introduction of the script-based object map. But there are some situations left where the Squish...

    En savoir plus
    froglogic
  • Convert Text-Based Object Maps to Script-Based Object Maps

    By on août 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...

    En savoir plus
    froglogic