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 Posted / 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 |
Post New Answer View All Answers
What is an object repository?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
How do you send email with attachment from outlook using qtp ?
diff between qtp versions from 8.5
How to check feasibility of the appliction?in automation testing?
what could go wrong with test automation?
What are the factors on which script execution time is dependent?
How to use reporter.report event in qtp ?
Differences between text and test area checkpoints?
What is object repository in qtp?
Whether qtp 9.0 supports Test director8.0
How to create runtime property for an object?
Explain how you can find length of array in qtp?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
Hoe can we do retesting using functions please give the code for it using login page