Posts taggés avec ‘tip of the week’

  • Custom Test Result Reporting Using Log Levels

    By on avril 29, 2020

    Categorizing log output into different levels allows you to decide whether you want to have more or less detailed messages in your test results. Squish does not offer a ready-made function for different log-levels, but you can easily create this functionality. We’ll use the test.log(message, detail) Squish API which...

    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
  • 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
  • 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
  • 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
  • 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
  • Automate UI Testing of Windows applications under Wine on Linux

    By on juillet 17, 2018

    If your Windows application runs fine under Wine, you can automate the GUI tests of your application using Squish for Windows running under Wine on Linux too. One reason to try Wine is to get a broader variation of Windows OS’es for finding hard to trigger bugs. Also, compared...

    En savoir plus
    froglogic
  • Replay Squish tests using the ‘squishtest’ module

    By on juin 19, 2018

    Why? Since 5.1, Squish offers a squishtest Python module. It lets you use Squish as a module in Python scripts without involving the squishrunner. If using the squishtest module helps you improve your testing efforts but you already have a lot of existing testcases (written in Python), this might...

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

    En savoir plus
    froglogic