Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is an object repository?

997


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1954


How do you send email with attachment from outlook using qtp ?

963


diff between qtp versions from 8.5

1963


How to check feasibility of the appliction?in automation testing?

1920


what could go wrong with test automation?

2000


What are the factors on which script execution time is dependent?

1004


How to use reporter.report event in qtp ?

974


Differences between text and test area checkpoints?

1035


What is object repository in qtp?

966


Whether qtp 9.0 supports Test director8.0

2524


How to create runtime property for an object?

1912


Explain how you can find length of array in qtp?

1002


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1899


Hoe can we do retesting using functions please give the code for it using login page

1899