Geeks Talk

Prepare for your Next Interview




child objects

This is a discussion on child objects within the QTP forums, part of the Software Testing category; hi all ,i would like to know more about child objects,am new for the QTP where it can be used....


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-04-2008
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
rajasekhar reddy is on a distinguished road
Cool child objects

hi all ,i would like to know more about child objects,am new for the QTP where it can be used.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-05-2008
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 508
Thanks: 1
Thanked 52 Times in 44 Posts
sutnarcha is on a distinguished road
Re: child objects

Any of the object controls like a button, checkbox, radiobutton, combobox, frame etc of the application that can be referred only from its parent object are called child objects.

Eg.
A button may have been placed directly on a window. So, the window will be a parent object and the button will be a child object.

Eg.
A group of radiobuttons may have been placed under a frame and that frame is placed on a window. So, the window will be a parent object of the frame and the frame will be the parent object of the radiobuttons. Radiobuttons will be the child objects.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
The Following User Says Thank You to sutnarcha For This Useful Post:
  #3 (permalink)  
Old 07-07-2008
Junior Member
 
Join Date: Jul 2008
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
rajasekhar reddy is on a distinguished road
Re: child objects

hi sutnarcha your explanation is very clear ,am having small dought about this concern ,all the objects appeared in the app is created,some times why we need to create child objects for already created objects,can u answer me please?
Reply With Quote
  #4 (permalink)  
Old 07-07-2008
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 508
Thanks: 1
Thanked 52 Times in 44 Posts
sutnarcha is on a distinguished road
Re: child objects

Hay Rajasekhar... I don't understand what u r trying to ask here... what do u mean 'why we need to create child objects for already created objects'?
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #5 (permalink)  
Old 07-15-2008
Junior Member
 
Join Date: Feb 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Gaurang033 is on a distinguished road
Re: child objects

Quote:
Originally Posted by rajasekhar reddy View Post
hi sutnarcha your explanation is very clear ,am having small dought about this concern ,all the objects appeared in the app is created,some times why we need to create child objects for already created objects,can u answer me please?
We are not creating any new object.. ChildObjects just assign the child objects to another object...

better u go through QTP profession Help...
Reply With Quote
  #6 (permalink)  
Old 07-15-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 144
Thanks: 3
Thanked 11 Times in 11 Posts
NawabShaikh is on a distinguished road
Question Re: child objects

Quote:
Originally Posted by rajasekhar reddy View Post
hi sutnarcha your explanation is very clear ,am having small dought about this concern ,all the objects appeared in the app is created,some times why we need to create child objects for already created objects,can u answer me please?
ChildObjects are used in real-time projects where we need to filter specific objects using descriptive programming, since there is a collection and we want to fetch the objects at runtime & get the value pertaining to business requirement.

e.g check that a webtable cell has value 3.

Set OD = Description.Create()
oD("micclass").value = "WebElement"
oD("html id").value = "oClai"

Set ODObject = Browser(b).Page(p).childObjects(OD)

While OD.getroproperty("innertext") <> "4"
if OD.getroproperty("innertext") = "3" then
''Logic on the elment
end loop
end if
Wend
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
How can we insert a child row in Datagridview in C# mnaren C# 0 05-21-2008 02:27 AM
Child object property keep changing newhere QTP 4 04-16-2008 10:32 AM
Parent Child Table Relationship srivastava.sujata Oracle 4 04-03-2008 09:32 AM
Method to excute child objects script ypraveen_77 QTP 2 01-06-2008 01:54 AM
Selected project does not have any child BC mail2diptesh Seibel 1 07-24-2007 02:12 AM


All times are GMT -4. The time now is 08:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved