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
What is chaild object method?
When we will go for chaild object method?
How to use chaild object method?
 Question Submitted By :: Krishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is chaild object method? When we will go for chaild object method? How to use chaild object method?
Answer
# 1
if we want to get all the objects with in a window then we
will use the child object method..add the window in the
object repository then it will select all the objects in the
window..then call a function with getroproperty method in it
to get all child objects one by one
 
Is This Answer Correct ?    0 Yes 0 No
Sravan
 
  Re: What is chaild object method? When we will go for chaild object method? How to use chaild object method?
Answer
# 2
Child object method Returns the collection of child objects
contained within the object. 

Example for  how to use This method

Public Function CheckObjectDesription(parent, descr) 

Dim oDesc 

' Create description object 

Set oDesc = Description.Create() 

arProps = Split(descr, ",") 

For i = 0 To UBound(arProps) 

arProp = Split(arProps(i), ":=") 

    If UBound(arProp) = 1 Then 

      PropName = Trim(arProp(0)) 

      PropValue = arProp(1) 

      oDesc(PropName).Value = PropValue 

    End If 

Next 

 

' Get all child objects with the given description 

Set children = parent.ChildObjects(oDesc) 

 

If children.Count = 1 Then 

CheckObjectDesription = "Object Unique" 

ElseIf children.Count = 0 Then 

CheckObjectDesription = "Object Not Found" 

Else 

CheckObjectDesription = "Object Not Unique" 

End If 

End Function
 
Is This Answer Correct ?    0 Yes 0 No
Suresh Kumar
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Suppose U change the script whether it affect the object properties of the object in the object repository IBM3
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application  1
tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used HCL1
How we can merge the object repositories?say if we have two or three object repositories then how e can merge them? is there any option in Qtp to merge the object repositories BirlaSoft4
How to connect to data base?  2
How to Test Dynamic links ? Wipro3
How does Parameterization and Data-Driving relate to each other in QTP?  2
By default Action1 runs first in QTP. Is it possible to start the run with Action2? Virtusa7
what is file database Wipro1
How to handle run time errors?  5
in flight reservation application. when i entered flyto combobox as london. and i have to check this london is present in flyfrom combobox.give me the code with good explanation. extention to this question. at each iteration i have to put(WRITE) the fly from and fly to city in database table  1
we have 10 automation scripts. how to call them from one main script.  2
from where we will retrieve data for data driven tests in qtp?  3
If you use low level recording,what objects will be recorded in Object Repository and what properties? CTS3
how you test broken link using the automated tool QTP ? Oracle3
can we change the name of a check point? when will you start writing testcases? do you follow any methodology for writing test scripts? qtp is key word driven testing or data driven testing?  2
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions  2
. My application is updating the user information in the application. Every time it is Adding on record in my application and Validating the information like “Record has added successfully”. Which Check point I have to put in this situation? Why? Polaris4
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!  4
What are default add-ins in qtp? Semantic-Space8
 
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