w is descriptive programming

Answer Posted / umasankar

When you record an operation on an object, QuickTest adds
the appropriate test object to the object repository. After
the object exists in the object repository, you can add
statements in the Expert View to perform additional methods
on that object. To add these statements, you usually enter
the name (not case sensitive) of each of the objects in the
object's hierarchy as the object description, and then add
the appropriate method.But in descriptive programming it is
quite different.Let us see the below example.

Decriptive programming with an example on a webpage.

General programming:

Browser("Mercury Tours").Page("Mercury Tours").WebEdit
("Name:=Author", "Index:=3").Set "Uma Sankar"

Descriptive Programming:

Browser("Title:=Mercury Tours").Page("Title:=Mercury
Tours").WebEdit("Name:=Author", "Index:=3").Set "Uma Sankar"

The difference is quite very less. But is very important.

Note:If you specify a test object by its object repository
name after other objects in the hierarchy have been
specified using programmatic descriptions, QuickTest cannot
identify the object.

If any doubts please let me know.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1718


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1466


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1283


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1877


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2183






Generic function to search for the unique link in webtable and click on it

2487


What is the standard timing delay for web based application in qtp?

587


How many scripts did you have?

1701


why you have standardized functions? plzzz guys with real time exp. do answer

1437


can u explain relative path architecture framework in qtp?

1562


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

1341


QTP script is not working on other's machine..

1537


What is the purpose of loading qtp add-ins?

625


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

1591


How to find the length of the string in qtp?

578