Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is descriptive programming in QTP? How can be done?

Answers were Sorted based on User's Feedback



what is descriptive programming in QTP? How can be done?..

Answer / john

There are two ways, QTP uses to recognize the objects
present in your application.

1. Object Repository (OR)
2. Descriptive Programming (DP)


First let see how OR works. OR is the simple and default way
of object identification in QTP. OR stores groups of
properties and values of every object. While you record on
application, all the objects you click, are stored in Object
Repository.

During the play back QTP use this OR to identify the object
on which the action is to be performed.


What is Descriptive programming (DP)?

We'll use DP when we want to bypass OR. Descriptive
programming is used when we want to perform an operation on
an object that is not stored in the object repository. This
way QTP won’t search....


For full article, refer below link..

http://qtpschools.blogspot.com/2011/03/descriptive-programming-part-1.html

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / automation tester

Hi Friends,

In simple terms, Descriptive Programming is the type of
programming in QTP where you don't want to use Object
Repository to store the objects and its properties.
Descriptive Programming provides a means by which you can
provide the object properties in the code itself.


Check the below links for more details...

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part1/

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part-2/

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / vikas choubey

It doesn’t require recording the page and so no need
worry about object repository.
You can optimize your code.
Before starting descriptive programming you need to know
about object properties and their values, using object spy
you can see each object’s properties.

DP can be written in two ways..

1. Static (by provide the set of properties and values directly)
2. Dynamic (by creating description object)

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / najerr ahemed

Entering Objects Information directly into the test script
is called descriptive program.

It is 2 types
1) Static Programming
2) Dynamic Programing

for more Information & QTP scripts examples visit:

www.gcreddy.com

Is This Answer Correct ?    1 Yes 2 No

what is descriptive programming in QTP? How can be done?..

Answer / babu

Hi,

I had gone through the answers provided all of you. I had
written the script by passing the property, value of the
objects using descriptive programming as it mentioned above.
Process what i followed is:
1)recorded the script.
2)take some object and remove the same from object
repository and add property,value of that removed object in
the script.
3)run the script.

It is displaying the message that object can't be find in
the object repository.

ex:Dialog("Login").WinEdit("Name:=Agent Name:","attached
text=Agent Name:").Set "xxxx".

I removed Agentname from the object repository.
While running i am getting the error that the object Agent
name is not able to find in object repository.

Help me out what mistake i made when writing descriptive
programming.

Is This Answer Correct ?    0 Yes 2 No

what is descriptive programming in QTP? How can be done?..

Answer / satish

Actually descriptive programming means whenever objects are
underconstruction it means under development then we are
using descriptive programming.

Is This Answer Correct ?    0 Yes 3 No

what is descriptive programming in QTP? How can be done?..

Answer / mic

QTP knows X only, // X is QTP's VB language

ie,
QTP language = X
X = VB (QTP oriented) // QTP understands VB

.'.
X = VB

OR = converted.VB(Objects) // OR = Object Repository
X = OR

// QTP converts Objects to its unique understable format as
VB oriented and stores in Object Repository. If the code is
in VB no proble to QTP to read while running, ne need to
convert again to another format.

X = VB

VB = DP // DP = Descriptive Programming
X = VB = DP = QTP language

Is This Answer Correct ?    3 Yes 8 No

what is descriptive programming in QTP? How can be done?..

Answer / pradeep

It works perfectly....


'USING DESCRIPTIVE PROGRAMMING - WITHOUT OBJECT REPOSTARY

Browser("creationtime:=4").Page("title:=Editorial Company
Search").Link("text:=Codes").Click

'OR

Browser("name:=Editorial Company Search").Page
("title:=Editorial Company Search").Link
("text:=Codes").Click


For descriptive programming the object properties should be
extracted first using the QTP object repository and then
use it in the code.

Ex., name:= or creationtime:= or title:=

Depends on the objects and its available properties

Is This Answer Correct ?    13 Yes 22 No

what is descriptive programming in QTP? How can be done?..

Answer / veeravel

amit is great...............tanq very much amit.....all
other those who ahv answers have given studeid answers.amit
is the only great guy........

Is This Answer Correct ?    3 Yes 33 No

Post New Answer

More QTP Interview Questions

Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri

2 Answers  


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


How would you parameterize the text field "Country" and the same "country" when it appears as combo field on other page with text field city and same with City combo field?

1 Answers   Adobe, Patni,


what are the Common Problems in S/w development process

1 Answers  


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

0 Answers  


How do we create and run the scripts with out using O.R. ?

5 Answers  


how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


what is the difference between parameters and arguments?

1 Answers  


What is the Diff between Image check-point and Bit map Check point?

3 Answers   Ordain Solutions,


how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


I got some information from the QTP help.But i am not sure whether through this process will QTP work or not bellow is the Help what I have Remote setup Settings Remote WSH, which is a new technology included in WSH 5.6, provides the ability to run a script on a remote machine or machines. With Remote WSH, the script is physically copied from the local machine to the remote machine before executing. In order to enable Remote WSH functionality, you must first set up the remote machine with the proper security settings. The steps below perform the tasks that enable Remote WSH. Note Both the remote and local machines must be running Windows NT 4 SP3 or greater in order to use Remote WSH. To enable a machine to run remote scripts 1. Install WSH V5.6 on the machine. If you are using Windows 2001 or have installed Internet Explorer 6 or greater, WSH 5.6 has already been installed. Note WSH 5.6 is available for download from the web at http://msdn.microsoft.com/scripting 2. Add yourself to the remote machine's Local Administrators group. 3. To enable Remote WSH, use Poledit.exe on the server. Note An administrator who wants to enable Remote WSH must either acquire the Windows 2000 resource kit, or use http://msdn.microsoft.com/scripting to acquire the necessary windowsscript.adm file that contains the WSH settings. The windowsscript.adm file must be copied to the server that sets the gapplicabel group's policies. Although it is not necessary to copy the file to the server's \WINNT\INF directory, this is nonetheless where the default adm files are located. Note For more information on Poledit.exe, see the Poledit.exe's online help system. 4. WSH should now be enabled on the machine. To test it,. WSH 5.6 can run scripts that reside on remote systems. The following scripts demonstrate this capability. These scripts make the assumption that the files are located on a local machine directory called "c:\wsh5.6"; change the local path and the remote machine name as necessary. After initially running RemoteTest.WSF on the local machine, there may be a small pause as DCOM verifies your identity. After you see the "Done" message, a file named "c:\beenhere.txt" on the remote machine indicates the time that you executed the command (from the remote computer's clock). Script to run scripts remotely set oController = CreateObject("WSHController") set oProcess= oController.CreateScript("c:\wsh5.6\beenhere.wsf","remmachine") oProcess. Execute Could you tell me will it work fine

0 Answers   Livetek,


Categories