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 |
What is Modular framework and Keyword drive framework? Explain
how do u create new test sets in TD
How do we run the scripts in QTP ?? what are the three options....
How we can call the scripit from another scripit in QTP?,Not a call Action
Give one example of Standard checkpoint in qtp 10?
What is recovery scenario in qtp?
Tell me the QTP Advantages and Disadvatages ?
difference Between LowLevel and Normal Recording Modes?
what is debugging testing?
What is text check point and text area check point?
How u will do versioning in QTP?
What is Virtual object wizard in QTP?