Squish tip of the week: Tips Updating Objects after Application Changes

Squish tip of the week: Tips Updating Objects after Application Changes

Applications change. It’s being able to handle change well that keeps your maintenance time to a minimum.

Squish makes it easy to update changed objects from a single location, instead of everywhere the object is used in your Test Suite:

  1. Identify the object requiring update
  2. Modify the property values in the real name to reflect the updated object
  3. Save Object Map changes

NOTE: No changes needed in your test scripts

As the majority of the objects referenced in your test scripts use Symbolic Names, an update is only required in the Object Map. The Object Map contains a list of Symbolic Names and their corresponding Real Names. The Real Name’s properties and values which tell Squish where to find an object.

A menu change within your application? You either catch this in a planning phase, or perhaps it surprises you when a test fails unexpectedly. Either way, the change is quick and painless.

  1. Identify the object requiring update:
    • Browse manually to the Symbolic Name in the Object Map or
    • Locate any usage of the object by it’s Symbolic Name in a script, right-click and select Open Symbolic Name
  2. Modify the property values in the real name to reflect the updated object
    • Manually edit the value of the changed property in the Object Map entry or
    • Use the Object Pick tool to select the updated object, select Copy Real Name, return to the Object Map, and with the original Object Map entry selected click Replace Real Name.
  3. Save Object Map changes

Want to verify the new object is identified as expected without running a test again?

Use the Check Existence and Highlight Object features in the Object Map.


Further reading:
Symbolic Names
Object Map
Check Object Existence