Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using QTP to capture screen shot
#11
Solved: 11 Years, 3 Months, 3 Weeks ago
i was make a function for capturing screenshot and it will run properly, but my concern is to can i also pass image name and image url like dynamic. please review my code.

Class xyz


' Capture Screenshot

Function capture_bitmap(br,pg)
if browser ("title:="&br).page("title:="&pg).Exist(10) then
browser ("title:="&br).page("title:="&pg).CaptureBitmap "D:\way2sms\screenshot\login.bmp"

Reporter.Reportevent micPass,"success","data entry successful"
else
Reporter.Reportevent micfail,"fail","object identifiction unsuccessful "
End if
capture_bitmap="Screenshot Captured Successfully"
End Function


End class
Reply


Messages In This Thread
Using QTP to capture screen shot - by ravi.gajul - 01-31-2012, 11:08 PM
RE: Using QTP to capture screen shot - by Ankesh - 02-01-2012, 05:11 PM
RE: Using QTP to capture screen shot - by rajpes - 02-03-2012, 08:37 AM
RE: Using QTP to capture screen shot - by Ankesh - 02-03-2012, 10:48 AM
RE: Using QTP to capture screen shot - by sims - 02-09-2015, 07:41 PM
RE: Using QTP to capture screen shot - by abhishekqa.singh - 04-11-2017, 11:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture screen shot for unexpected Errors. uma87 10 18,672 11-08-2014, 12:18 AM
Last Post: supputuri
  How to capture text from a tooltip using QTP sasmitakumari 2 15,016 04-03-2014, 05:59 PM
Last Post: Ankur
  qtp 11, Unable to prove the disappearance ofdynamic objects displayed on same screen. priyaang 1 2,458 03-24-2014, 12:53 AM
Last Post: supputuri
  capture screenshot using html code and view in QTP Test results Bhuvan 3 7,234 07-19-2013, 02:38 PM
Last Post: Bhuvan
  How to get uppermost java object displayed on screen using QTP shirkaan_2010 1 4,941 07-29-2011, 01:41 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 7 Guest(s)