How do u write script in qtp? where do u write?

Answers were Sorted based on User's Feedback



How do u write script in qtp? where do u write?..

Answer / sreekanth

In QTP we can develop the script in following ways :

1. By Using Standard Recording :Here script will be
Automaticaly Generated as per the recording.

2.Manually writing the Script:

for above two ways script will be written in the
Expert view of the Test Pane of Quick Test Window.

3. Using Library Files(.vbs):
In.vbs files also we can write the script & then we can
associate that files to a particular test if needed.

Mostly we are going to develop the scripts in expert view
by using 1 or 2 itself.

Is This Answer Correct ?    6 Yes 0 No

How do u write script in qtp? where do u write?..

Answer / ns

thanks sreekanth

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

0 Answers  


How can you send user defined messages to test report?

0 Answers  


If 3 browsers are opened in our system, how to enter the facebook url into second browser by using descriptive programing

3 Answers   Mind Tree,


What is meant by virtual obj and Y do v need virtual obj configuration.

4 Answers  


How to handle the exceptions using the recovery scenario manager in qtp?

0 Answers  


what is risks of testing a project?

5 Answers   AppLabs,


Which environments does qtp support?

0 Answers  


What is throw object?

1 Answers  


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


difference Between Call Run action and copy of action?

3 Answers   Quest,


What are the types of properties that quick test learns while recording?

0 Answers  


Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?

1 Answers  


Categories