Hi - I have around 30 - 40 checkpoints(all are text chk) in my script. Each time when I run the script, I am getting different results (x number failed, y number passed). All Test should pass as per my manual test. I tried using Wait property for all checkpoints that does not seem to help. Is there a way to get around this. Any help is greatly appreciated.
As Mark mentioned, it would help us to know what text you expected, and what text you found. Probably don't need all 40 of them, just an example or two.
Is it failing because it found an empty string? Maybe that text on the application wasn't quite created by the time QTP checked the object. I know you put in waitproperty statements, but sometimes QTP can find the property it's waiting for before the object is fully created. The text field might "exist" before there is anything in the text.
If not that, then maybe it's because there are extra spaces. So maybe you're looking for "sometext" but you're finding "sometext ".
If it's totally off the wall, like you're looking for "sometext" and you're finding "bunchofreallydifferenttext", then maybe it's some bug in your application, or a flaw in your test expectations.
thank you folks -
The check point actually returns an empty string. Also, after careful evaluation I found that by mistake in quite a few places I had given the waitproperty after the checkpoint. I will fix my script and let you know if there are still problems. Appreciate your response in regards to this.