what is the code in QTP to take screen shot?
Answers were Sorted based on User's Feedback
Answer / reddy prasad
syntax:
object hierarchy.capturebitmap "path to save the bitmap"
eg:
Browser("Flight").Page("Flight").ActiveX
("Calendar").CaptureBitmap "D\extra\screen_short\defect.bmp"
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / din
This is a good answer. It is working fine for me but How can I make it as function and pass screenshot name as a parameter for different screenshots?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aruna
Capture Bitmap Function
Browser("Flight").Page("Flight").ActiveX
("Calendar").CaptureBitmap "calendar.bmp"
| Is This Answer Correct ? | 2 Yes | 5 No |
how will we run batch tests in qtp what is the process to run the multiple test sets?
What are the advantages of QTP over WinRunner?
What is the exact difference between QTP and RFT ?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
Think and Reply.. can we parameterize radio buttons, check boxes? as in flight web site on flight preference page, choosing different flight produces trouble if from port and to port been parameterize, and runs. Try it by own you will get the error.
in my application,validation message has in japanise language.how to validate this message is appears properly or not
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
What type of error u will get if u have not installed java add in in java project? what is the error name ?
how to pass parameters from one action to another using output parameters I am not calling action 2 from action 1, they are being called individually I need syntax please .. Requirement: Action 1 customer = Browser(" ").Page(" ").Link(" ").GetROProperty("value") I want to use the value stored in customer in Action 2 I do not want to use any of these actions as re-usable actions
please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.
What does VBS file contain..? what is VBS file.?
Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"