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

how to acess a test in RSA?

0 Answers   IBM,


What is runtime objects and test objects? What is the difference between them?

7 Answers   IBM,


how we will use output values in qtp? is there any possibulity by descriptive programming?

2 Answers  


If I change the object name in one action will it be updated in all the actions? Or not?

0 Answers  


What is synchronization? What are the ways you can synchronize?

0 Answers  






We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.

1 Answers   Cap Gemini,


How do you configure QTP AND Test director?

0 Answers  


We stored into the objects OR and then write the scripting

0 Answers   L&T, Wipro,


how will load the object during runtime?

0 Answers  


Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .

4 Answers  


Explain about the quicktest professional (qtp) automation object model?

0 Answers  


How to create configuration scripts

1 Answers  


Categories