Iím testing website and I need to be sure that it is running 24/7. I need a sample of script that sending the alarm email if site would go down. I know how to send email from QTP, I need a script, which is going to generate an error if some page is not opening.
Iíve tried Exist method but itís not reliable, sometimes I get False if page is up.
What are you using the .Exist on? Do you have smart identification enabled? What properties are you using to identify the object.
But false pass aside, I would not employ QTP for this task. There are better site monitoring tools out there than just running the same QTP script over and over 24x7. Certainly products much cheaper than a qtp license that would be tied up to do this too.
Guys, Thank you very much for help.
QTP is the only one tool that I have, thatís because Iím trying to solve my task by QTP.
I would probably use SudhakarKakunuri's advice with recovery scenario and defiantly check new tools.