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


Please Help Members By Posting Answers For Below Questions

I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

1629


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

2134


What is the file extension of the code file and object repository file in QTP?

756


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1662


Tell me one scenario, the complex functionality you have automated in your project?

1637






What test cases can you automate using QTP?

796


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

839


Explain sub procedure of vbscript.

715


How to recognise the webelement and verifying that webelement is enabled?

1801


How may types of defects identify application or your currently working application?pls give me answer..

1666


give me the code to save all messages of inbox of gmail into a folder and notepad

1775


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1604


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

678


What is the basic concept of quicktest professional (qtp)?

739


If created one virtual object? Next time I changed the window position will it work?

743