Micro Focus QTP (UFT) Forums
Not able to open IE when QTP is already launched - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to open IE when QTP is already launched (/Thread-Not-able-to-open-IE-when-QTP-is-already-launched)



Not able to open IE when QTP is already launched - venu - 02-16-2009

Hi

I have the below issues with my QTP:
QTP 9.2 is installed on my machine and IE 6.0 is installed

1. When QTP is already open, not able to launch Internet Explorer either through script or Manual
2. In recording mode (Recording & Run settings done for a URL) the website is displayed for few seconds and then closed down.

Unfortunately I don't have any attachments to add to this. Please help me with this. Thank you.


Capture Screen Shots in the Results - manojith1984 - 02-24-2009

Hi
Is it possible to Capture Screen Shots only when we report as an error.
Or customize the Screen Shots in the Report as per the requirement.

I know we can use Browser(...).CaptureBitmap "" to take the screen shots but using this command we have to store the image in a seperate file like '.bmp' or '.png' etc. But my requirement is to save the screen shots in the Reports generated by QTP itself.


RE: Capture Screen Shots in the Results - sankati praveen - 10-05-2009

Hi,

U can generate the screenshots in the QTP generated report itself. Just follow the below code:
'just give the relative path
filename="C:\Documents and Settings\kspl601\Desktop\Sample\RFC-Screenshot1.bmp"
Browser("Browser").Page("Cool").CaptureBitmap filename,True
Reporter.ReportEvent micPass,"image","&lt;<img src='" & filename & "'>"

'this will store ur screenshot in the QTP generated report as well as in ur desired location where u stored ur file