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

How many types of parameters are available in quicktest professional?

955


Explain runtime dynamic settings?

2404


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1819


can anyone tell me from where i can download qtp demo or crack version

1951


how many maximum number of virtual users we can create?

2089


What are the ways you can synchronize?

1015


How to test fly out menu in qtp?

930


how do u plan test automation?

1865


explain how to write vb script in qtp?when will you write own script?

2266


How you debug your script?

1023


how do i know how to use tools

1950


How to run a test using quicktest professional?

930


What is checking bitmaps?

970


Is it possible to call from one action to another action in qtp?

992


What is system testing and what are the different types of tests you perform in system testing?

1122