Sticky behavior

Top  Previous  Next

By default, all behaviors in Isolator++ Professional are sticky, meaning that once a behavior is defined, it remains in effect until explicitly cleared.

 

For example, if you configure a method to return a specific value, it will continue to return that value every time it is called. When defining a sequence of behaviors, the last specified behavior persists for the lifetime of the test or until the Isolator object is deleted. For more details, see Test Structure.

 

Sticky behavior makes tests more robust to changes by ensuring that refactoring or modifications to internal implementation details do not break tests unnecessarily. If a method is called more times than originally expected due to internal changes, the test will continue to function correctly without requiring updates.

This reduces test brittleness and helps maintain long-term stability.


Copyright  Typemock Ltd. 2009-2025.  All Rights Reserved.