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



Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to en..

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

Post New Answer

More QTP Interview Questions

what is automation(qtp)bug pls giv me one ex?

1 Answers  


How does QTP identifies the object in the application?

1 Answers   Crea,


why we use check points , In qtp we use the any check points , what r they , when and why

1 Answers   Polaris,


Per-Action Vs Shared repository?

5 Answers  


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

0 Answers  






How to find operating system information using the qtp script?

0 Answers  


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

6 Answers   Siemens,


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


How to launch application under test through VBscript without using systemutil.run or invokeapplication?

3 Answers  


how do u plan test automation?

0 Answers  


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>.

1 Answers  


hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)

0 Answers   Livetek,


Categories