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   SiteMap shows list of All Categories in this site.
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
 
I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini  1
is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE  9
.mtr ( modular test repository or mercury test repository) plz give correct answer??  3
how to load vbs file to qtp through scripting. plz provide the code..... IBM1
can a Function return more than one value..??? if so please give me the code for that. DST-Global-Solutions2
what are recovery management techiniques?  1
After Creation of your QTp frame work, The folders are saved in VSS or Other. plz explain brifly? Infosys2
Tell me the QTP Advantages and Disadvatages ?  1
What type of VB script u had done in expert view?  1
Will QTP gets installed on virtual PC.What is the maintenance number to be given  1
How to parameterize in QTP?  3
What is the use of Regular expression?  4
How many types of Test Plans are there...??  2
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. CTS1
Hi All, I'm Akshaya here, could anybody please help me regarding how to import the excel sheet to run time datatable. But Pl. keep it in your knowledge is that excel sheet is opened. Thanks, Akshaya Madali 9823213538  3
How we can add actions in the test using QTP?  1
How to load a object repository(using VBScript) ... very urgent....  2
How to use library files in QTP? how we can call these files in to script? Wipro3
What are the drawbacks of QTP? Ordain-Solutions7
I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail ADP2
 
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