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 |
I want some banking domain projects where can i get this projects ( anybody can help me plz)
What is difference between design time and run time data table?
how open two urls in one browser? plz urgent
What are the differences between qtp and winrunner?
what is the Exact Meaning of Environment Variables?
Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri
Which statement will use for close an action in QTP?
How do you test DLL files using automation Tool QTP?
What's Checkpoints for QTP?
Explain quicktest professional testing process?
Which property do you use to retrieve or assign data into a cell in a Data Table object?
How many ways to configure the application in QTP,Explain