Self healing tests / auto update locators in run time

Hi Sriram,

Yes there are, personally I’m not a fan,

  • Firstly you should write good locators, based on the standards the app it written to, e.g. use the field label to locate the field, or use the accessibility text to locate the field, these are things that should not be changing.
  • if you test cases are well written and the a step fails there must be a reason, so rather than auto-fixing it and getting a false positive, you should asses the failure for:
    • is this change a defect?
    • does the test need updating as a result of a change request?

So a quick search for “robot framework self healing” produced links like:

Hopefully those links will help,

Dave.

1 Like