Self healing tests / auto update locators in run time

Self healing tests / auto update locators in run time

Hi Sriram,

Something I used to be guilty of and had to learn to overcome, is that it’s possible to be too concise.

It’s not clear if you are asking a question or making a statement?

Dave.

1 Like

Is their a way/ any techniques or open source libraries available for self healing tests in robot framework?

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