When there is descriptive programming, why do we go for
Object repository for desigining scripts.?? why cant we use
descriptive programming instead of using the Object
repository..??

Answers were Sorted based on User's Feedback



When there is descriptive programming, why do we go for Object repository for desigining scripts.?..

Answer / pradyumna

In descriptive progmmaning the objeect's information should
be avialable,
desc. prog takes less tim to execute bcz the object's
information is avialable in the script,but it is very
difficult to mentain(update).but through object repository
we can easily write the script bcz the object's info is
avaialable in that OR.

i think this is the answer

Is This Answer Correct ?    2 Yes 1 No

When there is descriptive programming, why do we go for Object repository for desigining scripts.?..

Answer / vistaraj

Following are the reasons for using Descriptive Programming

1. Faster(High Performance): Execution of Decriptive
Programming is faster compaired the scripts whose object
properties are stored in Object Repository.

For OR: As, it takes time to load the OR first and then
identifying the object with all Mandatory Properties,
Assistive Properties and Ordinal Identifier(Index or
Location)

2. Donot Depend up on the Completion of the Feature:

From Development Team or from the Design Document, If we
know the object name and their properties then we can
start writing Automated Scripts using Descripting Program
irrespective of the Completeness of the Application.

No Need Wait till Application is developed and delivered
from Developer.

Is This Answer Correct ?    1 Yes 0 No

When there is descriptive programming, why do we go for Object repository for desigining scripts.?..

Answer / nanda

and also..

writing the script will take more time when writing in
DP. maintance of the script will be difficult.
if some of the object properties are changing from
build to build u have to update same in script also. but if
u are using Object Repository u can update those property
values in Object Repository. its one time change.or u can
handle this in object repository with reguler expression.

like this we can say many examples.

if any queries:
nanda.dreddy@gmail.com

Is This Answer Correct ?    1 Yes 1 No

When there is descriptive programming, why do we go for Object repository for desigining scripts.?..

Answer / gabbar singh

@Vistaraj
u answer favours the DP. question is still y PEOPLE go far
OBJ repo based inspite of having all those advantages.
still thanks for sharing you knowledge with the users :)

nanda's answer is closely related to the question.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the various versions of QTP that have been released so far? Please also mention the year of release for each version

4 Answers  


How will you check that your test cases covered all the requirements?

0 Answers  


Where the text version of script file located in file system?

1 Answers  


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

0 Answers   AppLabs,


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

0 Answers  






What are the technics follow in writing VB script?

0 Answers   CTS,


can any body give the banking domain concepts/links

0 Answers  


Give the syntax to load function at run time.

0 Answers  


what is difference betweein qtp 9.0 and 9.2

1 Answers  


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

10 Answers   Wipro,


I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?

9 Answers   IBM,


How to interact tool & application build in QTP?

0 Answers  


Categories