New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Captain
Captain
373 views

Check Checkpoint

How doing guys? 

I have one. How i can find my checkpoint status in runtime?

I want to exit test if it is failed. Tried like this:

Status = SwfWindow("Form1").SwfEditor("richTextBox2").Check CheckPoint("richTextBox2")
If Status Then
   print "Checkpoint Passed"
Else
   Print "Checkpoint Failed"
   ExitTest
End if

 But below error occurs: 

2018-08-08_17-55-46.jpg

0 Likes
2 Replies
Highlighted
Commander
Commander

Hi Gan-Orgil,

Hope you are doing great,

I have found the following sample code that we can try:

code:
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))
if chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if

Let us know the results!

Regards,

 

Highlighted
Captain
Captain

Thank you Michael, 

It works , i have made little bracket mistake :))

Keep up doing 

Gan-Orgil

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.