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

How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..

1 Answers  


Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.

6 Answers  


Explain the Load testing process?

1 Answers   Crea,


what is recovery manager and recovey scenerio?

2 Answers   BirlaSoft,


What is the basic concept of qtp?

0 Answers  


How to create a Runtime property for an object in QTP?

6 Answers  


Synchronozation types in QTP

11 Answers   Diebold,


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

0 Answers   TCS,


· What should test in BANKING DOMAIN application ?

2 Answers   TCS,


How would you export a script from one pc to another in qtp?

0 Answers  


When should I use smart identification?

0 Answers  


anyone can explain Diff B/w Actions and Functions

2 Answers  


Categories