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 automation(qtp)bug pls giv me one ex?
How does QTP identifies the object in the application?
why we use check points , In qtp we use the any check points , what r they , when and why
Per-Action Vs Shared repository?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
How to find operating system information using the qtp script?
What is the diff between doing parametarisation using Data Driven wizard or manually. when do we go for manual para...and when do we use Data driver wizard..can anybody answer it ..Thanks in advance
1)Difference Between Value & RawValue?
How to launch application under test through VBscript without using systemutil.run or invokeapplication?
how do u plan test automation?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)