Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to open IE when QTP is already launched
#1
Solved: 10 Years, 9 Months, 1 Week ago
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.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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.
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP does not record the first step of open filight reservation application. Blossoms 9 17,322 07-20-2015, 05:50 PM
Last Post: AJAJ
  When QTP is open am not able to open my AUT. chetan3987 2 2,942 02-12-2014, 01:18 AM
Last Post: supputuri
  How to enter values into excel which is already open using QTP Narayanan 1 4,207 12-11-2013, 07:30 AM
Last Post: basanth27
  cannot open QTP tests learnasugo 8 8,746 10-18-2012, 11:28 AM
Last Post: Ankesh
  How to open html file and update values in particular cell of a table in QTP? yogesh kancherla 2 5,924 10-11-2012, 05:59 PM
Last Post: yogesh kancherla

Forum Jump:


Users browsing this thread: 1 Guest(s)