WHAT IS THE DESCRIPTIVE programming when it is useful? &
when to use this ?
Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of loading qtp add-ins?
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
How can get count of list box?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
how can we compare descriptive programing with a regular expression
How to export quicktest professional (qtp) results to an .xls file?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
if anyone has idea of the interview procedure in covansys, plz send me a mail?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
What is the pros and cons between QTP and Rational Robot
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?