How to parameterize in QTP?
Answers were Sorted based on User's Feedback
Answer / shyam.meghansh
Paramaterization can be done in this way:
#1. In the sheet "Action 1", write some parameters under
column A like name1, name2.
#2. In the code,
Browser("browser_name").Page("page_name).Webedit
("textbox_name").Set
Datatable("A","Action 1").
#3. From FSO u can do like this
datatable.import(<file name>)
In default sheet the data will be stored and in the script
u need 2 modify the code like this
Browser("browser_name").Page("page_name).Webedit
("textbox_name").Set
Datatable(Names,Gtsheet).
Names :- is the colum name and
GtSheet : - is global sheet in default sheet
| Is This Answer Correct ? | 14 Yes | 1 No |
Answer / mukesh
Go to Keyword view, Select the value to parameterize. click
on configure value button for value to be
parameterize.Value configuration options window pop/s up.
Select parameter radion button and click ok button. The
script will automatically update in Expert view. We can
pass the parameters in the data table directly
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / poonam
Paramaterization can be done in this way:
#1. In the sheet "Action 1", write some parameters under
column A like name1, name2.
#2. In the code,
Browser("browser_name").Page("page_name).Webedit("textbox_name").Set
Datatable("A","Action 1").
| Is This Answer Correct ? | 16 Yes | 6 No |
There are 4 ways of doing parameterize in QTP
1. Action Parameterization
2. Data Table parameter
3. Random number parameter
4. Environmental variable parameter
| Is This Answer Correct ? | 0 Yes | 0 No |
What is debugging? How you debug your script?
There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me
write a script to verify the image path(src property) of the images which are in web pages.
How to "Turn Off" QTP results after running a Script?
what time u r using data driven test in ur app"
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
WHAT IS THE DIFF BTW KEYWORD DRIVEN TESTING AND DATA DRIVEN TESTING?
How to use the object spy in quicktest professional 8.0 version?
How can we upload pdf files in qtp?
suppose we recording a web based project so for that we are using internet explorer after that if we execute that script in netscape then script will execute or not and one more thing is to exeute the script in any browser what to do
how i can get the value of label box , please any body tell me script of that code
write code to read and write data from file?