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

I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1758


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

2104


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

2068


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1849


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1935


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

2028


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

1032


what r the main attributes of test automation?

2080


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

2305


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

2090


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

2052


Dis advantages of XML checkpoint ?

2017


Is it possible to switch between recording modes during a test creation?

1060


What is the basic concept of qtp?

1013


What are the ways you can synchronize?

1049