What is the use of "Define new test object" in QTP 9.1
When should we use? Explain?

Answers were Sorted based on User's Feedback



What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?..

Answer / nanda

By using 'Define new test object' we can create a new test
object in object repository, even the application is not
available.

Is This Answer Correct ?    3 Yes 0 No

What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?..

Answer / nanda

yeah good question...

in some situations we have to prepare the scripts before
the application is delivered for testing. at that time you
can not capture the objects from application, right? so,
what you can do is you can create the test objects manually
based on the test case says, and can prepare the scripts.
once the application is ready we will debug the script to
check whether QTP is identifying the objects with the user
defined test object description. if not identifying u can
change the properties of those objects.

and another situation, when you are capturing some
objects to Object Repository some of the objects may be
invisible. they will come to visible only in some
situations. so, you will create one user defined test
object even that object is invisible.

may be this can answer your question, if not please
reply me again. i can add some more description.

Is This Answer Correct ?    3 Yes 0 No

What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?..

Answer / rayudu

You are exactly right...But
What is the use of Creating new test object, if it not work
on the application.what will we do with it.How to use on
the application????
Please tell me with one example

Is This Answer Correct ?    0 Yes 0 No

What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?..

Answer / rayudu

Thank you nanda...
U r right..
Second one is Okay..
But one thing I have not understood is that, after writting
the code, should we add properties to the repository?
I knew two ways to write script.
1. Add objects to the repository and use them in script.
2. Assigning the property values to the properties
directly, without using OR (Discriptive programming)
But here not using either OR or object property values in
the script
How the QTP identfies the objects of an application.
suppose I have written like this.(if it is web based)

Browser("Rayudu").Page("ray").link("livetek").click

Once application ready how can I run this on the
application.

ok
should we use settoproperty???

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Plz explain about Virtual object? What is the situation u r using , explain with example?

1 Answers  


Which method do you use to retrieve data from the WebList object?

1 Answers  


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

0 Answers  


How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies

4 Answers   Semantic Space,


How to create configuration scripts

1 Answers  


HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people

3 Answers   GE,


why use Description programming? what is advantages and disadvantage of this methods?

2 Answers  


Can we use Virtual Objects in Discriptive Programming?

5 Answers   Keane India Ltd,


how to add a runtime parameter to a data sheet?

6 Answers  


any body can you help me what is the script to automate an comand promt

0 Answers  


I have a tool bar where 5 different buttons are placed, but these buttons are not traceable hence i have created a virtual object on save button of this toolbar. Now pls tell me how to use this virtual object while write script.

0 Answers   IBM,


in a database table there are 3 columns (name , marks,grade) , in application after retrieving data from db to fields name, marks click ok button then grade should displayed ---for this how to write vb script prgm

3 Answers   IBM,


Categories