01-28-2010, 03:13 AM
I have the below code in my script. I would like to fail the test if the checkpoint passes. That means , if a particular unwanted text is displayed on the page, then I want to fail it. So I inserted a check point to check if the unwanted text is present. But when it is present the check point is passing and the test is also passing. Could you please suggest how to resolve this issue. How to find out what has been retunred to 'a'.?
Code:
a=Browser("Name").Page("Page").WebEdit("edit box").Check (CheckPoint("error"))
Code:
If a = Pass Then
reporter.ReportEvent micfail , "arrival date", "todays date not displayed"
End If