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
Answers were Sorted based on User's Feedback
Answer / p
Descriptive not need any regular expression or object repository..AND descriptive ae of two types this is not write code for descriptive...Don't write any wrong ans anybody if u dont know the ans....okkk
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
How to capture the text from the application using QTP?
How should i find out whether the cursor is moving horizantally. when tabbing continuously
w is time parameter
where do you store the test result?
how will you load the test cases in ddt?
Hi anyone having QTP 10.0 licence or crack version pls send me in this mail id mdilipkumar04@gmail.com Regards Dilip
how can we return a value from userdefined function for eg 2 functions in func1 iam getting 2 values(a,b) and storing in var(C). now i want to pass that var(c) to another func2 give me the script
Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?
what is descriptive.create()in qtp?
Sql questions to find second max salary and how to use joins
What is TD plugin? For what purpose they are used . Ineed to connect QC9.2 with QTP 9.2 . Need to run some scripts IN QTP having the QC connectivity. Pls explain in detailed step Thanks in advnece
How to use parameterization in qtp?