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

Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

0 Answers  


what is the use of VIRTUAL OBJECTS? explain ?

4 Answers  


What are the different types of Database checkpoints in QTP? when they are used?

2 Answers  


How to find the name of the machine where you are running your automation scripts in qtp?

0 Answers  


hi, for QTP TRAINING......SURESH REDDY SMART SOLUTIONS sr.nagar IS BEST OR NOT? how faculty teaches?

4 Answers   Cap Gemini,


how u write vb script in qtp pls give me some basic script and some material

32 Answers   Datamatics, UHG, Winit,


how can i do QTP Certification can any 1 tell me . How 1 approch and who to approch

7 Answers   ADP, Hydus,


i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


what are inputs for automation?

3 Answers  


Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

0 Answers  


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


What are the most frequent errors you faced while executing your scripts?

1 Answers  


Categories