I am using reporter class in QTP, how can I put image link in the reporter.reportevent ? I came across this code here, I tried using it but I know Iím missing out something. The image is located in a local disk drive. Thanks!
Reporter.ReportEvent micWarning, "link","&lt; <A HREF=" & x & " target='_blank'> Go to google </A>"
Hmmm...The issue seems to be with IE security settings...I found the below on one of the forums
[ QUOTE ]
The issue you are encountering is a new security feature in Internet Explore 6 Service Pack 1. In order to prevent Internet vicious codes from accessing your local files, the development team developed the new security feature and included it in IE6 SP1. Please be advised that this is a normal behavior.
Actually, IE6 SP1 includes new security code checks that prevent "zone elevation". This means that documents located in the "Internet" zone will not be granted access (through HREFs, scripting...etc) to documents in the "My Computer" zone. Only documents located in the "Trusted" or "My Computer" zone can access documents in the "My Computer" zone.
Therefore, if you want to allow untrusted documents to access documents in the "My Computer" zone, you might add the source URL in "Trusted sites" (this must be done with caution for obvious security reasons). The "Local Intranet" zone is trusted as well.
Furthermore, the following registry key allows disabling the new security codes check that prevent "zone elevation":
- You can create this DWORD key and set it zero to disable this new feature. Also, you can enable it by changing it to 1 at any time.