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 qtp handles customised object
How you automate test scripts
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
what is exact difference between smoke and sanity testing?
Use of environment variables?
w is fragmentation and paging
how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it will open 55 links.In this scenerio write Descriptive programing for Automation?....Pls write the code for this scenerio.
1 Answers College School Exams Tests, UHG,
How does QTP identify an object?
What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?