How to create configuration scripts

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps involved in recovery scenario wizard?

620


Diff b/w test scenario's and test Procedures?

1727


Which environments does qtp support?

750


How do you convert manual test cases to automated test cases?

667


Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

2422






How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1843


What phases are involved in testing an application in qtp?

636


Explain the concept of how quicktest professional (qtp) identifies object?

666


Is it possible to switch between recording modes during a test creation?

680


How many types of Automation frameworks are there in UFT? Describe them.

641


how to explain a claims and insurance project?

1857


What are some test assets and related extensions of qtp?

650


What is the expert view?

629


What is the basic concept of quicktest professional (qtp)?

672


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

1580