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

what is compiled module?

1 Answers  


How to map the test cases to requirements in QC?

4 Answers   IBM,


What is quick test pro?

0 Answers  


in how many ways we can write the user defined functions one way i know that i.e storing it in .vbs another way i does not know my friend said that .qtf or something but start with q letter can any buddy knows about this

3 Answers   DigiTech, Infotech,


What is the ur roles and responsibilities as automation testing engineer?

2 Answers   Atos Origin,


what is purpose of automation?

3 Answers  


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

0 Answers   Accenture,


how to do the batch testing in test director using manual testing procedure?

0 Answers  


how to pass parameters from one action to another using output parameters I am not calling action 2 from action 1, they are being called individually I need syntax please .. Requirement: Action 1 customer = Browser(" ").Page(" ").Link(" ").GetROProperty("value") I want to use the value stored in customer in Action 2 I do not want to use any of these actions as re-usable actions

2 Answers  


what does it mean when a check point is in red color? what do u do?

4 Answers  


What does VBS file contain..? what is VBS file.?

4 Answers  


what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


Categories