Micro Focus QTP (UFT) Forums
Is this possbile to write the script without using the Object in object repository? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Is this possbile to write the script without using the Object in object repository? (/Thread-Is-this-possbile-to-write-the-script-without-using-the-Object-in-object-repository)



Is this possbile to write the script without using the Object in object repository? - njnirmal - 07-28-2009

HI..
I have read that we can write the script without define the object in the object repositry.? is this possible? is this descriptive programming ?
If yes that what are the advantage ? EXplain me with example ?


RE: Is this possbile to write the script without using the Object in object repository? - Saket - 07-28-2009

Yes, This is Descriptive Programing. Have you searched on this forum, there are loads of info here on Descriptive Programming.
write 'Descriptive Programming' in the search box above and click search. you will get many links for this.


RE: Is this possbile to write the script without using the Object in object repository? - QTPian - 07-28-2009

Hi nirmal,
Yes... You are right.. Descriptive programing do not need objects in OR.
If you want to write test script before the release of the system or when the application is under development, then you will go for descriptive programming. As saket said there are lot of examples for descriptive programming in this forum. You can make use of them.

Thanks


RE: Is this possbile to write the script without using the Object in object repository? - MahalakshmiDevi - 11-19-2009

Yes, we can write code without defing the object in OR. This could be accomlpieshed by suing the Descriptive Programming. where during the run time through code we would create the run time object.
e.x-Browser("micclass:=Browser","name:=www").Page("micclass:=page","title:=www").WebEdit("micclass:=WebEdit","name:=username").Set "noone"


RE: Is this possbile to write the script without using the Object in object repository? - shivu.hanu - 01-03-2012

one main advantage is see there is object called " log out" .this object is common for all the screen.but in real time while you are executing the script you do not know from which page you are logging out .that time your descriptive prog helps lot