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

When you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then?

4 Answers   BirlaSoft,


What frame work ur using in QTP in ur current company?

7 Answers   Accenture,


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,


What are the different types of Database checkpoints in QTP? when they are used?

2 Answers  


what is descriptive.create()in qtp?

4 Answers   IBM,


Is there any option in QTP to add Java add-in after instaling the QTP?

3 Answers   IBM,


What is Object Spy in QTP?

11 Answers   vsworx,


I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.

2 Answers  


what is mercury.clipboard in qtp.where we can get this in qtp tool i.e tabs

1 Answers  


what type of frame work used in your company?

2 Answers   HCL,


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

0 Answers  


I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer

4 Answers   Cimcon,


Categories