Micro Focus QTP (UFT) Forums
How does QTP detect error messages? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How does QTP detect error messages? (/Thread-How-does-QTP-detect-error-messages)



How does QTP detect error messages? - melody - 09-10-2008

1)How does QTP detect an error message?For example, if a database error occurs, it gives an error message.This is an anticipated situation, and so there is no way to record this.Is there a way to include that error message into the script by means of descriptive programming?Or any other way to notify us that such an error has occurred?
2)How can descriptive programming done to check for texts.

Thanks .


RE: How does QTP detect error messages? - kishoreinchennai - 09-11-2008

Did u try database checkpoint.

regards
Kishore


RE: How does QTP detect error messages? - melody - 09-12-2008

How wud database checkpoint work??I want to check for the error message that would appear on the web page, if at all any database error occurs.


RE: How does QTP detect error messages? - siri - 09-12-2008

Hi melody,
This is sirisha.As per your question we have an option submit defect to QC when an error occurs in the qtp .
So select that option so that the error is posted to qc
Database connectvity can be done thorough COM commands
write a program to conenct to the database
then run the script in qtp
so when a error comes it will be automatically posted to QC


RE: How does QTP detect error messages? - dial_QTP - 09-23-2011

When I run QTP script, i got an alert message from a web application, I want QTP catch up that message.Can anyone tell me "How does QTP catch up an error message from a web application while it is running??