Quality Testing

Quality is delighting customers

Is Descriptive Programming needed Object Repository?

Is Descriptive Programming(DP) needed Object Repository(OR) ? Give me an example for DP and OR

Views: 33

Reply to This

Replies to This Discussion

No, Descriptive Programming(DP) ia the alternative of Object Repository(OR).
DP will replace OR
not require OR while working DP
hi vivek,
i read in someone blog without Parent Object in OR we can't writen DP
Soruce: http://relevantcodes.com/dp-vs-or/
Hi Mallikarjunarao,

First u should know why we use Descriptive Programming?
Answer:
•QTp is unable to find/recognize an object.
•Objects are dynamicaly changing.
•ObjectRepository size is huge automatically QTP will become slow for these scenario will go for Descriptive programming. Here we will not use Object Respository. Clear?

Regards,
Faroz
i write test script using flight aplication in qtp without OR i am getting errors

Code
Dialog("name:Login").WinEdit("name:Agent Name:").Set "Malli"
Dialog("name:Login").WinEdit("name:Password:").Set "mercury"
Dialog("name:Login").WinButton("name:OK").Click

Error:
The "name:Login" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.

After i get this error i add Login Object to the OR and change the code then also i get the error

Error
The "name:Agent Name:" WinEdit object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
thanks it's working without OR we can write DP,
the modification my code is
Dialog("text:= Login").WinEdit("attachedText:= Agent Name:").Set "Malli"
Dialog("text:= Login").WinEdit("attachedText:= Password:").Set "mercury"
Dialog("text:= Login").WinButton("text:= OK").Click

RSS

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service