1.what is the difference between childobjects and child
items in qtp?
2.what is difference between a class and function?

3.can u convert ustimings to indian timings using vbscript?
4.i have scripts in one machine.can i run those scripts in
another machine.how?

Answers were Sorted based on User's Feedback



1.what is the difference between childobjects and child items in qtp? 2.what is difference betwee..

Answer / savitha

1. Difference between Child Objects and Child Item

Child Objects return a collection of objects of a specific
type.
eg: for the count of No of webedits present in a page we
can use Child objects method
set odesc = Description.Create()
odesc("Class Name").Value = "WebEdit"
Browser("title:=.*").Page("title:=.*").ChildObjects("odesc")

Child Items can be used only with a webtable object type to
retrieve/access a test object from a cell in the webtable.

Is This Answer Correct ?    77 Yes 14 No

1.what is the difference between childobjects and child items in qtp? 2.what is difference betwee..

Answer / sanchita

Child Objects is used to access the objects by using a desciption object. For example : To find out the number of links.
Syntax: object.ChildObjects("Description")

Child item is used to access the objects without using a description object. For example : To click a particular link in a specified row and column of a table.
Syntax: object.ChildItem(Row, Column, MicClass, Index)

Is This Answer Correct ?    20 Yes 3 No

Post New Answer

More QTP Interview Questions

I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

0 Answers  


What are the recording modes and executing modes avialble in QTP?

3 Answers   Polaris,


how can we handle errors other than using recovery scenerios in qtp

0 Answers  


what is meant by Implicit and explicit requirements?

0 Answers  


some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?

2 Answers   GE,


What is the difference in the global and action sheet in qtp?

0 Answers  


Hi All. Can you please explaing what is checkpoint? How it Will Work? what is meaning of "check checkpoint ("proprtname").how it will compate with expected value? Thanks in Advance............... Lakshmi

3 Answers   ITC Infotech, TCS,


How to handle the exceptions using recovery scenario manager in QTP?

0 Answers   Crea, CTS,


Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


Read excel using qtp descriptive programing

2 Answers   TCS,


how to test one edit box using Java addin for Web Applications? write script?

1 Answers   IBM,


how do check the links in a webpage ?

7 Answers   Accenture, Wipro,


Categories