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

how to write vbscript on web applications in qtp. explian with one example?

4 Answers   Wipro,


Tell me one scenario, the complex functionality you have automated in your project?

0 Answers  


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

0 Answers  


What is output value? How many types of output values are there in qtp?

0 Answers  


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,






in a web table , i want you to click a particular object inside cell

2 Answers  


how to write scripts in QTP?

4 Answers   Ordain Solutions,


How to measure transaction time through VBScript without using start and end transaction points?

0 Answers  


How to capture screenshots of Exceptions/Errors during run- time?

12 Answers   Ordain Solutions,


What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository?

2 Answers   Nokia,


please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761

6 Answers  


what is the extension for the test version of the script?

5 Answers   TCS,


Categories