Descriptive Programming:
Whenever QTP records any action on any object of an
application, it adds some description on how to recognize
that object to a repository of objects called object
repository. QTP cannot take action on an object until
unless its object description is in the Object Repository.
But descriptive programming provides a way to perform
action on objects which are not in Object repository
Without giving the object information into the object
repository
we can directly execute the test scripts by using DP.By
considering
following condition we will come to know how useful DP is.
1. When objects are dynamic in nature, they require special
handling
to identify the object, to handle this type of objects we
use
descriptive programming.The best example would be to click
on the
link which changes according to the user of the
application.
2. When Object Repository is getting huge in size, due to
adding No.of
objects into it, the performance of QTP will be decreased.
3. When you dont want to use the object repository at all,
then the
first question will be why not object repository.
considering some
scenarios we can understand the importance of DP.
Scenario 1. When we are having an application, which is not
yet been
developed, or in the state of run, QTP requires the
application to be
up to record the object properties to identify an object.
waiting for
the application to be up will be the waste of time, and if
we know the
flow of the application, then we can start writing DP.
Scenario 2. If we having an application, with 3 text
buttons each in
a page, adding all this 3 objects into the object
repository, in the
flow of 10 pages, a total 30 objects will be added into the
repository,
which is not a good practice, by writing 3 descriptions for
the objects
we can add them to the repository.
4. Modification for test script is required, but the
repository for the
same will be in the state of "readonly" or in "shared
mode", so modification
will impact other scripts as well.
5. When we are performing similar type of action on
objects,i.e, when
we are having an application with 20 text buttons, adding
all this
objects will not be a good practice.
in real time when we are creating the script by default it
is going to save in action object repository or not any way
my question is in one of my interviewer said that in real
time the default object repository is action object
repository and by using quick test plus they are going to
merge is it correct i said that by selecting the object
repository as shared one in selecting the
test>>settings>>resources but she is not convinced what is
the correct one
1. How can we use same object repository and Testscript
which is in English flavor to check the application in
different languages thru QTP?(Chinese,Dutch,French)
- I generated script in english and want to use the same
script with different languages?
- for windows i used regular expressions
- I need for edit box,button and combobox,
(English,French,Dutch,Chinese) These are the properties of
a button in different languages
Properties English Dutuch Chinese French
x 400 758 631 601
y 673 603 592 676
windowstyle 1342242816 1342242816 1342242816 1.34E+09
windowid 2 2 2 2
windowextended style 4 4 4 4
width 120 120 120 120
visible TRUE TRUE TRUE TRUE
righttoleft reading FALSE FALSE FALSE FALSE
righttoleftlayout FALSE FALSE FALSE FALSE
rightaligned FALSE FALSE FALSE FALSE
regexpwndtitle cancel Loschen Chinese language Annuler
regexpwndclass button button button button
objectclass button button button button
hwnd 132872 657228 656932 656782
height 33 33 33 33
focused FALSE FALSE FALSE FALSE
enabled TRUE TRUE TRUE TRUE
attached text
abs_y 669 599 627 597
abs_x 396 754 588 672
text cancel Loschen Chinese language Annuler
nativeclass button Button
ordinal Identifier
type,Value none none none none
smartidentification FALSE FALSE FALSE FALSE
comment
Hi all, i have installed QTP8.2 in my system. but script is
not generating while recording. What is the problem? is any
file missing? pls let me know anybody...Thnaks
While testing .net applications with QTP 9.1 in normal
recording mode, QTP records my unintentional mouse clicks
and window dragging which I don't want. But I can't stop
QTP recording those mouse clicks and window dragging. Can
somebody let me know how I can get rid of it, please !
Thanks.
What is the difference between a Test and a Business
Component?
Is it necessary to use Business Component while testing an
application in the real time?
Hi All,
I'm Akshaya here, could anybody please help me regarding
how to import the excel sheet to run time datatable. But
Pl. keep it in your knowledge is that excel sheet is opened.
Thanks,
Akshaya Madali
9823213538
suppose our project is developed using java
technologies.after complition of the coding developer
relesed a build to the testing team.so, what is the process
means how we open that documents?what are that documents?plz
give reply its urgent