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

WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT

3 Answers   Wipro,


what is virtual object?

2 Answers  


In QTP whether is it possible to call a function from one action to another action?

1 Answers  


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


Hi i want to export the data from applicatioon to excel and later i want to import and use it for my scripts hoe can i do this?

1 Answers  






How do you copy a value from a cell in an msexcel sheet saved on the desktop into QTP's datatable when the co-ordinates of cell are given?

2 Answers   Oracle,


What is the difference between two actions?

1 Answers   Wipro,


What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.

2 Answers  


Does QTP support Linux Red Hat? Does QTP support Flash?

4 Answers  


What is the difference in between function and sub as well as give some code of both

1 Answers   Wipro,


What is the current version of QTP?

19 Answers  


What is the concept of hooking in QTP?

1 Answers  


Categories