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
How many types of parameters are available in quicktest professional?
Explain runtime dynamic settings?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
can anyone tell me from where i can download qtp demo or crack version
how many maximum number of virtual users we can create?
What are the ways you can synchronize?
How to test fly out menu in qtp?
how do u plan test automation?
explain how to write vb script in qtp?when will you write own script?
How you debug your script?
how do i know how to use tools
How to run a test using quicktest professional?
What is checking bitmaps?
Is it possible to call from one action to another action in qtp?
What is system testing and what are the different types of tests you perform in system testing?