Micro Focus QTP (UFT) Forums
How to retrieve the status of a checkpoint ? - 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 retrieve the status of a checkpoint ? (/Thread-How-to-retrieve-the-status-of-a-checkpoint)



How to retrieve the status of a checkpoint ? - upadhyay40 - 12-07-2009

Hello All,

I have a checkpoint, so how would i check that this checkpoint returns passes or fail either true or false
i write a code

Code:
Dim a
   a = Browser("abc").Page("abc").Check CheckPoint("InvalidUserName")
   msgBox(a)
IF a then
...
Else
...
End If

But it shows warning at second line where i assign checkpoint to 'a'

can anybody help me out

Thanks

Mahesh
Hello All,

I solve my problem,we have used parenthesis before and after ‘CheckPoint(”Y”)’, this is required when we want to capture the value returned from Check method. If the return value is not to be capture and only the Checkpoint needs to executed we can use
Code:
‘Browser(”X”).Page(”X”).WebEdit(”X”).Check CheckPoint(”Y”)
a = Browser("Retail Activity Management").Page("Task Manager").Check (CheckPoint("InvalidUserName"))

Thanks
Mahesh


RE: How to check Checkpoint by descriptive programming - v_selvam - 12-07-2009

I don't think QTP will alow to use Checkpoint in descriptive programming.

Any one tried this?


RE: How to check Checkpoint by descriptive programming - basanth27 - 12-08-2009

@V_selvam - Where is the question about using Descriptive Programming asked by upadhay?


RE: How to check Checkpoint by descriptive programming - Ankur - 12-08-2009

I think v_selvam saw the thread title, actually I too got confused since there was no relation between the thread title and post inside.

[I have edited the thread's title now]


RE: How to retrieve the status of a checkpoint ? - upadhyay40 - 12-14-2009

Hello All,

Sorry for confusing all just bacause of my thread title, but thanks to help

Mahesh