Why you are Using Descriptive programming instead of Object
Repository?
Answers were Sorted based on User's Feedback
Answer / alok
I agreed with the answer#4 but with some little
clarification
When your application is also not ready at that time we
will go for DP.
Regards
Alok
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / rico
In some scenarios, QTP will not able to recognize the
objects in the appliation based on the description proivded
in the objects repository. Say, mutilple objects in the OR
has the same description and in these scenario QTP has the
abiguity of doing the operation on the object and throws an
error. To avoid this, we go fot the DP.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rico
Adding to my above answer, here is another scenario where
we can go for DP...say i have four webpages in my app's,
and in each web page, say, i have OK and CANCEL buttons.
Instead of adding this objects to OR at every page, i will
create DP for this objects and use it where ever i need to
do operation on it..........This way i can reduce the size
of OR which inturn leverage's the performance of the QTP
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ram.polavarapu
well for small application we can go for object repository
and we can add the all objects if the application is big
then we can not add the all the objects in to the object
repository that time we can use the discriptive scipting
by using object repository the process is going to be
slow when we compare with descriptive programming
with out open the application also we can write the
descriptive programming.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / chivukula.kumar
Descriptive Programming is a separate concept in QTP.
we can handle the Application by implementing the DP
instead of OR.
Advantages of DP:
1 DP Script is reusable Script
2 we can modify the script easly compare to QTP Code.
3 we can write script without application in hands based on
the properites of objects.
4 DP is flexable for high performance of application
compare to OR
5 DP script is very flexible for meet the object
implementation problem in application.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / sd
Descriptive programming used - scenario
where the object identification properties used for
identifying a object are dynamic in nature and changes. To
handle this situation you can write a Dp script to get a
work around.EX --- GetROPropery
DP helps user to get around problem by adding vbscript code
and use programatic way to get a work around.
| Is This Answer Correct ? | 1 Yes | 0 No |
In some scenarios, QTP will not able to recognize the
objects in the appliation based on the description proivded
in the objects repository. Say, mutilple objects in the OR
has the same description and in these scenario QTP has the
abiguity of doing the operation on the object and throws an
error. To avoid this, we go fot the DP.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sangeetha
1.For Dynamic objects ( properties during run time will
change ) ,we will go for Descriptive programming)
for example:
i=0
Browser().Page().Webedit("index:="&i).set
Next
2.When the application is not yet developed completely
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / prashanth chenna
Hi Nagaraj,
you are correct, We Using DP for the scripts whose objects
not exsisted in Object Repository.
But here Questing is In What Cases ur going for DP instead
of OR?
I think now u understnad the my Q?
| Is This Answer Correct ? | 0 Yes | 1 No |
Hi Rico you gave good examples.. Can you write Descriptive
Programming for that scenario?
| Is This Answer Correct ? | 0 Yes | 1 No |
What are the enhancements u did after recording ur script?
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
what is the purpose of QTP?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan
Which Databases supports for QTP?
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???
What scripting language is QTP of?
what is run-time object property in Object spy in QTP9?
Can you brief the hurdles you faced during Automation testing?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
How do you do batch testing in QTP, if so explain?