tags:

views:

22

answers:

1
+1  Q: 

odd recording qtp

when i was creating text chepoing in qtp the recording results getting odd recording results

the scanned input is

alt text

and i get output like this insted of secs it display sees

alt text

and i made change in text like this sees to secs

alt text

but when i run the test the test result will be

alt text

I captured many times but it display same as above. I don't understand how display like this, please help me.

+1  A: 

The problem is that QTP recognizes the word secs in your application as sees, which causes the checkpoint to fail. Most probably, this happens because the text recognition is performed using OCR, which can't guarantee 100% accuracy. You can try changing the text recognition mechanism to Windows API and see if that helps. To do this, go to Tools > Options > General > Text Recognition and set the Use text recognition mechanisms in this order option to either Use Only Windows API or First Windows API then OCR.

If this doesn't help, you can replace the word secs in the checkpoint's Checked Text with a regular expression that matches both secs and sees:

[0-9]+ days, [0-9]+ hours, [0-9]+ mins, [0-9]+ se[ce]s

Also, make sure that the Regular Expression option is turned on for the Checked Text.

Helen
@helen thanks for u r replay, i check that one, it fails, but i create standard checkpoint it works for me.
Prime