ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
Ehat is the descriptive programing in QTP?
 Question Submitted By :: Vamsi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Ehat is the descriptive programing in QTP?
Answer
# 1
Descriptive programming means we can write VB Script 
without objective Repository.  we can write program with 
the help of object properties.

ex:  if u want to write descriptive program for login page

login page have userid and password and ok, cancel button

every object have some common properties with that we can 
write descriptive program suppose u take here login is 
window.

 Window have some properties like TEXT, ATTACHED TEXT, 
NATIVE CLASS, WINDOW ID.....


same as for Text boxes having TEXT, ATTACHED TEXT, NATIVE 
CLASS, WINDOW ID....

with the help of above properties we can write descriptive 
program
 
Is This Answer Correct ?    0 Yes 0 No
Nath .t
 
  Re: Ehat is the descriptive programing in QTP?
Answer
# 2
In Three Situations we go for Descriptive Coding
a)When QTP is unable to identify the "Object" in            
the Application?
b)When the "Object repository" become large to avoid that
c)When we are writing "Script" the application is not 
ready, then we go for "Descriptive coding". For that dev 
team provide LLD Docs.

Each object has default properties like Text Box has Text, 
Attached Text, Native Class, Window ID.


Ex:- for login window

Dialog("Name:=Login").Winedit("Name:=User 
Name :").set "Abcedf"


Dialog("Name:=Login").Winedit
("Name:=Password :").setsecure "Mercury"


Dialog("Name:=Login").Winbutton("Name:=Ok").Click


That means we provide the properties in scripting for 
identify the objects in application.




Suresh K
09341899039
ksuresh.testing@gmail.com
Bangalore
 
Is This Answer Correct ?    1 Yes 0 No
Ksuresh_999
[Essel Software And Services Ltd.]
 
 
 
  Re: Ehat is the descriptive programing in QTP?
Answer
# 3
the Two above answers are correct...

      there is simple technique to write descriptive
programming..to write DP we use Object Identification dialog
box and Object spy dialog box.

Object Identification dialog boxes uses to know which
properties can identify an object uniquely and Object spy
uses to know values of this property..this technique is
suggested when the application is ready only. If application
is not ready we can write only visible properties, like
text, attachedtext, class.

  we can write DP in two ways..by throwing the properties
and their values directly in to script (or) by creating an
object by using description.create method.

for example:

set objtext = description.create
 objtext("nativeclass").value = "Edit"
 objtext("attachedtext").value = "XXXXX"

   this will create a text box object.

 browser("sadgd").page("sahdga").webedit(objtext).set "asgfsad"

second method is:

  
browser("sadgd").page("sahdga").webedit("nativeclass:=Edit","attachedtext:=XXXX").set
"asgfsad"

If any queries..
nanda.dreddy@gmail.com
 
Is This Answer Correct ?    0 Yes 0 No
Nanda
 
  Re: Ehat is the descriptive programing in QTP?
Answer
# 4
How do I record a script to automate the username and 
password for 3 different types of surveys who's username 
and password are all the same? I need to run this same 
piece of script against all these surveys who get prompted 
for the username and password at the exact same place.
 
Is This Answer Correct ?    0 Yes 0 No
Sbbceo
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Explain about the Test Fusion Report of QTP?  1
Test Life cycle starts IS it Requirments stage or Test Initiation?  1
How to covert a String to an integer?  3
When to use Descriptive programing? Wipro2
What is the Risk Analysis? Waht types of risk analysis are there?  1
What is the scripting language used in QTP?  6
how to get the object property Covansys4
write progamming connecting QTP to database sql? this is question asked by interview? pls any answer this? IBM2
Hi Friends, Can any one answer this question? 17) What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value  1
How do u use Database checkpoints and what are the use? Qualtree-Solutions4
hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take? ADP1
tell me types of environment variables? what r they? explain details? pls give anwer any one? IBM2
What is the difference in between function and sub as well as give some code of both Wipro1
what is use of the object repository?  4
what is the test process followed for your project? Satyam1
Can you tell me QTP is support for GIS(Geography Information System) Based Software.  1
what is recovery manager and recovey scenerio? BirlaSoft2
Among the 3 Recoring modes,Standard, Analog and Low Level. which one is mostly used. I know that Analog id used for Graphs, Digital Signatures and Barcoding. so, which one among the 2?  1
In website, protocol has been changed http:to https what you will do? tell me your approach?  1
what is framework? which frame work u follow for writting script? IBM5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com