Dumping all objects

Last edited on

For analysis and sharing information Squish supports creating snapshots of objects and all their children via the Squish IDE (covered at Saving object snapshots ) and the test script function saveObjectSnapshot() .

To easily save all objects of the current application with a single function call, a helper function can be used (from file dump_toplevel_objects.py ; store it in the folder with test case test.py or in a Global Scripts folder):

# -*- coding: utf-8 -*-

import names

from dump_toplevel_objects import *

def main():




After execution the Squish IDE has an extra section with more information and a link to each object snapshot file:

The resulting files can be opened with SQUISH_DIR/bin/uibrowser to inspect the object hierarchy and properties of objects: