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 / 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 |
In real time whenever we found bug , after that where you send to that bug. send to T.Lead or Directly Developer. Plz explain me?
What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
1. how can you handle exceptions without using recovery scenario?
if devloper change only button names in present build then script will execute or not , why? Only gui changed.......
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
suppose our project is developed using java technologies.after complition of the coding developer relesed a build to the testing team.so, what is the process means how we open that documents?what are that documents?plz give reply its urgent
WHAT ARE THE SHORTCUT KEYS IN QTP?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?
Explain about the Test Fusion Report of QTP?
Difference between image checkpoint and bitmap checkpoint