Micro Focus QTP (UFT) Forums
How to capture the checkpoint result in the script - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to capture the checkpoint result in the script (/Thread-How-to-capture-the-checkpoint-result-in-the-script)



How to capture the checkpoint result in the script - geethwind - 09-22-2009

Hi

I need to handle a situation depending on the checkpoint output.

when i have this checkpoint in the script, directly it shows the result in the results after the script is run.

Ex:
Code:
Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check CheckPoint("IBM WebSphere Portal_10")
Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check CheckPoint("IBM WebSphere Portal_11")
Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check CheckPoint("IBM WebSphere Portal_12")


is there anyway, i can get the result of the checkpoint captured to handle few things before the result gets prinited.

Thanks for the help.

-Geetha


RE: How to capture the checkpoint result in the script - sreekanth chilam - 09-22-2009

Hi Geetha,

Try as given below:

Code:
Chk1=Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check (CheckPoint("IBM WebSphere Portal_10"))
Msgbox Chk1

Chk2=Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check (CheckPoint("IBM WebSphere Portal_11"))
Msgbox Chk2

Chk3=Browser("IBM WebSphere Portal").Page("IBM WebSphere Portal").Check (CheckPoint("IBM WebSphere Portal_12"))
Msgbox Chk3



RE: How to capture the checkpoint result in the script - basanth27 - 09-22-2009

Hi Geetha,
As a request, one of the best practices followed on the forum is to search through the existing post. We have a wonderful search functionality defined in the forum guidelines and i am pretty sure this issue was discussed several times before.

Just a suggestion. This will help you spend less time to post and wait for an answer. :-)


RE: How to capture the checkpoint result in the script - NevadaMike - 03-17-2011

I couldn't find an answer to this post and I have the same question. Can someone help or direct me?


RE: How to capture the checkpoint result in the script - basanth27 - 03-17-2011

Please do not open old posts. The question raised by the questioner has been answered. Please open a new post for the question you have specific details.