Hi,
I want to write the script for a webpage. But i didn't
added the properties of the objects to the object
repository. Without adding the object properties to the
object repository, how to write the script.
When i am writing the script, Let us say i typed as Browser
("").
after selecting ".", if the object is added to the object
repository it will display atomatically. But in my case it
is not as i didn't added the object properties. How to
proceed further in the above mentioned case to write the
script manually. Pls let me know if you didn't understand
the question.

Answers were Sorted based on User's Feedback



Hi, I want to write the script for a webpage. But i didn't added the properties of the objec..

Answer / puneet

You gotcha use Descriptive Programming , thats the only way
to write the scripts without "learning the Objects in the
repository".

Eg

Browser("name:Google").Page("Name: Google")......

use object Spy for taking information about the properties
of the objects.

Is This Answer Correct ?    3 Yes 0 No

Hi, I want to write the script for a webpage. But i didn't added the properties of the objec..

Answer / babu

Hi Puneet,
Thanks for the information. I written the scirpt as you
mentioned above. But while running the script it is
displaying the message that the "Object" is not existed in
the object repository.
I want to execute the script without adding the properties
of the objects to the object repository.
Anyone can help me in this ....

Is This Answer Correct ?    0 Yes 0 No

Hi, I want to write the script for a webpage. But i didn't added the properties of the objec..

Answer / latha

Hi Babu,
Try this way
Browser("name:=Google").Page("name:=Google"). and so on.If
not as puneet suggested identify unique properties using
Object Spy.Still if the prolem persits one more way is to
add the objects to repository .Modify the script into
descriptive programming and finally delete the objec
Repository.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi Suppose u have complex Test scripts which u vl write first and which u vl execute first

2 Answers   Symphony,


distinguish between old version and new version QTP features.

0 Answers   CTA,


How can we call Winrunner functions from QTP?

1 Answers  


-->IF two TextBOxes are there in a "Form". -->A table contains some records which contains usernames & password.. -->What is the script we need to write using Descriptive programming concept...in QTP (simply DATA DRIVEN TEST SCRIPT OF QTP)?

3 Answers   CTS,


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,






Hi every body, I am new to QTP.pls help me if anybody knows the solution. Here is my doubt: I have 3 excel sheets in my local drive out of which one is password protected and i want to get the data of all these xL's either by importing or by reading the data finally i have to update this data in the website.(and the site is secured site) I tried by importing all XL"s one by one but couldn't do so. plss send me the code or atleast suggest me the approach. Thanks in Advance Padmaja

3 Answers   Symphony,


what are the mandatory properties in qtp? what are the library functions in qtp?

3 Answers   Wipro,


Hi Friends...this is surendra..recently i joined automation team ...Please send me some documents regarding VB script ...and where can i learn VB script... This is My mail id: surendra.mamilla@gmail.com... please send to my mail.... Thanx in advance surendra.

1 Answers  


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

0 Answers   Livetek,


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

0 Answers  


What does ".mst" stands for? (abc.mst)

3 Answers   Infosys,


what is object spy

5 Answers   TCS,


Categories