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
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...
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
What is the file extension of the code file and object repository file in QTP?
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
Tell me one scenario, the complex functionality you have automated in your project?
What test cases can you automate using QTP?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
Explain sub procedure of vbscript.
How to recognise the webelement and verifying that webelement is enabled?
How may types of defects identify application or your currently working application?pls give me answer..
give me the code to save all messages of inbox of gmail into a folder and notepad
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
What is the basic concept of quicktest professional (qtp)?
If created one virtual object? Next time I changed the window position will it work?