Posts taggés avec ‘script’

  • 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
  • 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
  • BDD Test Cases in Squish: Clean Up After Your Scenarios!

    By on juin 12, 2018

    Squish allows creating functional tests for user interfaces in a behaviour-driven (BDD) style, enabling the tester to concentrate on what the user does (« enter user name, confirm login dialog ») instead of how it is done (« enter this, click there »). Leveraging the scripting languages supported, a very elegant scheme for…

    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
  • Squish & Python

    By on avril 17, 2018

    Squish is shipped with different scripting languages allowing to start recording or writing tests cases in any of them without lengthily setup. The list is: Ruby, JavaScript, Perl, Tcl and the one of interest in this article Python. The intent of this article is to provide information that might...

    En savoir plus
    froglogic
  • Using the Remote System API to start an AUT on Windows

    By on février 27, 2018

    The Remote System API can be used to start applications on a remote system. As you can see in the picture below the Remote System API is centered around the Squishserver. This makes it possible to interact with the filesystem and to start processes on the system the Squishserver...

    En savoir plus
    froglogic
  • Synchronized batch execution of Squish

    By on octobre 24, 2017

    Squish test execution involves multiple processes which may even run on different machines. Ensuring that all parts are up and running before actual test execution can be challenging sometimes. The following shows a little trick how automated setups can wait for a local or remote squishserver to become available...

    En savoir plus
    froglogic
  • Overview of the new file comparison functions in Squish 6.3

    By on septembre 12, 2017

    With Squish 6.3 we added two new file comparison functions. The objective is to make it easier to verify not just the application state but also the output an application might generate. Squish now offers a general comparison function test.compareTextFiles. This function can be used to compare any type...

    En savoir plus
    froglogic
  • Accessing a SQL database from your JavaScript Test

    By on juin 19, 2017

    A common task in GUI tests is to automate entering some data into forms. To properly test and verify such scenarios, it is often necessary to interact with the database backend from the test. As an example, let’s take the evaluation form on our website and assume we’d like...

    En savoir plus
    froglogic
  • Squish Tip: Silent verifications

    By on mai 30, 2017

    Motivation The verification functions provided by Squish have built-in logging that can be augmented or customized, one of this customizations allows to silence the logging of test.vp() calls. In Squish the synchronization between the test script and the application is mostly done via the use of the waitForObject() functions. This means...

    En savoir plus
    froglogic