Posts taggés avec ‘Tip of Week’

  • External Resources for BDD Through Data Tables

    By on novembre 19, 2019

    You can use so-called data tables to execute a specific Behavior-Driven Development (BDD) GUI test scenario in a data-driven way. Create tables to define test data and use this data to drive your test. Since Squish 6.5.0, it is possible to refer an external file for such data. Data...

    En savoir plus
    froglogic
  • Improved Syntax Highlighting for the Script-based Object Map

    By on juillet 30, 2019

    Introduction With the release of the Script-based Object Map, we also added some syntax highlighting options to the Squish IDE. As references to the Script-based Object Map will make up a big part of your test scripts, it’s important to be able to see at first glance which scripted...

    En savoir plus
    froglogic
  • Integrating Java Code Coverage Tools With Squish Tests

    By on avril 16, 2019

    In test-driven development, a common challenge is to decide which tests to write and how many are necessary. Ideally, one would have as many tests as there are possible deviations in a program’s behavior. This is often very hard to achieve though, so it is necessary to determine how...

    En savoir plus
    froglogic
  • Using Squish for Windows and Image-Based Object Lookup for Automation via VNC

    By on février 11, 2019

    If you are unable to install Squish on the device you want to test, and you are using a GUI toolkit not supported by Squish so that using the Built-In Hook is not an option, you might still be able to test your application using Squish for Windows and...

    En savoir plus
    froglogic
  • Code Coverage for C# Programs With Visual Studio

    By on janvier 22, 2019

    Squish Coco is mostly used for programs written in C++, but it also supports code coverage for C# programs. The preparation of a C# program for code coverage is rather simple, thanks to a Visual Studio add-in that is part of Coco. This post is a short tutorial about...

    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
  • 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
  • Automating Java Web Start applications

    By on août 14, 2018

    The Squish for Java edition not only supports testing Java Swing/AWT, SWT/Eclipse RCP or JavaFX based applications but also Java Web Start applications. There are two ways to automate an application started via Java Web Start: 1. Start via web browser 2. Start via the tool javaws 1. Start...

    En savoir plus
    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...

    En savoir plus
    froglogic