i need to learn the descriptive programming very well so for
that what to do am reading the qtp user mannual but it is
not so any materials or links with examples i want please
help me
Answer Posted / pallavi
Hi,
In Decriptive programming all the properties and their
values which make an object uniquely identifiable are
written in the script.
Regular Expressions can be used to specify the value.
Easy way to learn Descriptive programming would be
1.Record the script
2. Now modify the code in such a way the code becomes
independent of object repository
3.Now try to run this code
Eg.
1.If the recored statement is
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Login").set "User1"
2. Now try to identify the variable-value pair for each oh
these objects which will make these objects unique.
For example if for 'Page' object , its title makes it
unique, then specify the property-value pair in the
description
Browser("title:=Yahoo Login").Page("title:=Yahoo
Login").WebEdit("Name:=Login","html tag:=INPUT").set "User1"
Note:
1. Object Spy will give the the list of all the properties
and their current value for an object.
2. what i do is,
I. i record the script, now the object repository is
created.
II. Now i start changing the script, by looking at the
object repository i change the description of the object in
the script.
III. Run the modified script. I correct the script until
the scrit runs successfully.
IV. When the script runs without any error and is
completely descriptive. Go to Object Repositry and delete
the antire object repository
3.You can write partly descriptive script also
E.g.
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Name:=Login","html tag:=INPUT").set "User1"
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how to test load test and block box testing an a web based application pls give ans briefly
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
How does QTP identify an object?
hi nani my doubt is how does qtp process metrix related to software process.
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is an expert view and keyword view?
How do we analyze the checkpoint results?
Explain the new feature of UFT regarding the export of test results?
in a web page How to check and display a particular word from a paragraph?
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
What is a recovery scenario?
Can we use index on view?
What is the use of running the scripts in Hidden-mode in UFT?
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.