ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
Hi, When I click on a hyperlink a secondary pop-window will 
open. In that pop-up window there will be 'N' number of 
records arranged in with paging option in datagrid table. 
Each rows contains two columns, one is text and the other 
is a radio button. I will pass the first column value and 
based in it the tool have to select the corresponding radio 
button in that row. Please someone help me how to handle 
this as am new to QTP.
 Question Submitted By :: Saravanan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.
Answer
# 1
'To find no of rows in webtable
rc=Browser(" ").Page(" ").WebTable(" ").RowCount
msgbox "No. of Rows: "&rc

'Give the text
b=inputbox("Enter the text u want to search....")
For i= 2 to rc
       getdata=Browser(" ").Page(" ").WebTable("
").GetCellData(i,1)
       msgbox getdata
If (ucase(trim(b)))=(ucase(trim(getdata))) Then
    ' msgbox "Both are Equal"
    set obj= Browser(" ").Page(" ").WebTable("
").ChildItem(i,1,"webradiobutton",0)
        obj.click
		Exit for 
'Go to next page
 browser(" ").page(" ").webtable(" ").Link(" ")
	   End If
Next


' If wrong correct me
 
Is This Answer Correct ?    1 Yes 0 No
Badri
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Why QTP is termed as a Record and Playback tool?  1
In what situations QTP will not recognize the Objects? Wipro4
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp  2
how much space occupies in object respository by default? VSoft5
How do you data drive an external spreadsheet?  1
What is API?  1
Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?  1
What is the difference between gettoproperty and settoproperty?Explain with an example? Satyam4
Explain the difference between smart identification and object identification withn clear example. please it is very urgent Wipro1
Hi I am working with QTP.If I want to write a certification exams,Which one is the best one suggest me friends!!  2
Give me exact application where we should use low level recording? CTS5
Which object repository we use in real time and can we merge 2 object repostiory and how?  3
i'm using QTP 8.2. A person using QTP 9.0 sends me a QTP TestScript, same when i try to open , an error comes "unexpected file format". Why?? and how to resolve the problem??  2
if i have 10 actions and out of 10 actions last 3 actions i renamed will my script exicute sucesfuly r not? changed actions where i can see? IBM1
How to handle Dynamically changing Objects in QTP?  4
I want to open a text file and then search some specified text in it and then replace that text with some other text i found that text in .txt but do not know how to replace that text can any body help me. if possible put the code for qtp  1
how to select particular value from the combobox in the current page which is entred in the previous page editbox after parameterization? Ordain-Solutions5
3.How to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.  2
How do u write a regular expression for date (dd/mm/yyyy) field ? Semantic-Space3
How many check points are there in QTP and what are they?  5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com