Can UFT/QTP capture the number in an image?

  • Questions
  • Can UFT/QTP capture the number in an image?
Question ID: 105458
0
0

Is there a way UFT/QTP can capture the number or letters in an image?

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on June 30, 2014 9:12 pm
5 views
Answers (1)
0
Private answer

This is like CAPTCHA and below is HP recommendations on this concern.

CAPTCHA objects are designed to prevent automation

CAPTCHA objects are designed to ensure that a human is interacting with the application, not a computer. These controls are designed to prevent automation. With this in mind, QuickTest Professional does not have a method to capture the text from the object. You will most likely need to test that portion of the application manually.

Here are a couple suggestions you can consider:

1. If possible, limit the CAPTCHA control (during the testing phase) to only a few words/letter combinations. Then use QuickTest Professional to cycle through these defined words/combinations. Again, this limitation on the control would only need to be done in the testing phase.
2. If possible, ask your developers to add a method which will capture the characters used in the CAPTCHA control at runtime. Then, have QuickTest Professional call that method, retrieve the text, and enter it into the field as needed. Once again, this method would only need to be in place while the testing the application.
3. If possible, ask your developers to add a flag that will allow you to bypass the control during the testing phase.
4. Depending on the settings used within the CAPTCHA control, you may be able to use another application (for example, OCR software) to read the text from the image and return that text to QuickTest Professional. Once QuickTest Professional has the text, it can be entered into the field.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on June 30, 2014 9:13 pm