How to create configuration scripts



How to create configuration scripts ..

Answer / kampli rajasekhar

<create QTP object instance>
set qtpapp=createobject("quicktest.application")

<launch the QTP application>
qtpapp.launch=true
<makes the QTP application visible>
qtpapp.visible
<The following 4 lines code used for golobal settings>
qtpapp.options.run.runmode="fast"

qtpapp.options.run.viewresults=true

qtpapp.options.run.capureimagefortestresults="never"

qtpapp.options.run.capuremoviefortestresults="never"

<The below line used for opening a test>

qtpapp.open "path of the script filename"

<the below 3 lines are used 4 local settings of the
particular test>

qtpapp.test.settings.run.iterationmode="one iteration"

qtpapp.test.settings.run.disablesmartidentification=true

qtpapp.test.settings.run.objectsynchronustimeout=10000

<the the below line is used for to run the test>

qtpapp.test.run

<the the below line is used for to close the test>

qtpapp.test.close

<the the below lin is used for to quit From QTP application>

qtpapp.quit

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  


Among all the check points what is the most important checkpoint?

5 Answers   Semantic Space,


How to return a value from a fn, if it has more than one value how to return

3 Answers   Verizon,


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


How to find the OS name by using QTP script?

2 Answers   IBM, Tech Mahindra,






Object recognition in QTP is based on which model ? a) COM b) DCOM c) DOM d) None of the above

2 Answers   Ordain Solutions,


Explain the difference between smart identification and object identification withn clear example. please it is very urgent

2 Answers   Wipro,


How to identify whether a web page exists or not without using Browser(" ").Page(" ").Exist?

1 Answers  


How to capture screen shots when an error occurs?

2 Answers  


Can you write a script to check if the folder exists or not?

0 Answers  


Syntax for how to call one script from another and Syntax to call one "Action" in another?

1 Answers   Crea,


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

0 Answers  


Categories