ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Testing >> Automation Testing >> QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions (496)
 Load Runner interview questions  Load Runner Interview Questions (486)
 QTP interview questions  QTP Interview Questions (3495)
 Test Director interview questions  Test Director Interview Questions (161)
 Rational TestSuite interview questions  Rational TestSuite Interview Questions (106)
 Silk Test interview questions  Silk Test Interview Questions (59)
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions (385)
Question
if there is a web table of having row and colmns.a button is
placed at 2nd row's 3rd column which is worked for both edit
and delete..how to write script for the button to test both
operation on the web table using desriptive programing..
plz help me on script wheather using getroproperty

Q2)what is the command for taking valiue from a web table in qtp
 Question Submitted By :: QTP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.

Ex:
set objButton=Browser().page().frame().webtable().childitem
(2,3,"WebButton",0)
strname=objButton.getroproperty("name")
msgbox strname

The Above code Displays the name of the Button placed at
2nd row and 3rd column
 
Is This Answer Correct ?    22 Yes 2 No
Ganesh Kumar
 
Answer
# 2
Answer for 2nd question is
Browser().page().WebTable.GetCelldata(2,3)
 
Is This Answer Correct ?    16 Yes 4 No
Narendra
 
 
 
Answer
# 3
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.
 
Is This Answer Correct ?    3 Yes 0 No
Sada
 
Answer
# 4
The Below code is working for a Grid that contain Many rows.

Here .* indicate Page Title. Index number indicate 5 th row
Delete Link.

Browser("Title:=.*").Page(("Title:=.*").Link("html id:= ;
Index=4).Click
 
Is This Answer Correct ?    4 Yes 3 No
Saravanaraja
 
Answer
# 5
For Ques 1
Browser().page().webtable().childitem
(2,3,"WebButton",0).Click

For Ques 2
strname=Browser().page().webtable().GetCellData(2,3)
msgbox strname
 
Is This Answer Correct ?    0 Yes 0 No
Ashish Srivastava
 
Answer
# 6
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.

Ex:
set objButton=Browser().page().frame().webtable().childitem
(2,3,"WebButton",0)
strname=objButton.getroproperty("name")
msgbox strname
objButton.Set "Example" //For Webedit opertaion
objButton.Click //For Delete opertaion
 
Is This Answer Correct ?    0 Yes 0 No
Naina
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What do you do if QTP doesn't recognize object ,what action should be taken Lehman-Brothers 11
with out using import sheet came is it possible to get the excel sheet ? Ordain-Solutions 2
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue   1
How do you move objects from local object repository to shared object repository???What are methods?   1
how do we add a new sheet to data table in QTP? Wipro 7
How to execute the test cases using QTP. i.e What is the use of QTP while execution   2
how to make connection to a remote mysql database in qtp any one can please provid eme deatail steps.   1
How u send bugs to dev'lpment team all at once or one by one or waht is the process? kenexa 2
what is QTP batch testing tool?   2
write vb script code to delete the duplicate values in an array. ADP 3
QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON   1
can we run the scripts of qtp 8.2 in the qtp7.0?   2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com