Hello everyone,
I am trying to parametrize a script. Its clear to me that,
we use data table to enter various text data. but if I want
to change the radiobutton (e.g. if for first iteration I
selected radio button 'A' and for second iteration I want to
use 'B' radio button for second iteration) then how can I
make it happen.
I have tried to define the question but still if not clear
plz tell me. Thanks everyone
Answer / amarendra kothuru
In the datatable, add a cloumn for the radio button field
e.g. column name is "FieldName1"
retreive the data from datatable
dtFieldName1 = DataTable("FieldName1",dtLocalSheet)
'For Web based
Browser().Page().WebRadioGroup("RadioGroup").Select
dtFieldName1
'For Windows
If dtFieldName1 = "A" Then
Browser().Page().WinRadioButton("A").Set
ElseIf dtFieldName1 = "B" Then
Browser().Page().WinRadioButton("B").Set
ElseIf dtFieldName1 = "C" Then
Browser().Page().WinRadioButton("C").Set
End If
This way you can parameterize the data for RadioButton.
If it is not clear, contact me at amar.kothuru@yahoo.com
Is This Answer Correct ? | 2 Yes | 0 No |
Can we record using all the modes in a single script? Explanation with example is appreciated
Hi, i want download attached files in test plan area from QC to local drive in my system using QTP script. Please help me
HI, Anybody can explain Automation Test Framework...and wht do we do before start of Automation.....
if numbers are always changing write a script for that
How will you check that your test cases covered all the requirements?
Is virtual object supported in low level recording mode?
w is active screen
Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain
Brief the process of testing with UFT?
i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am running this script from QC itself
Can I do Game testing with QTP tool