Reporter.ReportEvent

59 views
Skip to first unread message

Suresh Bhandari

unread,
Jul 30, 2012, 1:26:49 PM7/30/12
to mercu...@googlegroups.com
Hi All,

I opt the below option in the QTP, Tools Options but still unable to capture image and those images are getting saved they are scattered.

Tool >> Option >> Run >> Screen Capture >> Save still image captures to results : - Always"

Now i want to capture image and want to place in the report using below method 

        Desktop.CaptureBitmap("<<imagepath>>")
        Reporter.ReportEvent micPass, "ReportStepName", "Details", "<<imagepath>>"

But the problem is, I can't modify library file for each Reporter.ReportEvent, I just want to update  Reporter.ReportEvent such that it capture the screenshot and placed in the Report file.


Thanks in advance,


Thanks and Regards,
Suresh Bhandari


Reply all
Reply to author
Forward
0 new messages