set_save_diffs method

Class: ConfigurationPlatform: ImagesLanguage: Python SDK:

Use this method to set if steps that have mismatches should be automatically saved to the baseline or not.

In the usual workflow, if Eyes finds mismatches, you use the Test Manager to view the mismatches, accept or reject the steps with mismatches, and then update the baseline with the images captured in the accepted steps. This method allows you to instruct Eyes that where steps have mismatches, or where there are new or missing steps, the corresponding steps in the baseline should be updated with the images captured in this run of the test.

Using this method completely overwrites your baseline. It is preferable to see the results in the Test Manager and, if necessary, to accept all differences there. If you do use this method, remember to remove the call to this method once the baseline is ready for use in the normal way.


configval = config.set_save_diffs(save_diffs)
config.save_diffs  = configval
configval = config.save_diffs

Note that this feature is available as both a method and a property.


Set to True to configure Save Diffs functionality.

Return value

Type: Self
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.