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 |
If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script
what is objectidentification?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....
why don’t use real time they r not using check points
I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.
There r 1000 rows and 1000 coloums , in that I want pickup a name of the coloumn , pls dont say in sql statements , in interview one of the interviewer said it was a wrong answer pls any send me answer its urgent
How to compare source and target database in testing? Can anybody please tell me in detail the procedure how to compare it?
What exactly is the difference among all the three recording modes.
Hi any body can tell me the in detaled information about Description.Create() thanks in advance
It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one tough question..(I think.. May be easy for some people) In recorded script the - WebLink("cityinfo") In reality, the WebLink name is "generalinfo" How you can write function to click that changed web link. NOTE: This functin should work with any Dynamic text link. I will post the answer later.
what is mean by soi in object identification