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 THE DESCRIPTIVE programming when it is useful? &
when to use this ?

Answers were Sorted based on User's Feedback



WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / venkatraj.b

without using the objectrepository, and by using the
objectspy we will write the DESCRIPTIVE programming .
when ever we will go to DESCRIPTIVE programming :-
1.when ever objects are dynamicaly changing.
2.when ever QTP is not going to recognise the objects.
3.when ever objectrepository size is huge automatically QTP
wil get down slow.
4.when ever not yet develop the build then only we will use
DESCRIPTIVE programming .

Is This Answer Correct ?    36 Yes 1 No

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / manish gupta

List few scenarios where Descriptive Programming MUST be
used?

1. For an object which will be used only once or
twice, there’s no need to use the slow, complex Object
Repository. DP should be used.

2. In case the identification properties and values of
an object match more than one object; QTP will throw
an "Object’s description matches more than one of the
objects currently displayed in your application" error (If
OR is used).
DP easily deals with double objects by using the
index property. We can add “Index:=X” to the description
strings (when X is a zero-based counter), and QTP will
point to object #X.
3. Some objects change hierarchies i.e. an object will
appear under a different parent each time (e.g. – a pop-up
which appears under the initiating sub-window). In some
applications, the only way to work with such objects is
with DP.
4. When using an Object Reference in an External
Function, it is difficult to make sure that the relevant
object is being defined in the Calling Action’s Object
Repository or Even if it is defined, does it have the same
Logical Name? Descriptive Programming is the only option
left.




5. Instead of working with a single object at a time,
we can gather all the objects which answer to our
identification properties, and work with them as a
collection.

For Example:- Suppose you are testing Yahoo Website.
After you login, it lists all the mails present in your
inbox with a checkbox for each mail. Using this checkbox
you can select a mail for deletion or for moving it etc.

But when you design your test, you do not know how
many check boxes (mails) will be displayed on the page, and
you cannot, of course, know the exact object description of
each check box. In this situation, you can use a
programmatic description to instruct QuickTest to perform a
Set "ON" method for all objects that fit the description:
HTML TAG = input, TYPE = check box.
6. When testing a “NOT YET DEVELOPED” build, DP must
be used.
7. Size of Object Repository adversely affects the
performance of QTP. Huge OR slows QTP down.

Is This Answer Correct ?    11 Yes 1 No

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / raghu

descriptive programming is a process where you can wite a
program directly execute it with out the help of object
repository.

It used when QTp is unable to find the object..

Is This Answer Correct ?    10 Yes 1 No

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / brahma reddy

descriptive programming in QTP means whenever qtp facing
dificulty with obj identification then we will go with
regular exp or desc prog it means identifying obj unique
prop from the script itself.
ex:vbwindow("").vbedit("attached text:=username").set cdbjd

Is This Answer Correct ?    12 Yes 4 No

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / sharads

Descriptive Programming used to bypass Object Repository.
Descriptive programming is used when we want to perform an
operation on an object that is not present in the object
repository. There can be various valid reason to do so.

There are two ways in which descriptive programming can be used

1. By giving the description in form of the string arguments.
2. By creating properties collection object for the description.

Is This Answer Correct ?    0 Yes 0 No

WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?..

Answer / ravinder

Hi
the qtp does not identify the development technologe object
that time we can use discriptive programme
the object isnot in object repository then work that object
based on unique property it is comming under descriptive
programme
uses repository sige is decrese
we can exicute test case with out repository
i think this is enough if find out any sutiable answer
please send to me
thanks

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More QTP Interview Questions

how we connect oracle or sql data server database to qtp.

4 Answers   TCS,


in how many ways you perform batchtesting?

2 Answers   Sapient,


Explain the parameter in qtp?

0 Answers  


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

0 Answers  


How to compare source and target database in testing? Can anybody please tell me in detail the procedure how to compare it?

1 Answers  


what is the general issues faced while using automation tool Qtp9.0

1 Answers   TCS,


Explain different checkpoints in qtp.

0 Answers  


how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage

2 Answers  


what is the main process in QTP?

3 Answers   Ordain Solutions,


does qtp runs on internet explorer 7.0

5 Answers   BeBo Technologies,


what is QTP batch testing tool?

2 Answers  


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

0 Answers   IBM,


Categories