12-09-2010, 09:25 PM
I resolved my problem
I am using QTP 9.5, If anyone knows of a better way of doing this please let me know.
Thanks
Code:
IF Browser("My Web").Page("Reporting").Link("Update and Check").Exist(4) THEN
reporter.ReportEvent micFail, "Admin Links", "Admin Links should only be available for Admins"
ELSE reporter.ReportEvent micPass, "Admin Links", "This is correct as no Admin Links are available"
END IF
I am using QTP 9.5, If anyone knows of a better way of doing this please let me know.
Thanks