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 are the mandatory properties in qtp? what are the library functions in qtp?

3 Answers   Wipro,


In QTP, As a first step wht we will do before going to start a Automation....when it will be decided that we have to go for a Automatio..and who will decide to go for Automation. Any body can pls let me know.. Thanks in Advance..

1 Answers   Wipro,


Explain about random testing of 500 test cases?

1 Answers   IBM,


unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


Can someone tel additonal features which has been included under QTP 9.0 which is not there in 8.2 version?

1 Answers  






Does quicktest professional (qtp) is unicode compatible?

0 Answers  


i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me

2 Answers  


what is vmodel?advantages and disadvantages of vmodel?

0 Answers   AZTEC,


What is Object Spy in QTP?

11 Answers   vsworx,


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

0 Answers  


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.

4 Answers  


Categories