Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we use checkpoint as a condition statement?
#1
Solved: 11 Years, 4 Months ago
CheckPoint

Code:
If Window("OW(Version").WinObject("#32770").Check CheckPoint("ReadyState-Verification") =true then

end if

I am looking some thing like that...
Any suggestion how to make checkpoint as conditional statement ?

Thanks for any suggestion.
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Ritesh,
Save the value of checkpoint in a variable. As the value is boolean you can use the variable itself as condition:
Code:
dim chkpointstatus
chkpointstatus = Window("OW(Version").WinObject("#32770").Check CheckPoint("ReadyState-Verification")
If chkpointstatus then
    <something>
Else
    <something else>
end if
Reply
#3
Solved: 11 Years, 4 Months ago
Hi manish,

thanks for help.
however I am getting error on below statement "Expected End of Statement"
Code:
chkpointstatus = Window("OW(Version").WinObject("#32770").Check CheckPoint("ReadyState-Verification")
Is that same way to store Checkpoint result or any otherway ?
Thanks in Advance
Reply
#4
Solved: 11 Years, 4 Months ago
Hi Ritesh,
Try:
Code:
chkpointstatus = Window("OWVersion").WinObject("#32770").Check (CheckPoint("ReadyState-Verification"))
Reply
#5
Solved: 11 Years, 4 Months ago
Thanks Manish. Its done.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,912 05-04-2016, 11:28 PM
Last Post: supputuri
  Condition/Outcome Branching within Script danielrose01 3 3,420 06-13-2012, 10:29 AM
Last Post: sshukla12
  While Wend condition raaj123 3 3,706 06-11-2012, 06:25 PM
Last Post: ravi.gajul
Wink standard checkpoint and text checkpoint kiran10_rm 1 5,363 11-18-2010, 05:16 AM
Last Post: nandu
  if condition throwing type mismatch error rrdamuluri 2 4,109 11-04-2010, 10:51 PM
Last Post: rrdamuluri

Forum Jump:


Users browsing this thread: 2 Guest(s)