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

In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance

1 Answers  


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


How many types of recording modes are there?

0 Answers  


How you can make an action as re-usable action?

0 Answers  


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

0 Answers  






if there is two login button in your page, how you know that this login button is correct for login .

2 Answers  


write script for bitmap image?

0 Answers   CA,


Hi, Can any one explain what is mean by Driver Script? is it AOM?

4 Answers   CTS,


I want to install qtp software in my system, My operating system is vista . Anybody please suggest me how to get QTP software with licence key

2 Answers  


Which object model ur used in ur project

2 Answers   Cap Gemini,


what sort of things what u put in Bug Report ?

1 Answers  


How Can I automate PDF forms using QTP9.2 ?

0 Answers  


Categories