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 |
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
what r the executing modes in QTP
How to send the qtp results file by email (Lotus notes).
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?
Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.
Suppose there are 10 browsers opened on desktop. I want to close all browsers except one browser in QTP. Can any one give the code for this?
How is UFT 11.5 version different from UFT 12.0?
Tell when we call the function? tell with example.
How to get popup error message.
How to create log file in qtp?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?