cancel
Showing results for 
Search instead for 
Did you mean: 

Using OCR checkpoint in IF then condition

SOLVED
Highlighted
Occasional Visitor

Using OCR checkpoint in IF then condition

Hi,

 

I am trying to use OCR object in an if then loop but it doesn't let me select the required text to verify. Please suggest any alternative available.

Also When self healing is enabled in test complete and if then conditions are used in keyword test the test complete starts self healing when object is not found even when it should skip the loop .

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: Using OCR checkpoint in IF then condition

@bhanu766 Could you please clarify what you mean by saying "it doesn’t let me select the required text to verify"? What exactly do you want to do? What is the difference between the actual and expected results?

 

About the Self Healing mode: if I understand correctly, the behavior you described is the correct behavior. This mode is created to automatically fix recognition errors (e.g. "object doesn't exist"). Here is the quote from our documentation (https://support.smartbear.com/testcomplete/docs/testing-with/running/self-healing-tests.html
"When the mode is active and the test engine fails to find an object, it tries to find a similar object in the system."
If the "object doesn't exist" error is part of your test, and you don't need to fix this recognition error, we suggest that you disable the Self Healing mode.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

2 REPLIES 2
Highlighted
Community Manager

Re: Using OCR checkpoint in IF then condition

Thank you for posting your questions.

 

Anyone working with OCR, Community?🙂

 

@BenoitB @NisHera @AlexKaras @m_essaid 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Community Manager

Re: Using OCR checkpoint in IF then condition

@bhanu766 Could you please clarify what you mean by saying "it doesn’t let me select the required text to verify"? What exactly do you want to do? What is the difference between the actual and expected results?

 

About the Self Healing mode: if I understand correctly, the behavior you described is the correct behavior. This mode is created to automatically fix recognition errors (e.g. "object doesn't exist"). Here is the quote from our documentation (https://support.smartbear.com/testcomplete/docs/testing-with/running/self-healing-tests.html
"When the mode is active and the test engine fails to find an object, it tries to find a similar object in the system."
If the "object doesn't exist" error is part of your test, and you don't need to fix this recognition error, we suggest that you disable the Self Healing mode.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors