Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we use checkpoint as a condition statement?
#1
Solved: 11 Years, 3 Months, 4 Weeks 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, 3 Months, 4 Weeks 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, 3 Months, 4 Weeks 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, 3 Months, 4 Weeks ago
Hi Ritesh,
Try:
Code:
chkpointstatus = Window("OWVersion").WinObject("#32770").Check (CheckPoint("ReadyState-Verification"))
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks 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,906 05-04-2016, 11:28 PM
Last Post: supputuri
  Condition/Outcome Branching within Script danielrose01 3 3,399 06-13-2012, 10:29 AM
Last Post: sshukla12
  While Wend condition raaj123 3 3,680 06-11-2012, 06:25 PM
Last Post: ravi.gajul
Wink standard checkpoint and text checkpoint kiran10_rm 1 5,355 11-18-2010, 05:16 AM
Last Post: nandu
  if condition throwing type mismatch error rrdamuluri 2 4,100 11-04-2010, 10:51 PM
Last Post: rrdamuluri

Forum Jump:


Users browsing this thread: 2 Guest(s)